HARPO  5.1.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Public Member Functions | Protected Attributes | Private Attributes
HarpoReader Class Reference

A class which instantiate the real top level reader. More...

#include <HarpoReader.h>

Public Member Functions

 HarpoReader ()
 
 HarpoReader (HarpoConfig *cfg)
 Constructor called by a standalone application. More...
 
virtual ~HarpoReader ()
 
void SetDetFile (TString *name, Int_t plane)
 
void SetRootFile (TString *name)
 
void SetAnalyseFunction (HarpoAnalyse *func, Int_t i=0)
 
void AddAnalyseFunction (HarpoAnalyse *func)
 
Bool_t NextEvent ()
 
Bool_t isTimeSynchro ()
 
void SkipEvent ()
 
HarpoEventGetEvent ()
 
HarpoRunHeaderGetRunHeader ()
 
Bool_t Init (hReadMode mode=hSyncTime)
 
Bool_t isDone ()
 EOF reached. More...
 
Bool_t isError ()
 Read errors. More...
 
Long_t LoopAll ()
 Read errors. More...
 
Long_t Loop (Long_t maxevents)
 
Long_t Find (Long_t eventNo)
 Find raw event by event number. More...
 
void SetRunNo (Long_t nRun)
 Find raw event by event number. More...
 
Long_t GetRunNo ()
 
Long_t GetReadEvts ()
 Number of readed events. More...
 

Protected Attributes

Long_t fRunNo
 Number of readed events. More...
 
Long_t fNevts
 
Long_t fFirstEvent
 
Long_t fMaxEvents
 
Bool_t fDone
 
Bool_t fError
 
Int_t fNanalyses
 
HarpoDetReader ** fDetReader
 
HarpoEventfEvent
 
HarpoEventHeaderfEventHeader
 
HarpoRunHeaderfRunHeader
 
HarpoAnalysefAnalyse [30]
 
HarpoDetSetfDetSet
 

Private Attributes

HarpoReaderBaserdr
 

Detailed Description

A class which instantiate the real top level reader.

The class is initialized by calling the init() proceedure.

Definition at line 33 of file HarpoReader.h.

Constructor & Destructor Documentation

HarpoReader::HarpoReader ( )
HarpoReader::HarpoReader ( HarpoConfig cfg)

Constructor called by a standalone application.

The constructor resets all pointers among the data members, parses the configuration file. You will need to call Init() metod before access to any data from an input file.

Definition at line 75 of file HarpoReader.cxx.

HarpoReader::~HarpoReader ( )
virtual

Definition at line 116 of file HarpoReader.cxx.

Member Function Documentation

void HarpoReader::AddAnalyseFunction ( HarpoAnalyse func)
inlinevirtual

Reimplemented from HarpoReaderBase.

Definition at line 56 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Long_t HarpoReader::Find ( Long_t  eventNo)
inlinevirtual

Find raw event by event number.

Implements HarpoReaderBase.

Definition at line 82 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

HarpoEvent* HarpoReader::GetEvent ( )
inlinevirtual

Implements HarpoReaderBase.

Definition at line 68 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Long_t HarpoReader::GetReadEvts ( )
inlinevirtual

Number of readed events.

Reimplemented from HarpoReaderBase.

Definition at line 87 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

HarpoRunHeader* HarpoReader::GetRunHeader ( )
inlinevirtual

Implements HarpoReaderBase.

Definition at line 70 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Long_t HarpoReader::GetRunNo ( )
inlinevirtual

Reimplemented from HarpoReaderBase.

Definition at line 85 of file HarpoReader.h.

Here is the call graph for this function:

Bool_t HarpoReader::Init ( hReadMode  mode = hSyncTime)
inlinevirtual

Implements HarpoReaderBase.

Definition at line 73 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoReader::isDone ( )
inlinevirtual

EOF reached.

Reimplemented from HarpoReaderBase.

Definition at line 75 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoReader::isError ( )
inlinevirtual

Read errors.

Reimplemented from HarpoReaderBase.

Definition at line 77 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoReader::isTimeSynchro ( )
inlinevirtual

Implements HarpoReaderBase.

Definition at line 64 of file HarpoReader.h.

Here is the call graph for this function:

Long_t HarpoReader::Loop ( Long_t  maxevents)
inlinevirtual

Implements HarpoReaderBase.

Definition at line 80 of file HarpoReader.h.

Here is the call graph for this function:

Long_t HarpoReader::LoopAll ( )
inlinevirtual

Read errors.

Reimplemented from HarpoReaderBase.

Definition at line 79 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoReader::NextEvent ( )
inlinevirtual

Implements HarpoReaderBase.

Definition at line 62 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoReader::SetAnalyseFunction ( HarpoAnalyse func,
Int_t  i = 0 
)
inlinevirtual

Reimplemented from HarpoReaderBase.

Definition at line 51 of file HarpoReader.h.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoReader::SetDetFile ( TString *  name,
Int_t  plane 
)
inlinevirtual

Implements HarpoReaderBase.

Definition at line 46 of file HarpoReader.h.

Here is the call graph for this function:

void HarpoReader::SetRootFile ( TString *  name)
inlinevirtual

Implements HarpoReaderBase.

Definition at line 49 of file HarpoReader.h.

Here is the call graph for this function:

void HarpoReader::SetRunNo ( Long_t  nRun)
inlinevirtual

Find raw event by event number.

Reimplemented from HarpoReaderBase.

Definition at line 84 of file HarpoReader.h.

Here is the call graph for this function:

void HarpoReader::SkipEvent ( )
inlinevirtual

Implements HarpoReaderBase.

Definition at line 66 of file HarpoReader.h.

Here is the call graph for this function:

Field Documentation

HarpoAnalyse* HarpoReaderBase::fAnalyse[30]
protectedinherited

Definition at line 87 of file HarpoReaderBase.h.

HarpoDetReader** HarpoReaderBase::fDetReader
protectedinherited

Definition at line 80 of file HarpoReaderBase.h.

HarpoDetSet* HarpoReaderBase::fDetSet
protectedinherited

Definition at line 91 of file HarpoReaderBase.h.

Bool_t HarpoReaderBase::fDone
protectedinherited

Definition at line 75 of file HarpoReaderBase.h.

Bool_t HarpoReaderBase::fError
protectedinherited

Definition at line 76 of file HarpoReaderBase.h.

HarpoEvent* HarpoReaderBase::fEvent
protectedinherited

Definition at line 82 of file HarpoReaderBase.h.

HarpoEventHeader* HarpoReaderBase::fEventHeader
protectedinherited

Definition at line 83 of file HarpoReaderBase.h.

Long_t HarpoReaderBase::fFirstEvent
protectedinherited

Definition at line 73 of file HarpoReaderBase.h.

Long_t HarpoReaderBase::fMaxEvents
protectedinherited

Definition at line 74 of file HarpoReaderBase.h.

Int_t HarpoReaderBase::fNanalyses
protectedinherited

Definition at line 78 of file HarpoReaderBase.h.

Long_t HarpoReaderBase::fNevts
protectedinherited

Definition at line 72 of file HarpoReaderBase.h.

HarpoRunHeader* HarpoReaderBase::fRunHeader
protectedinherited

Definition at line 84 of file HarpoReaderBase.h.

Long_t HarpoReaderBase::fRunNo
protectedinherited

Number of readed events.

Definition at line 71 of file HarpoReaderBase.h.

HarpoReaderBase* HarpoReader::rdr
private

Definition at line 37 of file HarpoReader.h.


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