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

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

#include <HarpoDccReader.h>

Public Member Functions

 HarpoDccReader ()
 
 HarpoDccReader (HarpoConfig *cfg)
 Constructor called by a standalone application. More...
 
virtual ~HarpoDccReader ()
 
void SetDccFile (TString *name)
 
void SetRootFile (TString *name)
 
void SetAnalyseFunction (HarpoDccAnalyse *func)
 
Bool_t NextEvent ()
 
void SkipEvent ()
 Read next event from raw file. More...
 
void PushBack ()
 Skeeping not "intersting" event. More...
 
HarpoDccEventGetEvent ()
 
HarpoDccHeaderGetDetHeader ()
 
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)
 
void SetPlane (Long_t plane)
 
Int_t GetPlane ()
 Define plane X or Y. More...
 
void Save ()
 
void SetDetFile (TString *name)
 
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
 
HarpoDetHeaderfRunHeader
 
ULong_t fTimeStamp
 
ULong_t fPrevTimeStamp
 
TString * fNewFileName
 

Private Member Functions

void AddPedestals ()
 

Private Attributes

Long_t fPlane
 
Bool_t fDone
 
Bool_t fError
 
FILE * fIn
 
Long_t fNevts
 
TFile * fNewFile
 
Long_t fNewNb
 
HarpoDccEventfEvent
 
HarpoDccEventfSaveEvent
 
Bool_t isEventSaved
 
HarpoDccAnalysefDccAnalyse
 
EventHeader_t lHeader
 
UShort_t lData [EVENT_BUFFER_SIZE]
 

Detailed Description

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

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

Definition at line 21 of file HarpoDccReader.h.

Constructor & Destructor Documentation

HarpoDccReader::HarpoDccReader ( )
HarpoDccReader::HarpoDccReader ( 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 66 of file HarpoDccReader.cxx.

Here is the call graph for this function:

HarpoDccReader::~HarpoDccReader ( )
virtual

Definition at line 95 of file HarpoDccReader.cxx.

Member Function Documentation

void HarpoDccReader::AddPedestals ( )
private

Definition at line 188 of file HarpoDccReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoDetReader::Find ( Long_t  eventNo)
inherited

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 ( )
inlineinherited

Define plane X or Y.

Definition at line 48 of file HarpoDetReader.h.

Here is the caller graph for this function:

HarpoDccHeader * HarpoDccReader::GetDetHeader ( )

Definition at line 202 of file HarpoDccReader.cxx.

Here is the caller graph for this function:

HarpoDccEvent * HarpoDccReader::GetEvent ( )
virtual

Reimplemented from HarpoDetReader.

Definition at line 194 of file HarpoDccReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Int_t HarpoDccReader::GetPlane ( )
inline

Define plane X or Y.

Definition at line 54 of file HarpoDccReader.h.

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 HarpoDccReader::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 211 of file HarpoDccReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoDccReader::isDone ( )
inline

Definition at line 42 of file HarpoDccReader.h.

Here is the caller graph for this function:

Bool_t HarpoDccReader::isError ( )
inline

EOF reached.

Definition at line 43 of file HarpoDccReader.h.

Here is the caller graph for this function:

Long_t HarpoDccReader::Loop ( )
virtual

Read errors.

Implements HarpoDetReader.

Definition at line 287 of file HarpoDccReader.cxx.

Here is the caller graph for this function:

Long_t HarpoDccReader::Loop ( Long_t  maxevents)
virtual

Implements HarpoDetReader.

Definition at line 264 of file HarpoDccReader.cxx.

Here is the call graph for this function:

Bool_t HarpoDccReader::NextEvent ( )
virtual

Implements HarpoDetReader.

Definition at line 124 of file HarpoDccReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoDccReader::PushBack ( )
virtual

Skeeping not "intersting" event.

Reimplemented from HarpoDetReader.

Definition at line 318 of file HarpoDccReader.cxx.

Here is the call graph for this function:

void HarpoDccReader::Save ( )

Definition at line 112 of file HarpoDccReader.cxx.

Here is the caller graph for this function:

void HarpoDccReader::SetAnalyseFunction ( HarpoDccAnalyse func)

Definition at line 119 of file HarpoDccReader.cxx.

Here is the caller graph for this function:

void HarpoDccReader::SetDccFile ( TString *  name)

Definition at line 100 of file HarpoDccReader.cxx.

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 HarpoDccReader::SetPlane ( Long_t  plane)
inline

Definition at line 53 of file HarpoDccReader.h.

void HarpoDccReader::SetRootFile ( TString *  name)

Definition at line 105 of file HarpoDccReader.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 HarpoDccReader::SkipEvent ( )
virtual

Read next event from raw file.

Reimplemented from HarpoDetReader.

Definition at line 310 of file HarpoDccReader.cxx.

Here is the call graph for this function:

Field Documentation

HarpoDccAnalyse* HarpoDccReader::fDccAnalyse
private

Definition at line 86 of file HarpoDccReader.h.

Long_t HarpoDetReader::fDet
protectedinherited

Definition at line 58 of file HarpoDetReader.h.

Bool_t HarpoDccReader::fDone
private

Definition at line 66 of file HarpoDccReader.h.

Bool_t HarpoDccReader::fError
private

Definition at line 67 of file HarpoDccReader.h.

HarpoDccEvent* HarpoDccReader::fEvent
private

Definition at line 82 of file HarpoDccReader.h.

FILE* HarpoDccReader::fIn
private

Definition at line 72 of file HarpoDccReader.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 HarpoDccReader::fNevts
private

Definition at line 73 of file HarpoDccReader.h.

TFile* HarpoDccReader::fNewFile
private

Definition at line 76 of file HarpoDccReader.h.

TString* HarpoDetReader::fNewFileName
protectedinherited

Definition at line 79 of file HarpoDetReader.h.

Long_t HarpoDccReader::fNewNb
private

Definition at line 77 of file HarpoDccReader.h.

Long_t HarpoDccReader::fPlane
private

Definition at line 65 of file HarpoDccReader.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.

HarpoDccEvent* HarpoDccReader::fSaveEvent
private

Definition at line 83 of file HarpoDccReader.h.

ULong_t HarpoDetReader::fTimeStamp
protectedinherited

Definition at line 75 of file HarpoDetReader.h.

Bool_t HarpoDccReader::isEventSaved
private

Definition at line 84 of file HarpoDccReader.h.

UShort_t HarpoDccReader::lData[EVENT_BUFFER_SIZE]
private

Definition at line 89 of file HarpoDccReader.h.

EventHeader_t HarpoDccReader::lHeader
private

Definition at line 88 of file HarpoDccReader.h.


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