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

A class which read HARPO sim file from one SIM and creant Sim Events and Sim Headers for SIM Events objects. More...

#include <HarpoSimReader.h>

Public Member Functions

 HarpoSimReader ()
 
 HarpoSimReader (HarpoConfig *cfg)
 Constructor called by a standalone application. More...
 
virtual ~HarpoSimReader ()
 
void SetSimFile (TString *name)
 
void SetRootFile (TString *name)
 
void SetAnalyseFunction (HarpoSimAnalyse *func)
 
Bool_t NextEvent ()
 
Bool_t GenerateEvent (HarpoSimEvent *simEvent)
 
Bool_t GenerateEventBasic (HarpoSimEvent *simEvent)
 
Bool_t GenerateEventFromText (HarpoSimEvent *simEvent, std::ifstream *str)
 
HarpoSimEventGetEvent ()
 
HarpoDetEventGetEvent (ULong_t ndet)
 
HarpoDetHeaderGetDetHeader (UInt_t ndet)
 
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 SkipEvent ()
 Read next event from raw file. More...
 
void DeleteEvent ()
 
void SetDetFile (TString *name)
 
virtual void PushBack ()
 Skeeping not "intersting" event. More...
 
HarpoDetHeaderGetDetHeader ()
 
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
 
HarpoDetEventfEvent
 
HarpoDetEventfSaveEvent
 
ULong_t fTimeStamp
 
ULong_t fPrevTimeStamp
 
TString * fNewFileName
 

Private Attributes

HarpoConfigfCfg
 
Bool_t fDone
 
Bool_t fError
 
FILE * fIn
 
Long_t fNevts
 
TFile * fNewFile
 
Long_t fNewNb
 
Int_t fIonType
 
HarpoDetEvent ** fEvents
 
Bool_t isEventSaved
 
HarpoDetHeaderfRunHeader [gkNDetectors]
 
HarpoSimAnalysefSimAnalyse
 
TpcSimEventGeneratorfEventGenerator
 
TpcSimIonisationChamberfIonisationChamber
 
TpcSimDriftChamberfDriftChamber
 
HarpoSimElectronicsfDigi
 
HarpoSimChamberfHarpoChamber
 
HarpoSimReadoutfHarpoReadout
 
UShort_t lData [EVENT_BUFFER_SIZE]
 
Int_t fSave
 
std::ifstream fStr
 

Detailed Description

A class which read HARPO sim file from one SIM and creant Sim Events and Sim Headers for SIM Events objects.

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

Definition at line 29 of file HarpoSimReader.h.

Constructor & Destructor Documentation

