ROOTANA
Public Member Functions | Data Fields
Analyzer Class Reference
Inheritance diagram for Analyzer:
Inheritance graph
[legend]
Collaboration diagram for Analyzer:
Collaboration graph
[legend]

Public Member Functions

 Analyzer ()
 
virtual ~Analyzer ()
 
void Initialize ()
 
void InitManager ()
 
void BeginRun (int transition, int run, int time)
 
bool ProcessMidasEvent (TDataContainer &dataContainer)
 
 Analyzer ()
 
virtual ~Analyzer ()
 
void Initialize ()
 
void BeginRun (int transition, int run, int time)
 
void EndRun (int transition, int run, int time)
 
bool ProcessMidasEvent (TDataContainer &dataContainer)
 
std::string SetFullOutputFileName (int run, std::string midasFilename)
 
 Analyzer ()
 
virtual ~Analyzer ()
 
void Initialize ()
 
void BeginRun (int transition, int run, int time)
 
void EndRun (int transition, int run, int time)
 
bool ProcessMidasEvent (TDataContainer &dataContainer)
 
 Analyzer ()
 
virtual ~Analyzer ()
 
void Initialize ()
 
void InitManager ()
 
void BeginRun (int transition, int run, int time)
 
bool ProcessMidasEvent (TDataContainer &dataContainer)
 
- Public Member Functions inherited from TRootanaEventLoop
virtual ~TRootanaEventLoop ()
 
TDataContainerGetDataContainer ()
 Method to get the data container that event loop owns. More...
 
virtual void InitializeRAD (void)
 Special version of Init method, to be used only by TRootanaDisplay. More...
 
virtual void BeginRunRAD (int transition, int run, int time)
 
virtual void EndRunRAD (int transition, int run, int time)
 Also special version of EOR method, to be used only by TRootanaDisplay. More...
 
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? More...
 
bool IsOffline () const
 Are we processing offline data? More...
 
int GetCurrentRunNumber () const
 Current Run Number. More...
 
void SetCurrentRunNumber (int run)
 Current Run Number. More...
 
int ExecuteLoop (int argc, char *argv[])
 Method to actually process the Midas information, either as file or online. More...
 
int ProcessMidasFile (TApplication *app, const char *fname)
 
int ProcessMidasOnline (TApplication *app, const char *hostname, const char *exptname)
 
void DisableAutoMainWindow ()
 Disable automatic creation of MainWindow. More...
 
void UseBatchMode ()
 Use a batch mode, where we don't check ROOT status. More...
 
MVOdbGetODB ()
 Get pointer to ODB variables. More...
 
void OpenRootFile (int run, std::string midasFilename=std::string(""))
 Open output ROOT file. More...
 
void CloseRootFile ()
 Cloe output ROOT file. More...
 
bool IsRootFileValid ()
 Check if output ROOT file is valid and open. More...
 
void DisableRootOutput (bool disable=true)
 
int IsRootOutputEnabled ()
 
void SetOutputFilename (std::string name)
 
void SetOnlineName (std::string name)
 
void ProcessThisEventID (int eventID)
 
bool CheckEventID (int eventId)
 Little helper method to check if EventID matchs requested EventID list. More...
 
void SuppressTimestampWarnings ()
 
bool GetSuppressTimestampWarnings ()
 Suppress timestamp warnings? true = suppress warnings. More...
 
void UseOnlyRecent (bool setting=true)
 
void SetTHttpServerReadWrite (bool readwrite=true)
 

Data Fields

TAnaManageranaManager
 
TTree * fTree
 
int timestamp
 
int serialnumber
 
float current_readings [9]
 
float voltage_readings [9]
 
struct timeval LastUpdateTime
 

Additional Inherited Members

- Static Public Member Functions inherited from TRootanaEventLoop
static TRootanaEventLoopGet (void)
 
template<typename T >
static void CreateSingleton ()
 
- Protected Member Functions inherited from TRootanaEventLoop
bool CreateOutputFile (std::string name, std::string options="RECREATE")
 
 TRootanaEventLoop ()
 
virtual bool CheckOptionRAD (std::string option)
 
virtual void UsageRAD (void)
 Also a special version of usage for TRootanaDisplay. See CheckOptionRAD. More...
 
- Protected Attributes inherited from TRootanaEventLoop
TDirectoryfOnlineHistDir
 TDirectory for online histograms. More...
 
- Static Protected Attributes inherited from TRootanaEventLoop
static TRootanaEventLoopfTRootanaEventLoop = NULL
 The static pointer to the singleton instance. More...
 

Detailed Description

Definition at line 14 of file ana.cxx.

Constructor & Destructor Documentation

◆ Analyzer() [1/4]

Analyzer::Analyzer ( )
inline

Definition at line 25 of file ana.cxx.

Here is the call graph for this function:

◆ ~Analyzer() [1/4]

virtual Analyzer::~Analyzer ( )
inlinevirtual

Definition at line 32 of file ana.cxx.

◆ Analyzer() [2/4]

Analyzer::Analyzer ( )
inline

Definition at line 42 of file midas2root.cxx.

◆ ~Analyzer() [2/4]

virtual Analyzer::~Analyzer ( )
inlinevirtual

Definition at line 46 of file midas2root.cxx.

◆ Analyzer() [3/4]

Analyzer::Analyzer ( )
inline

Definition at line 34 of file midas2root_alt.cxx.

Here is the call graph for this function:

