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
HarpoFeminosReader Class Reference

A class which read HARPO dcc file from one FEMINOS and creant Dcc Events and Dcc Headers for FEMINOS Events objects. More...

#include <HarpoFeminosReader.h>

Public Member Functions

 HarpoFeminosReader ()
 
 HarpoFeminosReader (HarpoConfig *cfg)
 Constructor called by a standalone application. More...
 
virtual ~HarpoFeminosReader ()
 
void SetAnalyseFunction (HarpoDetAnalyse *func)
 
Bool_t NextEvent ()
 
void SkipEvent ()
 Read next event from raw file. More...
 
void PushBack ()
 Skeeping not "intersting" event. More...
 
HarpoFeminosEventGetEvent ()
 
HarpoFeminosHeaderGetDetHeader ()
 
Bool_t Init ()
 Init method : Open in/out files and check run header signature. More...
 
Bool_t isDone ()
 
Bool_t isError ()
 EOF reached. More...
 
Long_t Loop ()
 Read errors. More...
 
Long_t Loop (Long_t maxevents)
 
Bool_t Find (Long_t eventNo)
 
void SetDetFile (TString *name)
 
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
 
Long_t fNevts
 
HarpoDetHeaderfRunHeader
 
Bool_t isEventSaved
 
ULong_t fTimeStamp
 
ULong_t fPrevTimeStamp
 
TString * fNewFileName
 

Private Member Functions

Bool_t NextSegment ()
 Find raw event by event number */. More...
 
int NextFrame ()
 
int ProcessFrame (void *fr, int fr_sz)
 
void AddPedestals ()
 

Private Attributes

Bool_t fContinuous
 
Bool_t fDone
 
Bool_t fError
 
FILE * fIn
 
HarpoDccMaplMap
 
HarpoFeminosEventfEvent
 
HarpoFeminosEventfSaveEvent
 
HarpoDetAnalysefDccAnalyse
 
EventHeader_t lHeader
 
UShort_t lData [MAX_EVENT_SIZE]
 
ULong_t TotBytes
 
ULong_t TotFrames
 
ULong_t fFrSize
 
ULong_t fSegment
 
HarpoDccDecodedecoder
 

Detailed Description

A class which read HARPO dcc file from one FEMINOS and creant Dcc Events and Dcc Headers for FEMINOS Events objects.

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

Definition at line 30 of file HarpoFeminosReader.h.

Constructor & Destructor Documentation

