class emcRawDataObject: public emcDataObject

Common RawDataObject to be used on- and off-line.

Inheritance:


Public Fields

[more] ClassDef(emcRawDataObject, 1)

Public Methods

[more]void Get(Int_t index, Float_t& tac, Float_t& hgpost, Float_t& lgpost, Float_t& hgpre, Float_t& lgpre, int& amupre, int& amupost, int& amutac, int& dataerror) const
Get information for one channel = 1 TAC + 4 ADC + Amu cells + data-readout-error
[more]Float_t GetHGPost(Int_t index) const
Get High Gain Post value for one channel or -9999 if index is not valid
[more]Float_t GetHGPre(Int_t index) const
Get High Gain Pre value for one channel or -9999 if index is not valid
[more]Float_t GetLGPost(Int_t index) const
Get Low Gain Post value for one channel or -9999 if index is not valid
[more]Float_t GetLGPre(Int_t index) const
Get Low Gain Pre value for one channel or -9999 if index is not valid
[more]Float_t GetTAC(Int_t index) const
Get TAC value for one channel or -9999 if index is not valid
[more]Int_t GetAMUPost(Int_t index) const
Get AMU Post value for one channel or 255 if index is not valid
[more]Int_t GetAMUPre(Int_t index) const
Get AMU Pre value for one channel or 255 if tower_index is not valid
[more]Int_t GetAMUTAC(Int_t index) const
Get AMU TAC value for one channel or 255 if index is not valid
[more]Int_t GetNumberOfWordsPerFEM(void) const
Get number of words per FEM (should be 144 most of the time, but could be 192 for some online use cases)
[more]bool IsZero(Int_t index) const
Tells if channel is zero


Inherited from emcDataObject:

Public Methods

ovoid DecodeKey(long key, Int_t& arm, Int_t& sector, Int_t& yrow, Int_t& zrow) const
oInt_t GetMaxSize(void) const
oInt_t GetDataError(Int_t index) const
oInt_t* GetDataErrorPointer(void) const
oInt_t GetSize(void) const
oInt_t GetItemId(Int_t index) const
olong GenerateSoftwareKey(Int_t ItemId) const
olong GetSoftwareKey(Int_t index) const
olong GetErrorFlag(Int_t index) const
obool HasErrors(void) const
oBool_t ValidIndex(Int_t index) const

Protected Fields

oInt_t fMaxSize
oInt_t fSize
oInt_t* fDataErrors
oInt_t* fDataMap
olong* fSoftKey


Documentation

Common RawDataObject to be used on- and off-line.

Purpose: encapsulate the "flat" arrays of the Dynamic classes (online) and replace the STAF table mEmcRawData (offline).

It derives from TObject so it can be written in a TTree using the PHNodeIOManager of PHOOL.

FIXME ? Here are some things to keep in mind :

- The data map is not written for the moment, which means that this object alone is useless, i.e. you need to know which was the configuration used to create it. Can we imagine a global way of solving this problem ? -> see the Streamer method in the implementation file for the chosen solution so far (which requires an emcRawDataAccessor object to have been already built).

- The LG and HG values are not to be found in this object (see emcMixedDataObject if you need those)

- The Streamer function is a custom one, which means that if you ever make changes in the data members, you MUST check that the Streamer is still valid.

ovoid Get(Int_t index, Float_t& tac, Float_t& hgpost, Float_t& lgpost, Float_t& hgpre, Float_t& lgpre, int& amupre, int& amupost, int& amutac, int& dataerror) const
Get information for one channel = 1 TAC + 4 ADC + Amu cells + data-readout-error

oFloat_t GetHGPost(Int_t index) const
Get High Gain Post value for one channel or -9999 if index is not valid

oFloat_t GetHGPre(Int_t index) const
Get High Gain Pre value for one channel or -9999 if index is not valid

oFloat_t GetLGPost(Int_t index) const
Get Low Gain Post value for one channel or -9999 if index is not valid

oFloat_t GetLGPre(Int_t index) const
Get Low Gain Pre value for one channel or -9999 if index is not valid

oFloat_t GetTAC(Int_t index) const
Get TAC value for one channel or -9999 if index is not valid

oInt_t GetAMUPost(Int_t index) const
Get AMU Post value for one channel or 255 if index is not valid

oInt_t GetAMUPre(Int_t index) const
Get AMU Pre value for one channel or 255 if tower_index is not valid

oInt_t GetAMUTAC(Int_t index) const
Get AMU TAC value for one channel or 255 if index is not valid

oInt_t GetNumberOfWordsPerFEM(void) const
Get number of words per FEM (should be 144 most of the time, but could be 192 for some online use cases)

obool IsZero(Int_t index) const
Tells if channel is zero

o ClassDef(emcRawDataObject, 1)


This class has no child classes.

Alphabetic index HTML hierarchy of classes or Java



This page was generated with the help of DOC++.