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... | |
HarpoDccEvent * | GetEvent () |
HarpoDccHeader * | GetDetHeader () |
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 |
HarpoDetHeader * | fRunHeader |
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 |
HarpoDccEvent * | fEvent |
HarpoDccEvent * | fSaveEvent |
Bool_t | isEventSaved |
HarpoDccAnalyse * | fDccAnalyse |
EventHeader_t | lHeader |
UShort_t | lData [EVENT_BUFFER_SIZE] |
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.
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.
|
virtual |
Definition at line 95 of file HarpoDccReader.cxx.
|
private |
Definition at line 188 of file HarpoDccReader.cxx.
|
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.
|
inlineinherited |
Define plane X or Y.
Definition at line 48 of file HarpoDetReader.h.
HarpoDccHeader * HarpoDccReader::GetDetHeader | ( | ) |
|
virtual |
Reimplemented from HarpoDetReader.
Definition at line 194 of file HarpoDccReader.cxx.
|
inline |
Define plane X or Y.
Definition at line 54 of file HarpoDccReader.h.
|
inlineinherited |
|
inlineinherited |
|
inlineinherited |
Definition at line 45 of file HarpoDetReader.h.
|
inlineinherited |
Number of readed events.
Definition at line 52 of file HarpoDetReader.h.
|
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.
|
inline |
|
inline |
EOF reached.
Definition at line 43 of file HarpoDccReader.h.
|
virtual |
Read errors.
Implements HarpoDetReader.
Definition at line 287 of file HarpoDccReader.cxx.
|
virtual |
Implements HarpoDetReader.
Definition at line 264 of file HarpoDccReader.cxx.
|
virtual |
Implements HarpoDetReader.
Definition at line 124 of file HarpoDccReader.cxx.
|
virtual |
Skeeping not "intersting" event.
Reimplemented from HarpoDetReader.
Definition at line 318 of file HarpoDccReader.cxx.
void HarpoDccReader::Save | ( | ) |
void HarpoDccReader::SetAnalyseFunction | ( | HarpoDccAnalyse * | func | ) |
void HarpoDccReader::SetDccFile | ( | TString * | name | ) |
Definition at line 100 of file HarpoDccReader.cxx.
|
inlineinherited |
|
inherited |
|
inline |
Definition at line 53 of file HarpoDccReader.h.
void HarpoDccReader::SetRootFile | ( | TString * | name | ) |
|
inlineinherited |
Find raw event by event number.
Definition at line 44 of file HarpoDetReader.h.
|
virtual |
Read next event from raw file.
Reimplemented from HarpoDetReader.
Definition at line 310 of file HarpoDccReader.cxx.
|
private |
Definition at line 86 of file HarpoDccReader.h.
|
protectedinherited |
Definition at line 58 of file HarpoDetReader.h.
|
private |
Definition at line 66 of file HarpoDccReader.h.
|
private |
Definition at line 67 of file HarpoDccReader.h.
|
private |
Definition at line 82 of file HarpoDccReader.h.
|
private |
Definition at line 72 of file HarpoDccReader.h.
|
protectedinherited |
Definition at line 61 of file HarpoDetReader.h.
|
protectedinherited |
Definition at line 59 of file HarpoDetReader.h.
|
private |
Definition at line 73 of file HarpoDccReader.h.
|
private |
Definition at line 76 of file HarpoDccReader.h.
|
protectedinherited |
Definition at line 79 of file HarpoDetReader.h.
|
private |
Definition at line 77 of file HarpoDccReader.h.
|
private |
Definition at line 65 of file HarpoDccReader.h.
|
protectedinherited |
Definition at line 75 of file HarpoDetReader.h.
|
protectedinherited |
Definition at line 68 of file HarpoDetReader.h.
|
protectedinherited |
Definition at line 57 of file HarpoDetReader.h.
|
private |
Definition at line 83 of file HarpoDccReader.h.
|
protectedinherited |
Definition at line 75 of file HarpoDetReader.h.
|
private |
Definition at line 84 of file HarpoDccReader.h.
|
private |
Definition at line 89 of file HarpoDccReader.h.
|
private |
Definition at line 88 of file HarpoDccReader.h.