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

A class which read HARPO raw file from PMM2 and create Raw Events objects. More...

#include <Pmm2Reader.h>

Public Member Functions

 Pmm2Reader ()
 
 Pmm2Reader (HarpoConfig *cfg)
 Constructor called by a standalone application. More...
 
virtual ~Pmm2Reader ()
 
void SetAnalyseFunction (HarpoDetAnalyse *func)
 
Bool_t NextEvent ()
 
Pmm2EventGetEvent ()
 Can Read next event from raw file. More...
 
Pmm2HeaderGetDetHeader ()
 
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 SetReadOutMode (Long_t version)
 
Int_t GetReadOutMode ()
 ReadOut Mode. More...
 
void SetDetFile (TString *name)
 
virtual void SkipEvent ()
 Read next event from raw file. More...
 
virtual void PushBack ()
 Skeeping not "intersting" event. More...
 
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
 
Bool_t fDone
 
Bool_t fError
 
Long_t fNevts
 
HarpoDetHeaderfRunHeader
 
Bool_t isEventSaved
 
ULong_t fTimeStamp
 
ULong_t fPrevTimeStamp
 
TString * fNewFileName
 

Private Member Functions

void unPackRawDigi ()
 Unpack Raw Buffer and create Digi List. More...
 
Bool_t NextDigi ()
 
Bool_t NextBuffer ()
 Have we more Digi to Process. More...
 
void ReadBuffer ()
 Can Read next Buffer from raw file. More...
 

Private Attributes

Long_t fRVer
 Read buffer from file. More...
 
FILE * fIn
 
Long_t fNbufs
 
Long_t fNdigs
 
Long_t fNstats
 
Pmm2EventfEvent
 
Pmm2EventfSaveEvent
 
HarpoDetAnalysefRawAnalyse
 
EventHeader_t lHeader
 
UInt_t lData [N_WORD_IN_BLOCK]
 
UInt_t BuffType
 
Int_t fNreset
 
Int_t verbose
 
ULong_t fPrevTimeStamp2
 
Pmm2MesList fRawDigi
 

Detailed Description

A class which read HARPO raw file from PMM2 and create Raw Events objects.

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

Definition at line 31 of file Pmm2Reader.h.

Constructor & Destructor Documentation

Pmm2Reader::Pmm2Reader ( )
Pmm2Reader::Pmm2Reader ( 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 70 of file Pmm2Reader.cxx.

Here is the call graph for this function:

Pmm2Reader::~Pmm2Reader ( )
virtual

Definition at line 107 of file Pmm2Reader.cxx.

Member Function Documentation

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:

Pmm2Header * Pmm2Reader::GetDetHeader ( )

Definition at line 392 of file Pmm2Reader.cxx.

Here is the caller graph for this function:

Pmm2Event * Pmm2Reader::GetEvent ( )
virtual

Can Read next event from raw file.

Reimplemented from HarpoDetReader.

Definition at line 387 of file Pmm2Reader.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:

Int_t Pmm2Reader::GetReadOutMode ( )
inline

ReadOut Mode.

Definition at line 56 of file Pmm2Reader.h.

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 Pmm2Reader::Init ( )
virtual

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

Return : true on success or false on any errors.

Filig with reader verion for Pmm2

Implements HarpoDetReader.

Definition at line 401 of file Pmm2Reader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t Pmm2Reader::isDone ( )
inline

Definition at line 49 of file Pmm2Reader.h.

Here is the caller graph for this function:

Bool_t Pmm2Reader::isError ( )
inline

EOF reached.

Definition at line 50 of file Pmm2Reader.h.

Here is the caller graph for this function:

Long_t Pmm2Reader::Loop ( )
virtual

Read errors.

Implements HarpoDetReader.

Definition at line 478 of file Pmm2Reader.cxx.

Here is the caller graph for this function:

Long_t Pmm2Reader::Loop ( Long_t  maxevents)
virtual

Implements HarpoDetReader.

Definition at line 459 of file Pmm2Reader.cxx.

Here is the call graph for this function:

Bool_t Pmm2Reader::NextBuffer ( )
private

Have we more Digi to Process.

Can Read next Buffer from raw file.

Unpack Raw Buffer and create Digi List

Unpack Raw Buffer and create Digi List

Definition at line 233 of file Pmm2Reader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t Pmm2Reader::NextDigi ( )
private

Definition at line 125 of file Pmm2Reader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Bool_t Pmm2Reader::NextEvent ( )
virtual

Implements HarpoDetReader.

Definition at line 154 of file Pmm2Reader.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 Pmm2Reader::ReadBuffer ( )
private

Can Read next Buffer from raw file.

Read buffer from file.

Definition at line 382 of file Pmm2Reader.cxx.

void Pmm2Reader::SetAnalyseFunction ( HarpoDetAnalyse func)

Definition at line 119 of file Pmm2Reader.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 Pmm2Reader::SetReadOutMode ( Long_t  version)
inline

Definition at line 55 of file Pmm2Reader.h.

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 HarpoDetReader::SkipEvent ( )
virtualinherited

Read next event from raw file.

Reimplemented in HarpoSimReader, HarpoFeminosReader, and HarpoDccReader.

Definition at line 169 of file HarpoDetReader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

void Pmm2Reader::unPackRawDigi ( )
private

Unpack Raw Buffer and create Digi List.

Definition at line 327 of file Pmm2Reader.cxx.

Here is the call graph for this function:

Here is the caller graph for this function:

Field Documentation

UInt_t Pmm2Reader::BuffType
private

Definition at line 83 of file Pmm2Reader.h.

Long_t HarpoDetReader::fDet
protectedinherited

Definition at line 58 of file HarpoDetReader.h.

Bool_t HarpoDetReader::fDone
protectedinherited

Definition at line 62 of file HarpoDetReader.h.

Bool_t HarpoDetReader::fError
protectedinherited

Definition at line 63 of file HarpoDetReader.h.

Pmm2Event* Pmm2Reader::fEvent
private

Definition at line 76 of file Pmm2Reader.h.

FILE* Pmm2Reader::fIn
private

Definition at line 69 of file Pmm2Reader.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 Pmm2Reader::fNbufs
private

Definition at line 71 of file Pmm2Reader.h.

Long_t Pmm2Reader::fNdigs
private

Definition at line 72 of file Pmm2Reader.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.

Int_t Pmm2Reader::fNreset
private

Definition at line 85 of file Pmm2Reader.h.

Long_t Pmm2Reader::fNstats
private

Definition at line 73 of file Pmm2Reader.h.

ULong_t HarpoDetReader::fPrevTimeStamp
protectedinherited

Definition at line 75 of file HarpoDetReader.h.

ULong_t Pmm2Reader::fPrevTimeStamp2
private

Definition at line 88 of file Pmm2Reader.h.

HarpoDetAnalyse* Pmm2Reader::fRawAnalyse
private

Definition at line 79 of file Pmm2Reader.h.

Pmm2MesList Pmm2Reader::fRawDigi
private

Definition at line 91 of file Pmm2Reader.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.

Long_t Pmm2Reader::fRVer
private

Read buffer from file.

Definition at line 67 of file Pmm2Reader.h.

Pmm2Event* Pmm2Reader::fSaveEvent
private

Definition at line 77 of file Pmm2Reader.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.

UInt_t Pmm2Reader::lData[N_WORD_IN_BLOCK]
private

Definition at line 82 of file Pmm2Reader.h.

EventHeader_t Pmm2Reader::lHeader
private

Definition at line 81 of file Pmm2Reader.h.

Int_t Pmm2Reader::verbose
private

Definition at line 86 of file Pmm2Reader.h.


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