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

A base class for all top level HARPO readers. More...

#include <HarpoReaderBase.h>

Public Member Functions

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

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
 

Detailed Description

A base class for all top level HARPO readers.

Definition at line 31 of file HarpoReaderBase.h.

Constructor & Destructor Documentation

HarpoReaderBase::HarpoReaderBase ( )
HarpoReaderBase::HarpoReaderBase ( HarpoConfig cfg)

Constructor called by a standalone application.

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

Definition at line 64 of file HarpoReaderBase.cxx.

Here is the call graph for this function:

HarpoReaderBase::~HarpoReaderBase ( )
virtual

Definition at line 92 of file HarpoReaderBase.cxx.

Member Function Documentation

void HarpoReaderBase::AddAnalyseFunction ( HarpoAnalyse func)
virtual

Reimplemented in HarpoReader.

Definition at line 122 of file HarpoReaderBase.cxx.

Here is the caller graph for this function:

virtual Long_t HarpoReaderBase::Find ( Long_t  eventNo)
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

virtual HarpoEvent* HarpoReaderBase::GetEvent ( )
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

virtual Long_t HarpoReaderBase::GetReadEvts ( )
inlinevirtual

Reimplemented in HarpoReader.

Definition at line 66 of file HarpoReaderBase.h.

Here is the caller graph for this function:

virtual HarpoRunHeader* HarpoReaderBase::GetRunHeader ( )
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

virtual Long_t HarpoReaderBase::GetRunNo ( )
inlinevirtual

Reimplemented in HarpoReader.

Definition at line 65 of file HarpoReaderBase.h.

Here is the caller graph for this function:

virtual Bool_t HarpoReaderBase::Init ( hReadMode  mode = hSyncTime)
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

virtual Bool_t HarpoReaderBase::isDone ( )
inlinevirtual

Reimplemented in HarpoReader.

Definition at line 56 of file HarpoReaderBase.h.

Here is the caller graph for this function:

virtual Bool_t HarpoReaderBase::isError ( )
inlinevirtual

EOF reached.

Reimplemented in HarpoReader.

Definition at line 57 of file HarpoReaderBase.h.

Here is the caller graph for this function:

virtual Bool_t HarpoReaderBase::isTimeSynchro ( )
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

virtual Long_t HarpoReaderBase::Loop ( Long_t  maxevents)
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

Long_t HarpoReaderBase::LoopAll ( )
virtual

Read errors.

Reimplemented in HarpoReader.

Definition at line 141 of file HarpoReaderBase.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

virtual Bool_t HarpoReaderBase::NextEvent ( )
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

void HarpoReaderBase::SetAnalyseFunction ( HarpoAnalyse func,
Int_t  i = 0 
)
virtual

Reimplemented in HarpoReader.

Definition at line 98 of file HarpoReaderBase.cxx.

Here is the caller graph for this function:

virtual void HarpoReaderBase::SetDetFile ( TString *  name,
Int_t  plane 
)
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

virtual void HarpoReaderBase::SetRootFile ( TString *  name)
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

virtual void HarpoReaderBase::SetRunNo ( Long_t  nRun)
inlinevirtual

Find raw event by event number.

Reimplemented in HarpoReader.

Definition at line 64 of file HarpoReaderBase.h.

Here is the caller graph for this function:

virtual void HarpoReaderBase::SkipEvent ( )
pure virtual

Implemented in HarpoReader, HarpoReaderRoot, HarpoReaderRaw, and HarpoReaderSim.

Here is the caller graph for this function:

Field Documentation

HarpoAnalyse* HarpoReaderBase::fAnalyse[30]
protected

Definition at line 87 of file HarpoReaderBase.h.

HarpoDetReader** HarpoReaderBase::fDetReader
protected

Definition at line 80 of file HarpoReaderBase.h.

HarpoDetSet* HarpoReaderBase::fDetSet
protected

Definition at line 91 of file HarpoReaderBase.h.

Bool_t HarpoReaderBase::fDone
protected

Definition at line 75 of file HarpoReaderBase.h.

Bool_t HarpoReaderBase::fError
protected

Definition at line 76 of file HarpoReaderBase.h.

HarpoEvent* HarpoReaderBase::fEvent
protected

Definition at line 82 of file HarpoReaderBase.h.

HarpoEventHeader* HarpoReaderBase::fEventHeader
protected

Definition at line 83 of file HarpoReaderBase.h.

Long_t HarpoReaderBase::fFirstEvent
protected

Definition at line 73 of file HarpoReaderBase.h.

Long_t HarpoReaderBase::fMaxEvents
protected

Definition at line 74 of file HarpoReaderBase.h.

Int_t HarpoReaderBase::fNanalyses
protected

Definition at line 78 of file HarpoReaderBase.h.

Long_t HarpoReaderBase::fNevts
protected

Definition at line 72 of file HarpoReaderBase.h.

HarpoRunHeader* HarpoReaderBase::fRunHeader
protected

Definition at line 84 of file HarpoReaderBase.h.

Long_t HarpoReaderBase::fRunNo
protected

Number of readed events.

Definition at line 71 of file HarpoReaderBase.h.


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