HarpoSimReader::HarpoSimReader ( )
HarpoSimReader::HarpoSimReader ( 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 101 of file HarpoSimReader.cxx.

Here is the call graph for this function:

HarpoSimReader::~HarpoSimReader ( )
virtual

Definition at line 151 of file HarpoSimReader.cxx.

Member Function Documentation

void HarpoSimReader::DeleteEvent ( )

Definition at line 549 of file HarpoSimReader.cxx.

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:

Bool_t HarpoSimReader::GenerateEvent ( HarpoSimEvent simEvent)

Definition at line 340 of file HarpoSimReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoSimReader::GenerateEventBasic ( HarpoSimEvent simEvent)

Definition at line 356 of file HarpoSimReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoSimReader::GenerateEventFromText ( HarpoSimEvent simEvent,
std::ifstream *  str 
)

Definition at line 376 of file HarpoSimReader.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:

HarpoDetHeader * HarpoDetReader::GetDetHeader ( )
inherited

Definition at line 96 of file HarpoDetReader.cxx.

Here is the caller graph for this function:

HarpoDetHeader * HarpoSimReader::GetDetHeader ( UInt_t  ndet)

Definition at line 434 of file HarpoSimReader.cxx.

HarpoSimEvent * HarpoSimReader::GetEvent ( )
virtual

Reimplemented from HarpoDetReader.

Definition at line 423 of file HarpoSimReader.cxx.

HarpoDetEvent * HarpoSimReader::GetEvent ( ULong_t  ndet)

Definition at line 429 of file HarpoSimReader.cxx.

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 HarpoSimReader::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 443 of file HarpoSimReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t HarpoSimReader::isDone ( )
inline

Definition at line 54 of file HarpoSimReader.h.

Here is the caller graph for this function:

Bool_t HarpoSimReader::isError ( )
inline

EOF reached.

Definition at line 55 of file HarpoSimReader.h.

Long_t HarpoSimReader::Loop ( )
virtual

Read errors.

Implements HarpoDetReader.

Definition at line 542 of file HarpoSimReader.cxx.

Here is the caller graph for this function:

Long_t HarpoSimReader::Loop ( Long_t  maxevents)
virtual

Implements HarpoDetReader.

Definition at line 505 of file HarpoSimReader.cxx.

Here is the call graph for this function:

Bool_t HarpoSimReader::NextEvent ( )
virtual

Implements HarpoDetReader.

Definition at line 184 of file HarpoSimReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void HarpoDetReader::PushBack ( )
virtualinherited

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 HarpoSimReader::SetAnalyseFunction ( HarpoSimAnalyse func)

Definition at line 179 of file HarpoSimReader.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 HarpoSimReader::SetRootFile ( TString *  name)

Definition at line 170 of file HarpoSimReader.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 HarpoSimReader::SetSimFile ( TString *  name)

Definition at line 165 of file HarpoSimReader.cxx.

void HarpoSimReader::SkipEvent ( )
inlinevirtual

Read next event from raw file.

Reimplemented from HarpoDetReader.

Definition at line 60 of file HarpoSimReader.h.

Field Documentation

HarpoConfig* HarpoSimReader::fCfg
private

Definition at line 65 of file HarpoSimReader.h.

Long_t HarpoDetReader::fDet
protectedinherited

Definition at line 58 of file HarpoDetReader.h.

HarpoSimElectronics* HarpoSimReader::fDigi
private

Definition at line 97 of file HarpoSimReader.h.

Bool_t HarpoSimReader::fDone
private

Definition at line 67 of file HarpoSimReader.h.

TpcSimDriftChamber* HarpoSimReader::fDriftChamber
private

Definition at line 96 of file HarpoSimReader.h.

Bool_t HarpoSimReader::fError
private

Definition at line 68 of file HarpoSimReader.h.

HarpoDetEvent* HarpoDetReader::fEvent
protectedinherited

Definition at line 70 of file HarpoDetReader.h.

TpcSimEventGenerator* HarpoSimReader::fEventGenerator
private

Definition at line 94 of file HarpoSimReader.h.

HarpoDetEvent** HarpoSimReader::fEvents
private

Definition at line 85 of file HarpoSimReader.h.

HarpoSimChamber* HarpoSimReader::fHarpoChamber
private

Definition at line 98 of file HarpoSimReader.h.

HarpoSimReadout* HarpoSimReader::fHarpoReadout
private

Definition at line 99 of file HarpoSimReader.h.

FILE* HarpoSimReader::fIn
private

Definition at line 70 of file HarpoSimReader.h.

TString* HarpoDetReader::fInFile
protectedinherited

Definition at line 61 of file HarpoDetReader.h.

TpcSimIonisationChamber* HarpoSimReader::fIonisationChamber
private

Definition at line 95 of file HarpoSimReader.h.

Int_t HarpoSimReader::fIonType
private

Definition at line 79 of file HarpoSimReader.h.

Long_t HarpoDetReader::fMaxEvents
protectedinherited

Definition at line 59 of file HarpoDetReader.h.

Long_t HarpoSimReader::fNevts
private

Definition at line 71 of file HarpoSimReader.h.

TFile* HarpoSimReader::fNewFile
private

Definition at line 74 of file HarpoSimReader.h.

TString* HarpoDetReader::fNewFileName
protectedinherited

Definition at line 79 of file HarpoDetReader.h.

Long_t HarpoSimReader::fNewNb
private

Definition at line 75 of file HarpoSimReader.h.

ULong_t HarpoDetReader::fPrevTimeStamp
protectedinherited

Definition at line 75 of file HarpoDetReader.h.

HarpoDetHeader* HarpoSimReader::fRunHeader[gkNDetectors]
private

Definition at line 88 of file HarpoSimReader.h.

Long_t HarpoDetReader::fRunNo
protectedinherited

Definition at line 57 of file HarpoDetReader.h.

Int_t HarpoSimReader::fSave
private

Definition at line 106 of file HarpoSimReader.h.

HarpoDetEvent* HarpoDetReader::fSaveEvent
protectedinherited

Definition at line 72 of file HarpoDetReader.h.

HarpoSimAnalyse* HarpoSimReader::fSimAnalyse
private

Definition at line 91 of file HarpoSimReader.h.

std::ifstream HarpoSimReader::fStr
private

Definition at line 108 of file HarpoSimReader.h.

ULong_t HarpoDetReader::fTimeStamp
protectedinherited

Definition at line 75 of file HarpoDetReader.h.

Bool_t HarpoSimReader::isEventSaved
private

Definition at line 87 of file HarpoSimReader.h.

UShort_t HarpoSimReader::lData[EVENT_BUFFER_SIZE]
private

Definition at line 102 of file HarpoSimReader.h.


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