1 #ifndef ALIEMCALTRIGGERSTURAWSTREAM_H 2 #define ALIEMCALTRIGGERSTURAWSTREAM_H 37 virtual void DumpPayLoad(
const Option_t *option =
"ALL")
const;
39 virtual void GetADC( Int_t iTRU, UInt_t ADC[] );
48 virtual Bool_t
GetL0GammaPatch(
const Int_t i, Int_t& x, Int_t& y )
const;
49 virtual Bool_t
GetL1GammaPatch(
const Int_t i,
const Int_t j, Int_t& x, Int_t& y, Int_t& z)
const;
50 virtual Bool_t
GetL1JetPatch(
const Int_t i,
const Int_t j, Int_t& x, Int_t& y )
const;
54 virtual UInt_t
GetG(
int i,
int j)
const {
return fG[i][j] ; }
55 virtual UInt_t
GetJ(
int i,
int j)
const {
return fJ[i][j] ; }
70 UShort_t
GetThreshold(Short_t a, Short_t
b, Short_t c, UShort_t v0A, UShort_t v0C)
const;
169 return (fDetector ==
kEMCAL)? nModEMCAL :
170 (fDetector ==
kDCAL )? nModDCAL :
176 virtual void DecodeTRUADC( UInt_t *word32,
const int offset);
185 #endif //ALIEMCALTRIGGERSTURAWSTREAM_H
virtual UInt_t GetRho() const
AliEMCALTriggerSTURawStream()
Default constructor.
virtual Int_t GetNL0GammaPatch() const
static const Int_t kPayLoadSizeV2EMCALRaw
96*32/2
provides access to EMCAL/DCAL STU DDL raw data.
virtual void DecodeL1JetPatchIndexes(const int i, UInt_t *word32, const int offset)
Decode L1 Jet patch indeces.
virtual void DumpPayLoad(const Option_t *option="ALL") const
Dump STU payload.
static const Int_t nModEMCAL
virtual UInt_t GetJ(int i, int j) const
virtual void SetDetector(int det)
static const Int_t maxL1GammaPatchIndex
virtual void Reset()
Reset arrays and raw stream.
UInt_t fADC[maxnTRU][maxnmoduleInTRU]
ADCs.
virtual Bool_t GetL1GammaPatch(const Int_t i, const Int_t j, Int_t &x, Int_t &y, Int_t &z) const
L1 gamma patch indexes.
UShort_t GetThreshold(Short_t a, Short_t b, Short_t c, UShort_t v0A, UShort_t v0C) const
Get threshold.
static const Int_t nSubregionEtaDCAL
static const Int_t maxL1Jet
L1Jet_low,high (EMCAL,DCAL)
UInt_t fL1JetThreshold[maxL1Jet]
L1 Jet Threshold.
fPayloadType fPayload
Set by word size.
Int_t fNL1GammaPatch[maxL1Gamma]
N L1 Gamma Patch.
UInt_t fFrameReceived
Frame Received.
UShort_t fL1GammaPatchIndex[maxL1GammaPatchIndex][maxL1Gamma]
L1 Gamma Patch Index.
UInt_t fRegionEnable
Region Enable.
static const Int_t maxL1Gamma
L1Gamma_low,high (EMCAL)
virtual void GetADC(Int_t iTRU, UInt_t ADC[])
Time sums.
UInt_t fG[3][maxL1Gamma]
Gamma threshold parameter:A,B,C.
UInt_t fJ[3][maxL1Jet]
Jet threshold parameter:A,B,C.
virtual Int_t GetRawData() const
static const Int_t kPayLoadSizeV2DCALRaw
96*14/2 +36
UInt_t fFwVersion
Firmware Version.
AliRawReader * fRawReader
Object for reading the raw data.
AliEMCALTriggerSTURawStream & operator=(const AliEMCALTriggerSTURawStream &rhs)
Int_t fNL0GammaPatch
N L0 Gamma Patch.
virtual UInt_t GetPHOSScale(int i) const
virtual Bool_t ReadPayLoad()
Read pay load.
static const Int_t kPayLoadSizeV2DCAL
21+11+11+42+ 56+ 56
static const Int_t nSubregionEtaEMCAL
virtual UInt_t GetL1JetThreshold(const int i) const
static const Int_t kPayLoadSizeV1
virtual UInt_t GetFwVersion() const
virtual Int_t GetnTRU() const
virtual Bool_t GetL0GammaPatch(const Int_t i, Int_t &x, Int_t &y) const
L0 gamma patches sent to STU (original access to L0 patch indexes)
static const Int_t nSubregionPhiDCAL
fDetType fDetector
Set by function.
static const Int_t maxpayloadSize
virtual UInt_t GetG(int i, int j) const
static const Int_t kPayLoadSizeV2EMCAL
17+11+11+96+128+128
static const Int_t maxL0GammaPatchIndex
virtual Int_t GetNL1GammaPatch(const int i) const
static const Int_t nModDCAL
UInt_t fL1GammaThreshold[maxL1Gamma]
L1 Gamma Threshold.
static const Int_t kPayLoadSizeV1Raw
virtual void DecodeL0GammaPatchIndexes(UInt_t *word32, const int offset)
Decode L0 Gamma patch indeces.
virtual void DecodeL1GammaPatchIndexes(const int i, UInt_t *word32, const int offset)
Decode L1 gamma patch indeces.
virtual void DecodeTRUADC(UInt_t *word32, const int offset)
Decode TRU ADC.
static const Int_t kPayLoadSizeV0Raw
static const Int_t maxnTRU
static const Int_t kPayLoadSizeV0
virtual UInt_t GetV0C() const
virtual UInt_t GetPatchSize() const
virtual UInt_t GetL1GammaThreshold(const int i) const
virtual Int_t GetDetector()
UShort_t fL0GammaPatchIndex[maxL0GammaPatchIndex]
L0 Gamma Patch Index.
virtual UInt_t GetV0A() const
static const Int_t nTRUDCAL
virtual void DecodePHOSSubregion(UInt_t *word32, const int offset)
Decode PHOS sub-regions.
static const Int_t maxnmoduleInTRU
virtual Int_t GetNL1JetPatch(const int i) const
static const Int_t kPayLoadSizeV12
virtual void GetPHOSSubregion(UInt_t PHOSSubregion[])
virtual ~AliEMCALTriggerSTURawStream()
Destructor.
virtual UInt_t GetFrameReceived() const
UInt_t fS[4]
PHOS Scale parameter.
UInt_t fPHOSSubregion[36]
PHOS subregions.
UInt_t fRho
Background Rho.
virtual UInt_t GetRegionEnable() const
static const Int_t kPayLoadSizeV12Raw
UInt_t fPatchSize
Jet patch size.
Int_t fNL1JetPatch[maxL1Jet]
N L1 Jet Patch.
static const Int_t maxL1JetPatchIndex
virtual Bool_t GetL1JetPatch(const Int_t i, const Int_t j, Int_t &x, Int_t &y) const
L1 jet patch indexes.
Int_t fGetRawData
Set by word size.
UShort_t fL1JetPatchIndex[maxL1JetPatchIndex][maxL1Jet]
L1 Jet Patch Index.
static const Int_t nTRUEMCAL
static const Int_t nSubregionPhiEMCAL