/**************************************************************************** ** ui.h extension file, included from the uic-generated form implementation. ** ** If you wish to add, delete or rename slots use Qt Designer which will ** update this file, preserving your code. Create an init() slot in place of ** a constructor, and a destroy() slot in place of a destructor. *****************************************************************************/ void TGo4StartOnline::init() { setCaption(" Start Go4 Online " ); fxTGo4GUIRegistry = TGo4GUIRegistry::Instance(); /** Get the pointer to the GUI Registry **/ fxTGo4StartOnlineSlots = dynamic_cast (fxTGo4GUIRegistry->GetSlotClass("TGo4StartOnlineSlots")); /* test if a Slot Object already exist for this GUI*/ if(fxTGo4StartOnlineSlots !=0) { /* if it is already there, set this GUI as window of the slot Object */ fxTGo4StartOnlineSlots->SetGUI(this); }else{ /* if no Slot Object where found creat a new one*/ fxTGo4StartOnlineSlots = new TGo4StartOnlineSlots ("TGo4StartOnlineSlots" , "Slot Class for Qt GUI", this); } /* Get the pointer for the Status Object */ fxTGo4StartOnlineStatus= dynamic_cast (fxTGo4StartOnlineSlots->GetStatus()); //fxTGo4GUIRegistry->ReDirectObject("",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas2); //########################### REGISTER HISTS ################################### fxTGo4GUIRegistry->ReDirectObject("hStartstrips_start_veto_raw",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1); fxTGo4GUIRegistry->ReDirectObject("hStartmult_start_veto_raw",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas2); fxTGo4GUIRegistry->ReDirectObject("hStarttime_start_raw",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas3); fxTGo4GUIRegistry->ReDirectObject("hStarttime_veto_raw",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas4); fxTGo4GUIRegistry->ReDirectObject("hStartstart_veto_corr_raw",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas5); fxTGo4GUIRegistry->ReDirectObject("htime_trend_start",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas6); //hodoscopes stuff fxTGo4GUIRegistry->ReDirectObject("hStartstrips_hodo_raw",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_2); fxTGo4GUIRegistry->ReDirectObject("hStartstrips_hodo_both_raw",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas2_2); fxTGo4GUIRegistry->ReDirectObject("hStartMult_hodo",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas3_2); fxTGo4GUIRegistry->ReDirectObject("htime_trend_hodo",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas4_2); fxTGo4GUIRegistry->ReDirectObject("hStart_hodo_tof",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas5_2); fxTGo4GUIRegistry->ReDirectObject("hStart_hodo_pos",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas6_2); //Scalers fxTGo4GUIRegistry->ReDirectObject("hscaler_0",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_4); fxTGo4GUIRegistry->ReDirectObject("hscaler_1",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_5); fxTGo4GUIRegistry->ReDirectObject("hscaler_2",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_6); fxTGo4GUIRegistry->ReDirectObject("hscaler_3",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_7); fxTGo4GUIRegistry->ReDirectObject("hscaler_4",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_8); fxTGo4GUIRegistry->ReDirectObject("hscaler_5",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_9); fxTGo4GUIRegistry->ReDirectObject("hscaler_6",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_10); fxTGo4GUIRegistry->ReDirectObject("hscaler_7",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas1_11); fxTGo4GUIRegistry->ReDirectObject("hlatchdata",fxTGo4StartOnlineSlots, true,QRootCanvasLatch_1); //fxTGo4GUIRegistry->ReDirectObject("",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas3); //fxTGo4GUIRegistry->ReDirectObject("",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas4); //fxTGo4GUIRegistry->ReDirectObject("",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas5); //fxTGo4GUIRegistry->ReDirectObject("",fxTGo4StartOnlineSlots, true,StartfxQtRootCanvas6); fxTGo4GUIRegistry->ReDirectObject("hVertex_xy",fxTGo4StartOnlineSlots, true,QRootCanvasVertexXY); fxTGo4GUIRegistry->ReDirectObject("hVertex_xz",fxTGo4StartOnlineSlots, true,QRootCanvasVertexXZ); fxTGo4GUIRegistry->ReDirectObject("hVertex_yz",fxTGo4StartOnlineSlots, true,QRootCanvasVertexYZ); } void TGo4StartOnline::destroy() { fxTGo4GUIRegistry->RemoveRedirectEntry("hStartstrips_start_veto_raw",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hStartmult_start_veto_raw",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hStarttime_start_raw",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hStarttime_veto_raw",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hStartstart_veto_corr_raw",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("htime_trend_start",fxTGo4StartOnlineSlots); //hodoscope stuff fxTGo4GUIRegistry->RemoveRedirectEntry("Startstrips_hodo_both_raw",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("Startstrips_hodo_raw",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hStartMult_hodo",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("htime_trend_hodo",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hlatchdata",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hVertex_xy",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hVertex_xz",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("hVertex_yz",fxTGo4StartOnlineSlots); Char_t cBuff[100]; for(Int_t i=0;i<8;i++){ snprintf(cBuff,sizeof(cBuff),"hscaler_%d",i); fxTGo4GUIRegistry->RemoveRedirectEntry(cBuff,fxTGo4StartOnlineSlots); } fxTGo4GUIRegistry->RemoveRedirectEntry("HODO_tof",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("HODO_pos",fxTGo4StartOnlineSlots); fxTGo4GUIRegistry->RemoveRedirectEntry("Hadesconfig",fxTGo4StartOnlineSlots); } void TGo4StartOnline::closeEvent( QCloseEvent * ce ) { TGo4LockGuard glob; ce->accept(); fxTGo4StartOnlineSlots->SetGUI(0); } void TGo4StartOnline::StartDisplayLCD1( Float_t t ) { StartLCDNumber1->display(t); } void TGo4StartOnline::StartDisplayLCD2( Float_t t ) { StartLCDNumber2->display(t); } void TGo4StartOnline::StartDisplayLCD3( Float_t t ) { StartLCDNumber3->display(t); } void TGo4StartOnline::DrawHis( HMonHistAddon* His ) { } void TGo4StartOnline::Start() { fxTGo4StartOnlineSlots->StartMonitor(); } void TGo4StartOnline::Stop() { fxTGo4StartOnlineSlots->StopMonitor(); } void TGo4StartOnline::Reset() { TGo4ResetParameter* reset = new TGo4ResetParameter("HistReset","HistReset"); reset->SetStartChanged(kTRUE); reset->Set("Start",0); TGo4ComSetParameter* com=new TGo4ComSetParameter("HistReset"); com->SetParameter(reset); fxTGo4GUIRegistry->SubmitCommand(com); }