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

A class which read HARPO data from raw files. More...

#include <HarpoReaderRaw.h>

Public Member Functions

 HarpoReaderRaw ()
 
 HarpoReaderRaw (HarpoConfig *cfg)
 Constructor called by a standalone application. More...
 
virtual ~HarpoReaderRaw ()
 
void SetDetFile (TString *name, Int_t plane)
 
void SetRootFile (TString *name)
 
Bool_t NextEvent ()
 TODO add synchro fro PMM2 (att PMM2 1lsb=100ns, DCC 1lsb=10ns) More...
 
Bool_t isTimeSynchro ()
 
void SkipEvent ()
 
HarpoEventFillEvent ()
 
HarpoEventGetEvent ()
 
HarpoRunHeaderGetRunHeader ()
 Create RunHeader with links to all raw headers. More...
 
Bool_t Init (hReadMode mode=hSyncTime)
 Init method : Open in/out files and check run header signature. More...
 
Long_t Loop (Long_t maxevents)
 
Long_t Find (Long_t eventNo)
 
virtual void SetAnalyseFunction (HarpoAnalyse *func, Int_t i=0)
 
virtual void AddAnalyseFunction (HarpoAnalyse *func)
 
virtual Bool_t isDone ()
 
virtual Bool_t isError ()
 EOF reached. More...
 
virtual Long_t LoopAll ()
 Read errors. More...
 
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
 

Private Member Functions

void FillRunConfigInfo ()
 Find raw event by event number. More...
 

Private Attributes

Bool_t fSync
 
Bool_t fPmm2Empty
 
Bool_t fSkipPmm2
 
Int_t fPmm2Sync
 
Int_t fLatency
 
Int_t fSkipEvents
 
hReadMode fMode
 

Detailed Description

A class which read HARPO data from raw files.

Definition at line 23 of file HarpoReaderRaw.h.

Constructor & Destructor Documentation

HarpoReaderRaw::HarpoReaderRaw ( )
HarpoReaderRaw::HarpoReaderRaw ( 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 62 of file HarpoReaderRaw.cxx.

Here is the call graph for this function:

HarpoReaderRaw::~HarpoReaderRaw ( )
virtual

Definition at line 82 of file HarpoReaderRaw.cxx.

Member Function Documentation

void HarpoReaderBase::AddAnalyseFunction ( HarpoAnalyse func)
virtualinherited

Reimplemented in HarpoReader.

Definition at line 122 of file HarpoReaderBase.cxx.

Here is the caller graph for this function:

HarpoEvent * HarpoReaderRaw::FillEvent ( )

Definition at line 264 of file HarpoReaderRaw.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoReaderRaw::FillRunConfigInfo ( )
private

Find raw event by event number.

! Full Run header fields with informaation from DB

Definition at line 523 of file HarpoReaderRaw.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Long_t HarpoReaderRaw::Find ( Long_t  eventNo)
virtual

Implements HarpoReaderBase.

Definition at line 489 of file HarpoReaderRaw.cxx.

Here is the call graph for this function:

HarpoEvent* HarpoReaderRaw::GetEvent ( )
inlinevirtual

Implements HarpoReaderBase.

Definition at line 42 of file HarpoReaderRaw.h.

Here is the caller graph for this function:

virtual Long_t HarpoReaderBase::GetReadEvts ( )
inlinevirtualinherited

Reimplemented in HarpoReader.

Definition at line 66 of file HarpoReaderBase.h.

Here is the caller graph for this function:

HarpoRunHeader * HarpoReaderRaw::GetRunHeader ( )
virtual

Create RunHeader with links to all raw headers.

Implements HarpoReaderBase.

Definition at line 293 of file HarpoReaderRaw.cxx.

Here is the caller graph for this function:

virtual Long_t HarpoReaderBase::GetRunNo ( )
inlinevirtualinherited

Reimplemented in HarpoReader.

Definition at line 65 of file HarpoReaderBase.h.

Here is the caller graph for this function:

Bool_t HarpoReaderRaw::Init ( hReadMode  mode = hSyncTime)
virtual

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

Return : true on success or false on any errors.TODO move all readers init code to HarpoReadersCreator Class

Implements HarpoReaderBase.

Definition at line 306 of file HarpoReaderRaw.cxx.

Here is the call graph for this function:

virtual Bool_t HarpoReaderBase::isDone ( )
inlinevirtualinherited

Reimplemented in HarpoReader.

Definition at line 56 of file HarpoReaderBase.h.

Here is the caller graph for this function:

virtual Bool_t HarpoReaderBase::isError ( )
inlinevirtualinherited

EOF reached.

Reimplemented in HarpoReader.

Definition at line 57 of file HarpoReaderBase.h.

Here is the caller graph for this function:

Bool_t HarpoReaderRaw::isTimeSynchro ( )
inlinevirtual

Implements HarpoReaderBase.

Definition at line 36 of file HarpoReaderRaw.h.

Long_t HarpoReaderRaw::Loop ( Long_t  maxevents)
virtual

Implements HarpoReaderBase.

Definition at line 441 of file HarpoReaderRaw.cxx.

Here is the call graph for this function:

Long_t HarpoReaderBase::LoopAll ( )
virtualinherited

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:

Bool_t HarpoReaderRaw::NextEvent ( )
virtual

TODO add synchro fro PMM2 (att PMM2 1lsb=100ns, DCC 1lsb=10ns)

Implements HarpoReaderBase.

Definition at line 106 of file HarpoReaderRaw.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

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

Reimplemented in HarpoReader.

Definition at line 98 of file HarpoReaderBase.cxx.

Here is the caller graph for this function:

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

Implements HarpoReaderBase.

Definition at line 92 of file HarpoReaderRaw.cxx.

void HarpoReaderRaw::SetRootFile ( TString *  name)
virtual

Implements HarpoReaderBase.

Definition at line 98 of file HarpoReaderRaw.cxx.

virtual void HarpoReaderBase::SetRunNo ( Long_t  nRun)
inlinevirtualinherited

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:

void HarpoReaderRaw::SkipEvent ( )
virtual

Implements HarpoReaderBase.

Definition at line 512 of file HarpoReaderRaw.cxx.

Here is the call graph for this function:

Here is the caller 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.

Int_t HarpoReaderRaw::fLatency
private

Definition at line 71 of file HarpoReaderRaw.h.

Long_t HarpoReaderBase::fMaxEvents
protectedinherited

Definition at line 74 of file HarpoReaderBase.h.

hReadMode HarpoReaderRaw::fMode
private

Definition at line 74 of file HarpoReaderRaw.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.

Bool_t HarpoReaderRaw::fPmm2Empty
private

Definition at line 67 of file HarpoReaderRaw.h.

Int_t HarpoReaderRaw::fPmm2Sync
private

Definition at line 70 of file HarpoReaderRaw.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.

Int_t HarpoReaderRaw::fSkipEvents
private

Definition at line 72 of file HarpoReaderRaw.h.

Bool_t HarpoReaderRaw::fSkipPmm2
private

Definition at line 68 of file HarpoReaderRaw.h.

Bool_t HarpoReaderRaw::fSync
private

Definition at line 66 of file HarpoReaderRaw.h.


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