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

A virtual base class for all HARPO detectors readers. More...

#include <HarpoDetReader.h>

Public Member Functions

 HarpoDetReader ()
 
 HarpoDetReader (HarpoConfig *cfg)
 Constructor called by a standalone application. More...
 
virtual ~HarpoDetReader ()
 
void SetDetFile (TString *name)
 
virtual Bool_t NextEvent ()=0
 
virtual void SkipEvent ()
 Read next event from raw file. More...
 
virtual void PushBack ()
 Skeeping not "intersting" event. More...
 
virtual HarpoDetEventGetEvent ()
 
HarpoDetHeaderGetDetHeader ()
 
virtual Bool_t Init ()=0
 
virtual Long_t Loop ()=0
 
virtual Long_t Loop (Long_t maxevents)=0
 
Bool_t Find (Long_t eventNo)
 Init method : Open in/out files and check run header signature. More...
 
void SetRunNo (Long_t nRun)
 Find raw event by event number. More...
 
Long_t GetRunNo ()
 
void SetDet (Long_t plane)
 
Int_t GetDet ()
 Define plane X or Y. More...
 
Long_t GetReadEvts ()
 
ULong_t GetTimeStamp ()
 Number of readed events. More...
 
ULong_t GetPrevTimeStamp ()
 

Protected Attributes

Long_t fRunNo
 
Long_t fDet
 
Long_t fMaxEvents
 
TString * fInFile
 
Bool_t fDone
 
Bool_t fError
 
Long_t fNevts
 
HarpoDetHeaderfRunHeader
 
HarpoDetEventfEvent
 
HarpoDetEventfSaveEvent
 
Bool_t isEventSaved
 
ULong_t fTimeStamp
 
ULong_t fPrevTimeStamp
 
TString * fNewFileName
 

Detailed Description

A virtual base class for all HARPO detectors readers.

Definition at line 18 of file HarpoDetReader.h.

Constructor & Destructor Documentation

HarpoDetReader::HarpoDetReader ( )
HarpoDetReader::HarpoDetReader ( 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 56 of file HarpoDetReader.cxx.

Here is the call graph for this function:

HarpoDetReader::~HarpoDetReader ( )
virtual

Definition at line 73 of file HarpoDetReader.cxx.

Member Function Documentation

Bool_t HarpoDetReader::Find ( Long_t  eventNo)

Init method : Open in/out files and check run header signature.

Return : true on success or false on any errors.

Definition at line 147 of file HarpoDetReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Int_t HarpoDetReader::GetDet ( )
inline

Define plane X or Y.

Definition at line 48 of file HarpoDetReader.h.

Here is the caller graph for this function:

HarpoDetHeader * HarpoDetReader::GetDetHeader ( )

Definition at line 96 of file HarpoDetReader.cxx.

Here is the caller graph for this function:

HarpoDetEvent * HarpoDetReader::GetEvent ( )
virtual

Reimplemented in HarpoFeminosReader, HarpoSimReader, Pmm2Reader, and HarpoDccReader.

Definition at line 90 of file HarpoDetReader.cxx.

Here is the caller graph for this function:

ULong_t HarpoDetReader::GetPrevTimeStamp ( )
inline

Definition at line 53 of file HarpoDetReader.h.

Here is the caller graph for this function:

Long_t HarpoDetReader::GetReadEvts ( )
inline

Definition at line 50 of file HarpoDetReader.h.

Here is the caller graph for this function:

Long_t HarpoDetReader::GetRunNo ( )
inline

Definition at line 45 of file HarpoDetReader.h.

ULong_t HarpoDetReader::GetTimeStamp ( )
inline

Number of readed events.

Definition at line 52 of file HarpoDetReader.h.

Here is the caller graph for this function:

virtual Bool_t HarpoDetReader::Init ( )
pure virtual

Implemented in HarpoSimReader, HarpoFeminosReader, Pmm2Reader, and HarpoDccReader.

Here is the caller graph for this function:

virtual Long_t HarpoDetReader::Loop ( )
pure virtual
virtual Long_t HarpoDetReader::Loop ( Long_t  maxevents)
pure virtual
virtual Bool_t HarpoDetReader::NextEvent ( )
pure virtual

Implemented in Pmm2Reader, HarpoFeminosReader, HarpoSimReader, and HarpoDccReader.

Here is the caller graph for this function:

void HarpoDetReader::PushBack ( )
virtual

Skeeping not "intersting" event.

Reimplemented in HarpoFeminosReader, and HarpoDccReader.

Definition at line 181 of file HarpoDetReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoDetReader::SetDet ( Long_t  plane)
inline

Definition at line 47 of file HarpoDetReader.h.

Here is the caller graph for this function:

void HarpoDetReader::SetDetFile ( TString *  name)

Definition at line 79 of file HarpoDetReader.cxx.

Here is the caller graph for this function:

void HarpoDetReader::SetRunNo ( Long_t  nRun)
inline

Find raw event by event number.

Definition at line 44 of file HarpoDetReader.h.

Here is the caller graph for this function:

void HarpoDetReader::SkipEvent ( )
virtual

Read next event from raw file.

Reimplemented in HarpoSimReader, HarpoFeminosReader, and HarpoDccReader.

Definition at line 169 of file HarpoDetReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

Long_t HarpoDetReader::fDet
protected

Definition at line 58 of file HarpoDetReader.h.

Bool_t HarpoDetReader::fDone
protected

Definition at line 62 of file HarpoDetReader.h.

Bool_t HarpoDetReader::fError
protected

Definition at line 63 of file HarpoDetReader.h.

HarpoDetEvent* HarpoDetReader::fEvent
protected

Definition at line 70 of file HarpoDetReader.h.

TString* HarpoDetReader::fInFile
protected

Definition at line 61 of file HarpoDetReader.h.

Long_t HarpoDetReader::fMaxEvents
protected

Definition at line 59 of file HarpoDetReader.h.

Long_t HarpoDetReader::fNevts
protected

Definition at line 65 of file HarpoDetReader.h.

TString* HarpoDetReader::fNewFileName
protected

Definition at line 79 of file HarpoDetReader.h.

ULong_t HarpoDetReader::fPrevTimeStamp
protected

Definition at line 75 of file HarpoDetReader.h.

HarpoDetHeader* HarpoDetReader::fRunHeader
protected

Definition at line 68 of file HarpoDetReader.h.

Long_t HarpoDetReader::fRunNo
protected

Definition at line 57 of file HarpoDetReader.h.

HarpoDetEvent* HarpoDetReader::fSaveEvent
protected

Definition at line 72 of file HarpoDetReader.h.

ULong_t HarpoDetReader::fTimeStamp
protected

Definition at line 75 of file HarpoDetReader.h.

Bool_t HarpoDetReader::isEventSaved
protected

Definition at line 73 of file HarpoDetReader.h.


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