HarpoFeminosReader::HarpoFeminosReader ( )
HarpoFeminosReader::HarpoFeminosReader ( 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 HarpoFeminosReader.cxx.

HarpoFeminosReader::~HarpoFeminosReader ( )
virtual

Definition at line 85 of file HarpoFeminosReader.cxx.

Member Function Documentation

void HarpoFeminosReader::AddPedestals ( )
private

Definition at line 225 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoFeminosReader::Find ( Long_t  eventNo)

Definition at line 316 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Int_t HarpoDetReader::GetDet ( )
inlineinherited

Define plane X or Y.

Definition at line 48 of file HarpoDetReader.h.

Here is the caller graph for this function:

HarpoFeminosHeader * HarpoFeminosReader::GetDetHeader ( )

Definition at line 237 of file HarpoFeminosReader.cxx.

Here is the caller graph for this function:

HarpoFeminosEvent * HarpoFeminosReader::GetEvent ( )
virtual

Reimplemented from HarpoDetReader.

Definition at line 231 of file HarpoFeminosReader.cxx.

Here is the caller graph for this function:

ULong_t HarpoDetReader::GetPrevTimeStamp ( )
inlineinherited

Definition at line 53 of file HarpoDetReader.h.

Here is the caller graph for this function:

Long_t HarpoDetReader::GetReadEvts ( )
inlineinherited

Definition at line 50 of file HarpoDetReader.h.

Here is the caller graph for this function:

Long_t HarpoDetReader::GetRunNo ( )
inlineinherited

Definition at line 45 of file HarpoDetReader.h.

ULong_t HarpoDetReader::GetTimeStamp ( )
inlineinherited

Number of readed events.

Definition at line 52 of file HarpoDetReader.h.

Here is the caller graph for this function:

Bool_t HarpoFeminosReader::Init ( )
virtual

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

Return : true on success or false on any errors.

Implements HarpoDetReader.

Definition at line 246 of file HarpoFeminosReader.cxx.

Here is the caller graph for this function:

Bool_t HarpoFeminosReader::isDone ( )
inline

Definition at line 53 of file HarpoFeminosReader.h.

Here is the caller graph for this function:

Bool_t HarpoFeminosReader::isError ( )
inline

EOF reached.

Definition at line 54 of file HarpoFeminosReader.h.

Here is the caller graph for this function:

Long_t HarpoFeminosReader::Loop ( )
virtual

Read errors.

Implements HarpoDetReader.

Definition at line 310 of file HarpoFeminosReader.cxx.

Here is the caller graph for this function:

Long_t HarpoFeminosReader::Loop ( Long_t  maxevents)
virtual

Implements HarpoDetReader.

Definition at line 290 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

Bool_t HarpoFeminosReader::NextEvent ( )
virtual

Implements HarpoDetReader.

Definition at line 138 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

int HarpoFeminosReader::NextFrame ( )
private

Definition at line 356 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoFeminosReader::NextSegment ( )
private

Find raw event by event number */.

Definition at line 96 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

int HarpoFeminosReader::ProcessFrame ( void *  fr,
int  fr_sz 
)
private

Definition at line 519 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoFeminosReader::PushBack ( )
virtual

Skeeping not "intersting" event.

Reimplemented from HarpoDetReader.

Definition at line 342 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

void HarpoFeminosReader::SetAnalyseFunction ( HarpoDetAnalyse func)

Definition at line 91 of file HarpoFeminosReader.cxx.

Here is the caller graph for this function:

void HarpoDetReader::SetDet ( Long_t  plane)
inlineinherited

Definition at line 47 of file HarpoDetReader.h.

Here is the caller graph for this function:

void HarpoDetReader::SetDetFile ( TString *  name)
inherited

Definition at line 79 of file HarpoDetReader.cxx.

Here is the caller graph for this function:

void HarpoDetReader::SetRunNo ( Long_t  nRun)
inlineinherited

Find raw event by event number.

Definition at line 44 of file HarpoDetReader.h.

Here is the caller graph for this function:

void HarpoFeminosReader::SkipEvent ( )
virtual

Read next event from raw file.

Reimplemented from HarpoDetReader.

Definition at line 335 of file HarpoFeminosReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

HarpoDccDecode* HarpoFeminosReader::decoder
private

Definition at line 95 of file HarpoFeminosReader.h.

Bool_t HarpoFeminosReader::fContinuous
private

Definition at line 72 of file HarpoFeminosReader.h.

HarpoDetAnalyse* HarpoFeminosReader::fDccAnalyse
private

Definition at line 85 of file HarpoFeminosReader.h.

Long_t HarpoDetReader::fDet
protectedinherited

Definition at line 58 of file HarpoDetReader.h.

Bool_t HarpoFeminosReader::fDone
private

Definition at line 74 of file HarpoFeminosReader.h.

Bool_t HarpoFeminosReader::fError
private

Definition at line 75 of file HarpoFeminosReader.h.

HarpoFeminosEvent* HarpoFeminosReader::fEvent
private

Definition at line 80 of file HarpoFeminosReader.h.

ULong_t HarpoFeminosReader::fFrSize
private

Definition at line 92 of file HarpoFeminosReader.h.

FILE* HarpoFeminosReader::fIn
private

Definition at line 77 of file HarpoFeminosReader.h.

TString* HarpoDetReader::fInFile
protectedinherited

Definition at line 61 of file HarpoDetReader.h.

Long_t HarpoDetReader::fMaxEvents
protectedinherited

Definition at line 59 of file HarpoDetReader.h.

Long_t HarpoDetReader::fNevts
protectedinherited

Definition at line 65 of file HarpoDetReader.h.

TString* HarpoDetReader::fNewFileName
protectedinherited

Definition at line 79 of file HarpoDetReader.h.

ULong_t HarpoDetReader::fPrevTimeStamp
protectedinherited

Definition at line 75 of file HarpoDetReader.h.

HarpoDetHeader* HarpoDetReader::fRunHeader
protectedinherited

Definition at line 68 of file HarpoDetReader.h.

Long_t HarpoDetReader::fRunNo
protectedinherited

Definition at line 57 of file HarpoDetReader.h.

HarpoFeminosEvent* HarpoFeminosReader::fSaveEvent
private

Definition at line 81 of file HarpoFeminosReader.h.

ULong_t HarpoFeminosReader::fSegment
private

Definition at line 93 of file HarpoFeminosReader.h.

ULong_t HarpoDetReader::fTimeStamp
protectedinherited

Definition at line 75 of file HarpoDetReader.h.

Bool_t HarpoDetReader::isEventSaved
protectedinherited

Definition at line 73 of file HarpoDetReader.h.

UShort_t HarpoFeminosReader::lData[MAX_EVENT_SIZE]
private

Definition at line 88 of file HarpoFeminosReader.h.

EventHeader_t HarpoFeminosReader::lHeader
private

Definition at line 87 of file HarpoFeminosReader.h.

HarpoDccMap* HarpoFeminosReader::lMap
private

Definition at line 79 of file HarpoFeminosReader.h.

ULong_t HarpoFeminosReader::TotBytes
private

Definition at line 90 of file HarpoFeminosReader.h.

ULong_t HarpoFeminosReader::TotFrames
private

Definition at line 91 of file HarpoFeminosReader.h.


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