#include <TRootanaDisplay.hxx>
Public Member Functions | |
TRootanaDisplay () | |
virtual | ~TRootanaDisplay () |
virtual void | AddAllCanvases ()=0 |
User must. | |
void | AddSingleCanvas (std::string name, std::string subtab_name=std::string("")) |
Add a new canvas; user will interactively fill it. | |
void | AddSingleCanvas (TCanvasHandleBase *handleClass, std::string subtab_name=std::string("")) |
TMainDisplayWindow * | GetDisplayWindow () |
virtual void | UpdateHistograms (TDataContainer &dataContainer) |
This method can be implemented by users to update user histograms. | |
virtual void | PlotCanvas (TDataContainer &dataContainer) |
This method can be implemented by users to plotting of current canvas. | |
virtual void | ResetHistograms () |
This method can be implemented by users to plotting of current canvas. | |
void | NextButtonPushed () |
Method for when next button is pushed (offline mode). | |
void | EventSkipButtonPushed () |
Method for when skip event button is pushed (online mode). | |
void | Reset () |
void | UpdatePlotsAction () |
void | QuitButtonAction () |
Method to call when 'quit' button is pressed. | |
void | SetNumberSkipEvent (int number) |
std::string | GetDisplayName () |
Get Display name. | |
void | SetDisplayName (std::string name) |
Set Display name. | |
void | Initialize () |
bool | CheckOptionRAD (std::string option) |
void | UsageRAD () |
Also a special version of usage for TRootanaDisplay. See CheckOptionRAD. | |
TDataContainer * | GetDataContainer () |
Method to get the data container that event loop owns. | |
virtual void | Finalize () |
virtual void | Usage (void) |
virtual bool | CheckOption (std::string option) |
virtual bool | PreFilter (TDataContainer &dataContainer) |
bool | IsOnline () const |
Are we processing online data? | |
bool | IsOffline () const |
Are we processing offline data? | |
int | GetCurrentRunNumber () const |
Current Run Number. | |
void | SetCurrentRunNumber (int run) |
Current Run Number. | |
int | ExecuteLoop (int argc, char *argv[]) |
Method to actually process the Midas information, either as file or online. | |
int | ProcessMidasFile (TApplication *app, const char *fname) |
void | DisableAutoMainWindow () |
Disable automatic creation of MainWindow. | |
void | UseBatchMode () |
Use a batch mode, where we don't check ROOT status. | |
VirtualOdb * | GetODB () |
Get pointer to ODB variables. | |
void | OpenRootFile (int run, std::string midasFilename=std::string("")) |
Open output ROOT file. | |
void | CloseRootFile () |
Cloe output ROOT file. | |
bool | IsRootFileValid () |
Check if output ROOT file is valid and open. | |
void | DisableRootOutput (bool disable=true) |
int | IsRootOutputEnabled () |
void | SetOutputFilename (std::string name) |
virtual std::string | SetFullOutputFileName (int run, std::string midasFilename) |
void | SetOnlineName (std::string name) |
void | ProcessThisEventID (int eventID) |
bool | CheckEventID (int eventId) |
Little helper method to check if EventID matchs requested EventID list. | |
void | SuppressTimestampWarnings () |
bool | GetSuppressTimestampWarnings () |
Suppress timestamp warnings? true = suppress warnings. | |
void | UseOnlyRecent (bool setting=true) |
Static Public Member Functions | |
static TRootanaEventLoop & | Get (void) |
template<typename T > | |
static void | CreateSingleton () |
Protected Member Functions | |
bool | CreateOutputFile (std::string name, std::string options="RECREATE") |
Protected Attributes | |
TDirectory * | fOnlineHistDir |
TDirectory for online histograms. | |
Static Protected Attributes | |
static TRootanaEventLoop * | fTRootanaEventLoop = NULL |
The static pointer to the singleton instance. | |
Private Member Functions | |
void | InitializeMainWindow () |
Method to initialize the Main display window. | |
bool | ProcessMidasEvent (TDataContainer &dataContainer) |
Process each midas event. | |
void | BeginRun (int transition, int run, int time) |
void | EndRun (int transition, int run, int time) |
void | SetCachedDataContainer (TDataContainer &dataContainer) |
Private Attributes | |
bool | waitingForNextButton |
int | fNumberSkipEventsOnline |
int | fNumberSkipEventsOffline |
int | fNumberProcessed |
bool | fQuitPushed |
Flag to keep track of if quite button has been pushed. | |
TMainDisplayWindow * | fMainWindow |
The pointer to our display window. | |
TDataContainer * | fCachedDataContainer |
We keep a cached copy of the midas event (so that it can used for callback). | |
std::string | fDisplayName |
Display name. | |
std::vector< std::pair < std::pair< int, int > ,TCanvasHandleBase * > > | fCanvasHandlers |
This is an abstract base class for event displays. Users need to define a class that derives from this class in order to make an event display. The only method that users must implement is the method AddAllCanvas(), where the user defines which tabs to use.
The user then needs to define how they what to update and plot histograms. The updating of histograms happens for each event. In online mode, the plotting of histograms only happens for each XX events; for offline mode the plotting happens for each event.
There are two ways that users can decide to update and plot histograms:
1) They can create histograms in their event display class and then fill the methods UpdateHistograms(TDataContainer) and PlotCanvas(TDataContainer). This histograms can then file in the canvases that are added using AddSingleCanvas(std::string name).
2) They can create classes that are derived from TCanvasHandleBase. The derived classes are then added using the method AddSingleCanvas(TCanvasHandleBase* handleClass).
There is no substantial difference between the two methods. The second method is mainly meant to allow the user to separate the methods into separate files for code cleaniness.
Examples of both these methods are available in examples/display_example.cxx
The actual ROOT GUI is encapsulated in a separate class TMainDisplayWindow. The TRootanaDisplay has an instance of this TMainDisplayWindow class. Users will be need to access the TMainDisplayWindow by calling
TRootanaDisplay::GetDisplayWindow()
in order to grab the particular canvas that we want plot on.
There is also the functionality to add sub-tab groups to a particular tab, so that you can have a set of tabs of tabs. To use this functionality you use the syntax
AddSingleCanvas(..., <tab name="" string>="">)
to add a new tab to the top level tab named 'tab name string'.
Definition at line 57 of file TRootanaDisplay.hxx.
TRootanaDisplay::TRootanaDisplay | ( | ) |
TRootanaDisplay::~TRootanaDisplay | ( | ) | [virtual] |
Definition at line 27 of file TRootanaDisplay.cxx.
References fCanvasHandlers.
00027 { 00028 00029 for(unsigned int i = 0; i < fCanvasHandlers.size(); i++) 00030 delete fCanvasHandlers[i].second; 00031 00032 };
virtual void TRootanaDisplay::AddAllCanvases | ( | ) | [pure virtual] |
User must.
Implemented in MyTestLoop, and MyTestLoop.
Referenced by InitializeMainWindow().
void TRootanaDisplay::AddSingleCanvas | ( | TCanvasHandleBase * | handleClass, | |
std::string | subtab_name = std::string("") | |||
) |
Add a new canvas, using a TCanvasHandleBase class. TRootanaDisplay will take ownership of pointer and delete memory it points to.
Definition at line 74 of file TRootanaDisplay.cxx.
References TMainDisplayWindow::AddCanvas(), fCanvasHandlers, TMainDisplayWindow::GetCompositeFrame(), GetDisplayWindow(), TMainDisplayWindow::GetSubTab(), TCanvasHandleBase::GetTabName(), and TCanvasHandleBase::SetUpCompositeFrame().
00074 { 00075 00076 std::pair<int,int> index = GetDisplayWindow()->AddCanvas(handleClass->GetTabName(),subtab_name); 00077 00078 std::pair< std::pair<int,int>, TCanvasHandleBase*> tmp(index,handleClass); 00079 00080 fCanvasHandlers.push_back(tmp); 00081 // Now set up the embedded canvas, if user so desires. 00082 TGCompositeFrame* embed = GetDisplayWindow()->GetCompositeFrame(index);//ssGetTab()->GetTabContainer(tab_index); 00083 handleClass->SetUpCompositeFrame(embed,this); 00084 00085 // If we just created a new sub-tab, grab the tab and add 00086 // call-back to UpdatePlot 00087 if(index.second == 0){ 00088 TGTab* tab = GetDisplayWindow()->GetSubTab(index.first); 00089 tab->Connect("Selected(Int_t)", "TRootanaDisplay", this, "UpdatePlotsAction()"); 00090 } 00091 00092 00093 }
void TRootanaDisplay::AddSingleCanvas | ( | std::string | name, | |
std::string | subtab_name = std::string("") | |||
) | [inline] |
Add a new canvas; user will interactively fill it.
Definition at line 70 of file TRootanaDisplay.hxx.
References TMainDisplayWindow::AddCanvas(), and fMainWindow.
Referenced by MyTestLoop::AddAllCanvases().
00070 { 00071 fMainWindow->AddCanvas(name,subtab_name); 00072 }
void TRootanaDisplay::BeginRun | ( | int | transition, | |
int | run, | |||
int | time | |||
) | [private, virtual] |
Called before the first event of a file is read, but you should prefer Initialize() for general initialization. This method will be called once for each input file.
Reimplemented from TRootanaEventLoop.
Reimplemented in MyTestLoop.
Definition at line 163 of file TRootanaDisplay.cxx.
References fCanvasHandlers, and UpdatePlotsAction().
00163 { 00164 00165 std::cout << "Begin of run " << run << " at time " << time << std::endl; 00166 for(unsigned int i = 0; i < fCanvasHandlers.size(); i++) 00167 fCanvasHandlers[i].second->BeginRun(transition,run,time); 00168 UpdatePlotsAction(); 00169 }
bool TRootanaEventLoop::CheckEventID | ( | int | eventId | ) | [inherited] |
Little helper method to check if EventID matchs requested EventID list.
Definition at line 135 of file TRootanaEventLoop.cxx.
References TRootanaEventLoop::fProcessEventIDs.
Referenced by TRootanaEventLoop::ProcessMidasFile().
00135 { 00136 00137 // If we didn't specify list of accepted IDs, then accept all. 00138 if(fProcessEventIDs.size()==0) return true; 00139 00140 // Otherwise check event ID against list 00141 for(unsigned int i = 0; i < fProcessEventIDs.size(); i++){ 00142 if(fProcessEventIDs[i] == (eventId & 0xFFFF)) 00143 return true; 00144 } 00145 00146 return false; 00147 }
bool TRootanaEventLoop::CheckOption | ( | std::string | option | ) | [virtual, inherited] |
Check an option and return true if it is valid. The return value is used to flag errors during option handling. If the options are valid, then CheckOption should return true to indicate success. If there is a problem processing the options, then CheckOption should return false. If this returns false, then the event loop will print the Usage message and exit with a non zero value (i.e. indicate failure).
Reimplemented in MyTestLoop.
Definition at line 131 of file TRootanaEventLoop.cxx.
Referenced by TRootanaEventLoop::ExecuteLoop().
bool TRootanaDisplay::CheckOptionRAD | ( | std::string | option | ) | [inline, virtual] |
This is a special version of CheckOption that is only used by TRootanaDisplay. This is just so that users still have the ability to set options for executables derived from TRootanaDisplay.
Reimplemented from TRootanaEventLoop.
Definition at line 131 of file TRootanaDisplay.hxx.
References fNumberSkipEventsOffline.
00131 { 00132 if(option.find("-s") != std::string::npos){ 00133 std::string sub = option.substr(2); 00134 fNumberSkipEventsOffline = atoi(sub.c_str()); 00135 printf("Will process %i events before plotting first event.\n",fNumberSkipEventsOffline); 00136 return true; 00137 } 00138 return false; 00139 }
void TRootanaEventLoop::CloseRootFile | ( | ) | [inherited] |
Cloe output ROOT file.
Definition at line 456 of file TRootanaEventLoop.cxx.
References TRootanaEventLoop::fOutputFile.
Referenced by TRootanaEventLoop::ProcessMidasFile(), QuitButtonAction(), and TRootanaEventLoop::~TRootanaEventLoop().
00456 { 00457 00458 if(fOutputFile) { 00459 std::cout << "Closing ROOT file " << std::endl; 00460 fOutputFile->Write(); 00461 fOutputFile->Close(); 00462 fOutputFile=0; 00463 } 00464 00465 }
bool TRootanaEventLoop::CreateOutputFile | ( | std::string | name, | |
std::string | options = "RECREATE" | |||
) | [inline, protected, inherited] |
Definition at line 198 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fOutputFile.
00198 { 00199 00200 fOutputFile = new TFile(name.c_str(),options.c_str()); 00201 00202 return true; 00203 }
static void TRootanaEventLoop::CreateSingleton | ( | ) | [inline, static, inherited] |
This static templated function will make it a little easier for users to create the singleton instance.
Definition at line 125 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fTRootanaEventLoop.
00126 { 00127 if(fTRootanaEventLoop) 00128 std::cout << "Singleton has already been created" << std::endl; 00129 else 00130 fTRootanaEventLoop = new T(); 00131 }
void TRootanaEventLoop::DisableAutoMainWindow | ( | ) | [inline, inherited] |
Disable automatic creation of MainWindow.
Definition at line 135 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fCreateMainWindow.
00135 { fCreateMainWindow = false;}
void TRootanaEventLoop::DisableRootOutput | ( | bool | disable = true |
) | [inline, inherited] |
Definition at line 157 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fDisableRootOutput.
Referenced by MyTestLoop::MyTestLoop().
00157 {fDisableRootOutput = disable;};
void TRootanaDisplay::EndRun | ( | int | transition, | |
int | run, | |||
int | time | |||
) | [private, virtual] |
Called after the last event of a file is read, but you should prefer Finalize() for general finalization. This method will be called once for each input file.
Reimplemented from TRootanaEventLoop.
Reimplemented in MyTestLoop.
Definition at line 171 of file TRootanaDisplay.cxx.
References fCanvasHandlers, and UpdatePlotsAction().
Referenced by QuitButtonAction().
00171 { 00172 00173 std::cout << "End of run " << run << " at time " << time << std::endl; 00174 for(unsigned int i = 0; i < fCanvasHandlers.size(); i++) 00175 fCanvasHandlers[i].second->EndRun(transition,run,time); 00176 UpdatePlotsAction(); 00177 00178 }
void TRootanaDisplay::EventSkipButtonPushed | ( | ) | [inline] |
Method for when skip event button is pushed (online mode).
Definition at line 98 of file TRootanaDisplay.hxx.
References fMainWindow, fNumberSkipEventsOnline, and TMainDisplayWindow::GetSkipEventButton().
00098 { 00099 fNumberSkipEventsOnline = fMainWindow->GetSkipEventButton()->GetNumberEntry()->GetIntNumber(); 00100 }
int TRootanaEventLoop::ExecuteLoop | ( | int | argc, | |
char * | argv[] | |||
) | [inherited] |
Method to actually process the Midas information, either as file or online.
Definition at line 177 of file TRootanaEventLoop.cxx.
References TDirectory::cd(), TRootanaEventLoop::CheckOption(), TRootanaEventLoop::CheckOptionRAD(), TRootanaEventLoop::fApp, TRootanaEventLoop::fBufferName, TRootanaEventLoop::fCreateMainWindow, TRootanaEventLoop::Finalize(), TRootanaEventLoop::fIsOffline, TRootanaEventLoop::fMaxEvents, TRootanaEventLoop::fOnlineHistDir, TRootanaEventLoop::fUseBatchMode, TRootanaEventLoop::Initialize(), TRootanaEventLoop::PrintHelp(), TRootanaEventLoop::ProcessMidasFile(), and StartNetDirectoryServer().
Referenced by main().
00177 { 00178 00179 setbuf(stdout,NULL); 00180 setbuf(stderr,NULL); 00181 00182 signal(SIGILL, SIG_DFL); 00183 signal(SIGBUS, SIG_DFL); 00184 signal(SIGSEGV, SIG_DFL); 00185 00186 std::vector<std::string> args; 00187 for (int i=0; i<argc; i++) 00188 { 00189 if (strcmp(argv[i],"-h")==0) 00190 PrintHelp(); // does not return 00191 args.push_back(argv[i]); 00192 } 00193 00194 00195 if(fUseBatchMode){ // Disable creating extra window if batch mode requested. 00196 fCreateMainWindow = false; 00197 } 00198 00199 if(gROOT->IsBatch() && !fUseBatchMode) { 00200 printf("Cannot run in batch mode\n"); 00201 return 1; 00202 } 00203 00204 bool forceEnableGraphics = false; 00205 bool testMode = false; 00206 int tcpPort = 0; 00207 int rhttpdPort = 0; // ROOT THttpServer port 00208 const char* hostname = NULL; 00209 const char* exptname = NULL; 00210 00211 for (unsigned int i=1; i<args.size(); i++) // loop over the commandline options 00212 { 00213 const char* arg = args[i].c_str(); 00214 //printf("argv[%d] is %s\n",i,arg); 00215 00216 if (strncmp(arg,"-e",2)==0) // Event cutoff flag (only applicable in offline mode) 00217 fMaxEvents = atoi(arg+2); 00218 else if (strncmp(arg,"-m",2)==0) // Enable memory debugging 00219 ;// gEnableShowMem = true; 00220 else if (strncmp(arg,"-P",2)==0) // Set the histogram server port 00221 tcpPort = atoi(arg+2); 00222 #ifdef HAVE_THTTP_SERVER 00223 else if (strncmp(arg,"-r",2)==0) // Set the THttpdServer port 00224 rhttpdPort = atoi(arg+2); 00225 #endif 00226 else if (strcmp(arg,"-T")==0) 00227 testMode = true; 00228 else if (strcmp(arg,"-g")==0) 00229 forceEnableGraphics = true; 00230 else if (strncmp(arg,"-H",2)==0) 00231 hostname = strdup(arg+2); 00232 else if (strncmp(arg,"-E",2)==0) 00233 exptname = strdup(arg+2); 00234 else if (strncmp(arg,"-b",2)==0){ 00235 fBufferName = std::string(arg+2); 00236 }else if (strcmp(arg,"-h")==0) 00237 PrintHelp(); // does not return 00238 else if(arg[0] == '-')// Check if a TRootanaDisplay or user-defined options 00239 if(!CheckOptionRAD(args[i])) 00240 if(!CheckOption(args[i])) 00241 PrintHelp(); // does not return 00242 } 00243 00244 // Do quick check if we are processing online or offline. 00245 // Want to know before we initialize. 00246 fIsOffline = false; 00247 for (unsigned int i=1; i<args.size(); i++){ 00248 const char* arg = args[i].c_str(); 00249 if (arg[0] != '-') 00250 { 00251 fIsOffline = true; 00252 } 00253 } 00254 00255 00256 MainWindow *mainWindow=0; 00257 if(fCreateMainWindow){ 00258 std::cout << "Create main window! " << std::endl; 00259 mainWindow = new MainWindow(gClient->GetRoot(), 200, 300); 00260 } 00261 00262 gROOT->cd(); 00263 fOnlineHistDir = new TDirectory("rootana", "rootana online plots"); 00264 00265 #ifdef HAVE_LIBNETDIRECTORY 00266 if (tcpPort) 00267 StartNetDirectoryServer(tcpPort, fOnlineHistDir); 00268 #else 00269 if (tcpPort) 00270 fprintf(stderr,"ERROR: No support for the TNetDirectory server!\n"); 00271 #endif 00272 00273 #ifdef HAVE_THTTP_SERVER 00274 00275 THttpServer *root_http_serv; // = new THttpServer("http:8080"); 00276 if(rhttpdPort){ 00277 char address[100]; 00278 sprintf(address,"http:%i",rhttpdPort); 00279 root_http_serv = new THttpServer(address); 00280 } 00281 #endif 00282 00283 // Initialize the event loop with user initialization. 00284 Initialize(); 00285 00286 for (unsigned int i=1; i<args.size(); i++){ 00287 const char* arg = args[i].c_str(); 00288 if (arg[0] != '-') 00289 { 00290 ProcessMidasFile(fApp,arg); 00291 } 00292 } 00293 00294 if (testMode){ 00295 std::cout << "Entering test mode." << std::endl; 00296 fOnlineHistDir->cd(); 00297 TH1D* hh = new TH1D("test", "test", 100, 0, 100); 00298 hh->Fill(1); 00299 hh->Fill(10); 00300 hh->Fill(50); 00301 00302 fApp->Run(kTRUE); 00303 if(fCreateMainWindow) delete mainWindow; 00304 return 0; 00305 } 00306 00307 // if we processed some data files, 00308 // do not go into online mode. 00309 if (fIsOffline){ 00310 if(fCreateMainWindow) delete mainWindow; 00311 return 0; 00312 } 00313 00314 #ifdef HAVE_MIDAS 00315 ProcessMidasOnline(fApp, hostname, exptname);; 00316 #endif 00317 00318 if(fCreateMainWindow) delete mainWindow; 00319 00320 Finalize(); 00321 00322 return 0; 00323 00324 }
void TRootanaEventLoop::Finalize | ( | ) | [virtual, inherited] |
Called after the last event has been processed, but before any open output files are closed.
Definition at line 125 of file TRootanaEventLoop.cxx.
Referenced by TRootanaEventLoop::ExecuteLoop().
TRootanaEventLoop & TRootanaEventLoop::Get | ( | void | ) | [static, inherited] |
Definition at line 72 of file TRootanaEventLoop.cxx.
References TRootanaEventLoop::fTRootanaEventLoop.
Referenced by main().
00072 { 00073 00074 if(!fTRootanaEventLoop){ 00075 std::cerr << "Singleton Not Instantiated! " 00076 << " Need to call something like SomeClass::CreateSingleton<SomeClass>(); Exiting!" 00077 <<std::endl; exit(0); 00078 } 00079 return *fTRootanaEventLoop; 00080 }
int TRootanaEventLoop::GetCurrentRunNumber | ( | ) | const [inline, inherited] |
Current Run Number.
Definition at line 107 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fCurrentRunNumber.
Referenced by MyTestLoop::ProcessMidasEvent(), QuitButtonAction(), and UpdatePlotsAction().
00107 {return fCurrentRunNumber;};
TDataContainer* TRootanaEventLoop::GetDataContainer | ( | ) | [inline, inherited] |
Method to get the data container that event loop owns.
Definition at line 49 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fDataContainer.
00049 {return fDataContainer;};
std::string TRootanaDisplay::GetDisplayName | ( | ) | [inline] |
Get Display name.
Definition at line 123 of file TRootanaDisplay.hxx.
References fDisplayName.
Referenced by UpdatePlotsAction().
00123 {return fDisplayName;}
TMainDisplayWindow* TRootanaDisplay::GetDisplayWindow | ( | ) | [inline] |
Retrieve the main display window, so that users can do things like grab the canvases and update them.
Definition at line 82 of file TRootanaDisplay.hxx.
References fMainWindow.
Referenced by AddSingleCanvas(), InitializeMainWindow(), MyTestLoop::PlotCanvas(), and UpdatePlotsAction().
00082 { return fMainWindow;}
VirtualOdb* TRootanaEventLoop::GetODB | ( | ) | [inline, inherited] |
Get pointer to ODB variables.
Definition at line 141 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fODB.
00141 {return fODB;}
bool TRootanaEventLoop::GetSuppressTimestampWarnings | ( | ) | [inline, inherited] |
Suppress timestamp warnings? true = suppress warnings.
Definition at line 189 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fSuppressTimestampWarnings.
00189 { return fSuppressTimestampWarnings;};
void TRootanaDisplay::Initialize | ( | void | ) | [inline, virtual] |
Called after the arguments are processes but before reading the first event is read
Reimplemented from TRootanaEventLoop.
Definition at line 127 of file TRootanaDisplay.hxx.
References InitializeMainWindow().
00127 { 00128 InitializeMainWindow(); 00129 }
void TRootanaDisplay::InitializeMainWindow | ( | ) | [private] |
Method to initialize the Main display window.
Definition at line 34 of file TRootanaDisplay.cxx.
References AddAllCanvases(), TMainDisplayWindow::BuildWindow(), fMainWindow, fNumberSkipEventsOnline, GetDisplayWindow(), TMainDisplayWindow::GetNextButton(), TMainDisplayWindow::GetQuitButton(), TMainDisplayWindow::GetResetButton(), TMainDisplayWindow::GetSkipEventButton(), TMainDisplayWindow::GetTab(), TRootanaEventLoop::IsOffline(), and TRootanaEventLoop::IsOnline().
Referenced by Initialize().
00034 { 00035 00036 fMainWindow = new TMainDisplayWindow(gClient->GetRoot(),1200,800,IsOffline()); 00037 00038 // Link the a bunch of buttons in TMainWindowDisplay to functions in TRootanaDisplay. 00039 // This bit of ROOT magic requires that the TRootanaDisplay class get rootcint-ed. 00040 // It also requires that TRootanaDisplay methods be public (protected doesn't work). 00041 00042 // The reset button 00043 fMainWindow->GetResetButton()->Connect("Clicked()", "TRootanaDisplay", this, "Reset()"); 00044 00045 // The tab buttons 00046 fMainWindow->GetTab()->Connect("Selected(Int_t)", "TRootanaDisplay", this, "UpdatePlotsAction()"); 00047 00048 // The quit button 00049 fMainWindow->GetQuitButton()->Connect("Clicked()", "TRootanaDisplay", this, "QuitButtonAction()"); 00050 00051 00052 // The next button 00053 if(IsOffline()) 00054 fMainWindow->GetNextButton()->Connect("Clicked()", "TRootanaDisplay", this, "NextButtonPushed()"); 00055 00056 // The event skip counter 00057 if(IsOnline()){ 00058 TGNumberEntry *skipButton = fMainWindow->GetSkipEventButton(); 00059 skipButton->Connect("ValueSet(Long_t)", "TRootanaDisplay",this, "EventSkipButtonPushed()"); 00060 skipButton->GetNumberEntry()->Connect("ReturnPressed()", "TRootanaDisplay", this, "EventSkipButtonPushed()"); 00061 fNumberSkipEventsOnline = skipButton->GetNumberEntry()->GetIntNumber(); 00062 } 00063 00064 // Let the user add all the canvases they want. 00065 AddAllCanvases(); 00066 00067 // Now map out window. 00068 GetDisplayWindow()->BuildWindow(); 00069 00070 00071 }
bool TRootanaEventLoop::IsOffline | ( | ) | const [inline, inherited] |
Are we processing offline data?
Definition at line 104 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fIsOffline.
Referenced by InitializeMainWindow().
00104 {return fIsOffline;};
bool TRootanaEventLoop::IsOnline | ( | ) | const [inline, inherited] |
Are we processing online data?
Definition at line 101 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fIsOffline.
Referenced by InitializeMainWindow(), ProcessMidasEvent(), QuitButtonAction(), and UpdatePlotsAction().
00101 {return !fIsOffline;};
bool TRootanaEventLoop::IsRootFileValid | ( | ) | [inline, inherited] |
Check if output ROOT file is valid and open.
Definition at line 151 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fOutputFile.
00151 { 00152 if(fOutputFile) return true; 00153 return false; 00154 }
int TRootanaEventLoop::IsRootOutputEnabled | ( | ) | [inline, inherited] |
Definition at line 159 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fDisableRootOutput.
00159 {return !fDisableRootOutput;};
void TRootanaDisplay::NextButtonPushed | ( | ) | [inline] |
Method for when next button is pushed (offline mode).
Definition at line 94 of file TRootanaDisplay.hxx.
References waitingForNextButton.
00094 { 00095 waitingForNextButton = false; 00096 }
void TRootanaEventLoop::OpenRootFile | ( | int | run, | |
std::string | midasFilename = std::string("") | |||
) | [inherited] |
Open output ROOT file.
Definition at line 422 of file TRootanaEventLoop.cxx.
References TRootanaEventLoop::fDisableRootOutput, TRootanaEventLoop::fOutputFile, TRootanaEventLoop::fOutputFilename, NetDirectoryExport(), and TRootanaEventLoop::SetFullOutputFileName().
Referenced by TRootanaEventLoop::ProcessMidasFile().
00422 { 00423 00424 if(fDisableRootOutput) return; 00425 00426 if(fOutputFile) { 00427 fOutputFile->Write(); 00428 fOutputFile->Close(); 00429 fOutputFile=0; 00430 } 00431 00432 char filename[1024]; 00433 // This is the default filename, using fOutputFilename 00434 sprintf(filename, "%s%08d.root",fOutputFilename.c_str(), run); 00435 00436 // See if user has implemented a function where they specify 00437 // the root file name using the midas file name... 00438 // Only works offline, because we need midas file name 00439 if(midasFilename.compare("") != 0){ 00440 std::string fullname = SetFullOutputFileName(run,midasFilename); 00441 if(fullname.compare("") != 0){ 00442 sprintf(filename, "%s",fullname.c_str()); 00443 } 00444 } 00445 00446 fOutputFile = new TFile(filename,"RECREATE"); 00447 std::cout << "Opened output file with name : " << filename << std::endl; 00448 00449 00450 #ifdef HAVE_LIBNETDIRECTORY 00451 NetDirectoryExport(fOutputFile, "outputFile"); 00452 #endif 00453 }
virtual void TRootanaDisplay::PlotCanvas | ( | TDataContainer & | dataContainer | ) | [inline, virtual] |
This method can be implemented by users to plotting of current canvas.
Reimplemented in MyTestLoop, and MyTestLoop.
Definition at line 88 of file TRootanaDisplay.hxx.
Referenced by UpdatePlotsAction().
virtual bool TRootanaEventLoop::PreFilter | ( | TDataContainer & | dataContainer | ) | [inline, virtual, inherited] |
The PreFilter method allows user to specify whether to ignore a particular event. Specifically, if PreFilter returns
true -> then ProcessMidasEvent will be called or false -> then ProcessMidasEvent will not be called
This is particularly useful for the RootanaDisplay, where you might want to only process and plot certain events.
Definition at line 98 of file TRootanaEventLoop.hxx.
Referenced by TRootanaEventLoop::ProcessMidasFile().
bool TRootanaDisplay::ProcessMidasEvent | ( | TDataContainer & | dataContainer | ) | [private, virtual] |
Process each midas event.
Implements TRootanaEventLoop.
Reimplemented in MyTestLoop.
Definition at line 96 of file TRootanaDisplay.cxx.
References fCachedDataContainer, fCanvasHandlers, fMainWindow, fNumberProcessed, fNumberSkipEventsOffline, fNumberSkipEventsOnline, fQuitPushed, TMainDisplayWindow::IsDisplayPaused(), TRootanaEventLoop::IsOnline(), TMainDisplayWindow::ResetSize(), SetCachedDataContainer(), UpdateHistograms(), UpdatePlotsAction(), and waitingForNextButton.
00096 { 00097 00098 fMainWindow->ResetSize(); 00099 fNumberProcessed++; 00100 00101 // Only update histograms if we are "offline" or "online and but paused". 00102 // This ensures that we don't update if the user pressed 'pause' since the 00103 // last event. 00104 if(!IsOnline() || (IsOnline() && !fMainWindow->IsDisplayPaused())){ 00105 SetCachedDataContainer(dataContainer); 00106 00107 // Perform any histogram updating from user code. 00108 UpdateHistograms(*fCachedDataContainer); 00109 for(unsigned int i = 0; i < fCanvasHandlers.size(); i++) 00110 fCanvasHandlers[i].second->UpdateCanvasHistograms(*fCachedDataContainer); 00111 } 00112 00113 // If processing online and if processing is not paused, then just plot and return 00114 if(IsOnline() && !fMainWindow->IsDisplayPaused() ){ 00115 00116 // Do canvas plotting from user code; 00117 // only do plot if we have processed enough events 00118 if(fNumberSkipEventsOnline == 1 || fNumberProcessed % fNumberSkipEventsOnline == 1){ 00119 UpdatePlotsAction(); 00120 } 00121 00122 return true; 00123 } 00124 00125 // If processing offline, make sure we have skipped the right number of events. 00126 if(!IsOnline() && fNumberSkipEventsOffline >= fNumberProcessed){ 00127 return true; 00128 } 00129 00130 UpdatePlotsAction(); 00131 00132 // If offline, then keep looping till the next event button is pushed. 00133 // If online, then keep looping till the resume button is pushed. 00134 waitingForNextButton = true; 00135 while(1){ 00136 00137 // Add some sleeps; otherwise program takes 100% of CPU... 00138 usleep(1000); 00139 00140 // ROOT signal/slot trick; this variable will magically 00141 // get changed to false once the next button is pushed. 00142 if(!waitingForNextButton) break; 00143 00144 // Alternately, break out if in online mode and 00145 // no longer in paused state. Again, the state of variable 00146 // will be changed by ROOT signal/slot callback. 00147 if(IsOnline() && !fMainWindow->IsDisplayPaused()) break; 00148 00149 // Check if quit button has been pushed. See QuitButtonAction() for details 00150 if(IsOnline() && fQuitPushed) break; 00151 00152 // Resize windows, if needed. 00153 fMainWindow->ResetSize(); 00154 00155 // handle GUI events 00156 bool result = gSystem->ProcessEvents(); 00157 00158 } 00159 return true; 00160 00161 }
int TRootanaEventLoop::ProcessMidasFile | ( | TApplication * | app, | |
const char * | fname | |||
) | [inherited] |
Treat the begin run and end run events differently.
Definition at line 328 of file TRootanaEventLoop.cxx.
References TRootanaEventLoop::BeginRun(), TRootanaEventLoop::CheckEventID(), TDataContainer::CleanupEvent(), TMidasFile::Close(), TRootanaEventLoop::CloseRootFile(), TRootanaEventLoop::EndRun(), TRootanaEventLoop::fCurrentRunNumber, TRootanaEventLoop::fDataContainer, TRootanaEventLoop::fMaxEvents, TRootanaEventLoop::fODB, TMidasEvent::GetData(), TMidasEvent::GetSerialNumber(), gUseOnlyRecent, TMidasFile::Open(), TRootanaEventLoop::OpenRootFile(), TRootanaEventLoop::PreFilter(), PrintCurrentStats(), TRootanaEventLoop::ProcessMidasEvent(), raTotalEventsProcessed, raTotalEventsSkippedForAge, TMidasFile::Read(), and TDataContainer::SetMidasEventPointer().
Referenced by TRootanaEventLoop::ExecuteLoop().
00329 { 00330 TMidasFile f; 00331 bool tryOpen = f.Open(fname); 00332 00333 if (!tryOpen){ 00334 printf("Cannot open input file \"%s\"\n",fname); 00335 return -1; 00336 } 00337 00338 // This parameter is irrelevant for offline processing. 00339 gUseOnlyRecent = false; 00340 00341 int i=0; 00342 while (1) 00343 { 00344 TMidasEvent event; 00345 if (!f.Read(&event)) 00346 break; 00347 00348 /// Treat the begin run and end run events differently. 00349 int eventId = event.GetEventId(); 00350 00351 00352 00353 if ((eventId & 0xFFFF) == 0x8000){// begin run event 00354 00355 event.Print(); 00356 00357 // Load ODB contents from the ODB XML file 00358 if (fODB) delete fODB; 00359 fODB = new XmlOdb(event.GetData(),event.GetDataSize()); 00360 00361 fCurrentRunNumber = event.GetSerialNumber(); 00362 OpenRootFile(fCurrentRunNumber,fname); 00363 BeginRun(0,event.GetSerialNumber(),0); 00364 raTotalEventsProcessed = 0; 00365 raTotalEventsSkippedForAge = 0; 00366 00367 } else if ((eventId & 0xFFFF) == 0x8001){// end run event 00368 00369 event.Print(); 00370 //EndRun(0,fCurrentRunNumber,0); 00371 00372 00373 } else if ((eventId & 0xFFFF) == 0x8002){ 00374 00375 event.Print(); 00376 printf("Log message: %s\n", event.GetData()); 00377 00378 }else if(CheckEventID(eventId)){ // all other events; check that this event ID should be processed. 00379 00380 // Set the bank list for midas event. 00381 event.SetBankList(); 00382 00383 // Set the midas event pointer in the physics event. 00384 fDataContainer->SetMidasEventPointer(event); 00385 00386 //ProcessEvent if prefilter is satisfied... 00387 if(PreFilter(*fDataContainer)) 00388 ProcessMidasEvent(*fDataContainer); 00389 00390 // Cleanup the information for this event. 00391 fDataContainer->CleanupEvent(); 00392 00393 } 00394 00395 PrintCurrentStats(); 00396 00397 // Check if we have processed desired number of events. 00398 i++; 00399 if ((fMaxEvents!=0)&&(i>=fMaxEvents)){ 00400 printf("Reached event %d, exiting loop.\n",i); 00401 break; 00402 } 00403 } 00404 00405 f.Close(); 00406 00407 EndRun(0,fCurrentRunNumber,0); 00408 CloseRootFile(); 00409 00410 // start the ROOT GUI event loop 00411 // app->Run(kTRUE); 00412 00413 return 0; 00414 }
void TRootanaEventLoop::ProcessThisEventID | ( | int | eventID | ) | [inline, inherited] |
Provide a way to force program to only process certain event IDs. This method can be called repeatedly to specify several different event IDs to accept. If the method is not called then all eventIDs are accepted.
Definition at line 177 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fProcessEventIDs.
00177 { 00178 fProcessEventIDs.push_back(eventID); 00179 };
void TRootanaDisplay::QuitButtonAction | ( | ) |
Method to call when 'quit' button is pressed.
Definition at line 234 of file TRootanaDisplay.cxx.
References TRootanaEventLoop::CloseRootFile(), EndRun(), fQuitPushed, TRootanaEventLoop::GetCurrentRunNumber(), and TRootanaEventLoop::IsOnline().
00235 { 00236 // If we are offline, then we close the ROOT file here. 00237 // If we are online then the control will return to TRootanaEventLoop::ProcessMidasOnline 00238 // which will take care of closing the file. 00239 00240 if(!IsOnline()){ 00241 EndRun(0,GetCurrentRunNumber(),0); 00242 CloseRootFile(); 00243 } 00244 00245 // Set a flag so that we can breakout of loop if 00246 // we are ONLINE and PAUSED. 00247 // It is odd that gApplication->Terminate(0) doesn't 00248 // finish, but somehow it seems to wait for the the 00249 // RootanaDisplay::ProcessMidasEvent() to finish. 00250 fQuitPushed = true; 00251 gApplication->Terminate(0); 00252 }
void TRootanaDisplay::Reset | ( | ) |
This method calls a couple other methods for resets the histograms. This method is attached using the ROOT signal/input system to the reset button on the canvas.
Definition at line 224 of file TRootanaDisplay.cxx.
References fCanvasHandlers, ResetHistograms(), and UpdatePlotsAction().
00224 { 00225 // Call the reset functions defined in user event loop. 00226 ResetHistograms(); 00227 // Call the user defined canvas classes. 00228 for(unsigned int i = 0; i < fCanvasHandlers.size(); i++) 00229 fCanvasHandlers[i].second->ResetCanvasHistograms(); 00230 UpdatePlotsAction(); 00231 }
virtual void TRootanaDisplay::ResetHistograms | ( | ) | [inline, virtual] |
This method can be implemented by users to plotting of current canvas.
Reimplemented in MyTestLoop, and MyTestLoop.
Definition at line 91 of file TRootanaDisplay.hxx.
Referenced by Reset().
void TRootanaDisplay::SetCachedDataContainer | ( | TDataContainer & | dataContainer | ) | [inline, private] |
Set the cached copy of midas dataContainer. !!! This is very questionable! Caching each dataContainer might add a considerable overhead to the processing!
Definition at line 189 of file TRootanaDisplay.hxx.
References fCachedDataContainer.
Referenced by ProcessMidasEvent().
00189 { 00190 if(fCachedDataContainer) delete fCachedDataContainer; 00191 fCachedDataContainer = new TDataContainer(dataContainer); 00192 }
void TRootanaEventLoop::SetCurrentRunNumber | ( | int | run | ) | [inline, inherited] |
Current Run Number.
Definition at line 110 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fCurrentRunNumber.
00110 {fCurrentRunNumber = run;};
void TRootanaDisplay::SetDisplayName | ( | std::string | name | ) | [inline] |
Set Display name.
Definition at line 125 of file TRootanaDisplay.hxx.
References fDisplayName.
Referenced by MyTestLoop::AddAllCanvases().
00125 {fDisplayName = name;}
virtual std::string TRootanaEventLoop::SetFullOutputFileName | ( | int | run, | |
std::string | midasFilename | |||
) | [inline, virtual, inherited] |
This is an alternative, more complicated way of setting the output ROOT filename. In this case the user is given the run number and the midas file name and, from that information, constructs the output ROOT filename themselves.
Reimplemented in Analyzer.
Definition at line 168 of file TRootanaEventLoop.hxx.
Referenced by TRootanaEventLoop::OpenRootFile().
void TRootanaDisplay::SetNumberSkipEvent | ( | int | number | ) | [inline] |
Function so that user can specify at outset how many events to skip before refreshing display (in online mode).
Definition at line 116 of file TRootanaDisplay.hxx.
References fMainWindow, fNumberSkipEventsOnline, and TMainDisplayWindow::GetSkipEventButton().
Referenced by MyTestLoop::AddAllCanvases().
00116 { 00117 fNumberSkipEventsOnline = number; 00118 if(fMainWindow->GetSkipEventButton()) 00119 fMainWindow->GetSkipEventButton()->GetNumberEntry()->SetIntNumber(number); 00120 }
void TRootanaEventLoop::SetOnlineName | ( | std::string | name | ) | [inline, inherited] |
Definition at line 172 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fOnlineName.
00172 {fOnlineName = name;};
void TRootanaEventLoop::SetOutputFilename | ( | std::string | name | ) | [inline, inherited] |
Set the output filename. File name will be XXX.root, where XXX is run number
Definition at line 163 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fOutputFilename.
Referenced by MyTestLoop::MyTestLoop().
00163 {fOutputFilename = name;};
void TRootanaEventLoop::SuppressTimestampWarnings | ( | ) | [inline, inherited] |
Suppress the warning methods regarding old timestamp events for online ie warnings about analyzer falling behind data taking.
Definition at line 186 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fSuppressTimestampWarnings.
00186 { fSuppressTimestampWarnings = true;};
virtual void TRootanaDisplay::UpdateHistograms | ( | TDataContainer & | dataContainer | ) | [inline, virtual] |
This method can be implemented by users to update user histograms.
Reimplemented in MyTestLoop, and MyTestLoop.
Definition at line 85 of file TRootanaDisplay.hxx.
Referenced by ProcessMidasEvent().
void TRootanaDisplay::UpdatePlotsAction | ( | ) |
This is a generic action to call when some button gets pushed. Also called in regular event handling loop
Definition at line 182 of file TRootanaDisplay.cxx.
References fCachedDataContainer, fCanvasHandlers, fMainWindow, TMainDisplayWindow::GetCurrentEmbeddedCanvas(), TRootanaEventLoop::GetCurrentRunNumber(), TMainDisplayWindow::GetCurrentTabIndex(), GetDisplayName(), GetDisplayWindow(), TMainDisplayWindow::GetMain(), TDataContainer::GetMidasData(), TMidasEvent::GetSerialNumber(), TRootanaEventLoop::IsOnline(), PlotCanvas(), and TMainDisplayWindow::ResetSize().
Referenced by BeginRun(), EndRun(), ProcessMidasEvent(), and Reset().
00182 { 00183 00184 if(!fCachedDataContainer){ 00185 char displayTitle[200]; 00186 sprintf(displayTitle,"%s (): run %i (no events yet)", 00187 GetDisplayName().c_str(),GetCurrentRunNumber()); 00188 GetDisplayWindow()->GetMain()->SetWindowName(displayTitle); 00189 return; 00190 } 00191 00192 // Execute the plotting actions from user event loop. 00193 PlotCanvas(*fCachedDataContainer); 00194 00195 // See if we find a user class that describes this tab. 00196 std::pair<int,int> tabdex = GetDisplayWindow()->GetCurrentTabIndex(); 00197 for(unsigned int i = 0; i < fCanvasHandlers.size(); i++){ 00198 if(tabdex == fCanvasHandlers[i].first){ 00199 TRootEmbeddedCanvas* embed = GetDisplayWindow()->GetCurrentEmbeddedCanvas(); 00200 fCanvasHandlers[i].second->PlotCanvas(*fCachedDataContainer,embed); 00201 } 00202 } 00203 00204 00205 // Set the display title 00206 char displayTitle[200]; 00207 if(IsOnline()) 00208 sprintf(displayTitle,"%s (online): run %i event %i", 00209 GetDisplayName().c_str(),GetCurrentRunNumber(), 00210 fCachedDataContainer->GetMidasData().GetSerialNumber()); 00211 else 00212 sprintf(displayTitle,"%s (offline): run %i event %i", 00213 GetDisplayName().c_str(),GetCurrentRunNumber(), 00214 fCachedDataContainer->GetMidasData().GetSerialNumber()); 00215 00216 GetDisplayWindow()->GetMain()->SetWindowName(displayTitle); 00217 00218 00219 // Update canvas and window sizes 00220 fMainWindow->ResetSize(); 00221 00222 }
void TRootanaEventLoop::Usage | ( | void | ) | [virtual, inherited] |
Called when there is a usage error. This code should print a usage message and then return.
Reimplemented in MyTestLoop.
Definition at line 127 of file TRootanaEventLoop.cxx.
Referenced by TRootanaEventLoop::PrintHelp().
void TRootanaDisplay::UsageRAD | ( | void | ) | [inline, virtual] |
Also a special version of usage for TRootanaDisplay. See CheckOptionRAD.
Reimplemented from TRootanaEventLoop.
Definition at line 140 of file TRootanaDisplay.hxx.
void TRootanaEventLoop::UseBatchMode | ( | ) | [inline, inherited] |
Use a batch mode, where we don't check ROOT status.
Definition at line 138 of file TRootanaEventLoop.hxx.
References TRootanaEventLoop::fUseBatchMode.
00138 { fUseBatchMode = true;}
void TRootanaEventLoop::UseOnlyRecent | ( | bool | setting = true |
) | [inherited] |
Method to set whether analyzer should operate in GET_RECENT mode, where we only process data that is less than 1 second old (this is not default). Setting true will use this option.
Definition at line 416 of file TRootanaEventLoop.cxx.
References gUseOnlyRecent.
00416 { 00417 00418 gUseOnlyRecent = setting; 00419 };
We keep a cached copy of the midas event (so that it can used for callback).
Definition at line 184 of file TRootanaDisplay.hxx.
Referenced by ProcessMidasEvent(), SetCachedDataContainer(), and UpdatePlotsAction().
std::vector< std::pair<std::pair<int,int> ,TCanvasHandleBase*> > TRootanaDisplay::fCanvasHandlers [private] |
This is a vector of user-defined canvas handler classes. The first part of pair is the tab number.
Definition at line 199 of file TRootanaDisplay.hxx.
Referenced by AddSingleCanvas(), BeginRun(), EndRun(), ProcessMidasEvent(), Reset(), UpdatePlotsAction(), and ~TRootanaDisplay().
std::string TRootanaDisplay::fDisplayName [private] |
Display name.
Definition at line 195 of file TRootanaDisplay.hxx.
Referenced by GetDisplayName(), and SetDisplayName().
TMainDisplayWindow* TRootanaDisplay::fMainWindow [private] |
The pointer to our display window.
Definition at line 167 of file TRootanaDisplay.hxx.
Referenced by AddSingleCanvas(), EventSkipButtonPushed(), GetDisplayWindow(), InitializeMainWindow(), ProcessMidasEvent(), SetNumberSkipEvent(), and UpdatePlotsAction().
int TRootanaDisplay::fNumberProcessed [private] |
Definition at line 161 of file TRootanaDisplay.hxx.
Referenced by ProcessMidasEvent().
int TRootanaDisplay::fNumberSkipEventsOffline [private] |
Variable to keep track of how many events to skip when running offline; defined by command line argument.
Definition at line 158 of file TRootanaDisplay.hxx.
Referenced by CheckOptionRAD(), and ProcessMidasEvent().
int TRootanaDisplay::fNumberSkipEventsOnline [private] |
Variable to keep track of how many events to skip before updating display; we have separate variable for online and offline modes.
Definition at line 154 of file TRootanaDisplay.hxx.
Referenced by EventSkipButtonPushed(), InitializeMainWindow(), ProcessMidasEvent(), and SetNumberSkipEvent().
TDirectory* TRootanaEventLoop::fOnlineHistDir [protected, inherited] |
TDirectory for online histograms.
Definition at line 212 of file TRootanaEventLoop.hxx.
Referenced by TRootanaEventLoop::ExecuteLoop(), MyTestLoop::ProcessMidasEvent(), and TRootanaEventLoop::TRootanaEventLoop().
bool TRootanaDisplay::fQuitPushed [private] |
Flag to keep track of if quite button has been pushed.
Definition at line 164 of file TRootanaDisplay.hxx.
Referenced by ProcessMidasEvent(), and QuitButtonAction().
TRootanaEventLoop * TRootanaEventLoop::fTRootanaEventLoop = NULL [static, protected, inherited] |
The static pointer to the singleton instance.
Definition at line 209 of file TRootanaEventLoop.hxx.
Referenced by TRootanaEventLoop::CreateSingleton(), and TRootanaEventLoop::Get().
bool TRootanaDisplay::waitingForNextButton [private] |
Definition at line 150 of file TRootanaDisplay.hxx.
Referenced by NextButtonPushed(), and ProcessMidasEvent().