◆ ~Analyzer() [3/4]

virtual Analyzer::~Analyzer ( )
inlinevirtual

Definition at line 39 of file midas2root_alt.cxx.

◆ Analyzer() [4/4]

Analyzer::Analyzer ( )
inline

Definition at line 25 of file root_server.cxx.

Here is the call graph for this function:

◆ ~Analyzer() [4/4]

virtual Analyzer::~Analyzer ( )
inlinevirtual

Definition at line 36 of file root_server.cxx.

Member Function Documentation

◆ BeginRun() [1/4]

void Analyzer::BeginRun ( int  transition,
int  run,
int  time 
)
inlinevirtual

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.

Definition at line 52 of file ana.cxx.

Here is the call graph for this function:

◆ BeginRun() [2/4]

void Analyzer::BeginRun ( int  transition,
int  run,
int  time 
)
inlinevirtual

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.

Definition at line 54 of file midas2root.cxx.

◆ BeginRun() [3/4]

void Analyzer::BeginRun ( int  transition,
int  run,
int  time 
)
inlinevirtual

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.

Definition at line 47 of file midas2root_alt.cxx.

◆ BeginRun() [4/4]

void Analyzer::BeginRun ( int  transition,
int  run,
int  time 
)
inlinevirtual

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.

Definition at line 56 of file root_server.cxx.

Here is the call graph for this function:

◆ EndRun() [1/2]

void Analyzer::EndRun ( int  transition,
int  run,
int  time 
)
inlinevirtual

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.

Definition at line 70 of file midas2root.cxx.

◆ EndRun() [2/2]

void Analyzer::EndRun ( int  transition,
int  run,
int  time 
)
inlinevirtual

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.

Definition at line 59 of file midas2root_alt.cxx.

◆ Initialize() [1/4]

void Analyzer::Initialize ( void  )
inlinevirtual

Called after the arguments are processes but before reading the first event is read

Reimplemented from TRootanaEventLoop.

Definition at line 34 of file ana.cxx.

Here is the call graph for this function:

◆ Initialize() [2/4]

void Analyzer::Initialize ( void  )
inlinevirtual

Called after the arguments are processes but before reading the first event is read

Reimplemented from TRootanaEventLoop.

Definition at line 48 of file midas2root.cxx.

◆ Initialize() [3/4]

void Analyzer::Initialize ( void  )
inlinevirtual

Called after the arguments are processes but before reading the first event is read

Reimplemented from TRootanaEventLoop.

Definition at line 41 of file midas2root_alt.cxx.

◆ Initialize() [4/4]

void Analyzer::Initialize ( void  )
inlinevirtual

Called after the arguments are processes but before reading the first event is read

Reimplemented from TRootanaEventLoop.

Definition at line 38 of file root_server.cxx.

Here is the call graph for this function:

◆ InitManager() [1/2]

void Analyzer::InitManager ( )
inline

Definition at line 43 of file ana.cxx.

Here is the caller graph for this function:

◆ InitManager() [2/2]

void Analyzer::InitManager ( )
inline

Definition at line 47 of file root_server.cxx.

◆ ProcessMidasEvent() [1/4]

bool Analyzer::ProcessMidasEvent ( TDataContainer dataContainer)
inlinevirtual

The main method, called for each event. Users must implement this function!

Implements TRootanaEventLoop.

Definition at line 59 of file ana.cxx.

Here is the call graph for this function:

◆ ProcessMidasEvent() [2/4]

bool Analyzer::ProcessMidasEvent ( TDataContainer dataContainer)
inlinevirtual

The main method, called for each event. Users must implement this function!

Implements TRootanaEventLoop.

Definition at line 78 of file midas2root.cxx.

Here is the call graph for this function:

◆ ProcessMidasEvent() [3/4]

bool Analyzer::ProcessMidasEvent ( TDataContainer dataContainer)
inlinevirtual

The main method, called for each event. Users must implement this function!

Implements TRootanaEventLoop.

Definition at line 67 of file midas2root_alt.cxx.

Here is the call graph for this function:

◆ ProcessMidasEvent() [4/4]

bool Analyzer::ProcessMidasEvent ( TDataContainer dataContainer)
inlinevirtual

The main method, called for each event. Users must implement this function!

Implements TRootanaEventLoop.

Definition at line 64 of file root_server.cxx.

Here is the call graph for this function:

◆ SetFullOutputFileName()

std::string Analyzer::SetFullOutputFileName ( int  run,
std::string  midasFilename 
)
inlinevirtual

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 from TRootanaEventLoop.

Definition at line 110 of file midas2root.cxx.

Field Documentation

◆ anaManager

TAnaManager * Analyzer::anaManager

Definition at line 23 of file ana.cxx.

◆ current_readings

float Analyzer::current_readings[9]

Definition at line 31 of file midas2root_alt.cxx.

◆ fTree

TTree * Analyzer::fTree

Definition at line 31 of file midas2root.cxx.

◆ LastUpdateTime

struct timeval Analyzer::LastUpdateTime

Definition at line 56 of file root_server.cxx.

◆ serialnumber

int Analyzer::serialnumber

Definition at line 34 of file midas2root.cxx.

◆ timestamp

int Analyzer::timestamp

Definition at line 33 of file midas2root.cxx.

◆ voltage_readings

float Analyzer::voltage_readings[9]

Definition at line 32 of file midas2root_alt.cxx.


The documentation for this class was generated from the following files: