// (amplitude,time, position,gain) from the raw stream
// provided by AliRawReader. See cxx source for use case.
-#include "AliRawReader.h"
#include "AliCaloRawStream.h"
class TArrayI;
-class AliPHOSPulseGenerator;
+class AliRawReader;
class AliPHOSRawDecoder {
void SetOldRCUFormat(Bool_t isOldRCU) {fCaloStream->SetOldRCUFormat(isOldRCU);}
void SubtractPedestals(Bool_t subtract) {fPedSubtract=subtract;}
- Double_t GetEnergy() { return fEnergy; }
- Double_t GetTime() { return fTime; }
- Int_t GetModule() { return fModule; }
- Int_t GetColumn() { return fColumn; }
- Int_t GetRow() { return fRow; }
- Bool_t IsLowGain() { return fLowGainFlag; }
+ const Double_t GetEnergy() const { return fEnergy; }
+ const Double_t GetTime() const { return fTime; }
+ const Double_t GetSampleQuality() const {return fQuality ;}
+ const Int_t GetModule() const { return fModule; }
+ const Int_t GetColumn() const { return fColumn; }
+ const Int_t GetRow() const { return fRow; }
+ const Bool_t IsLowGain() const { return fLowGainFlag; }
+ const Bool_t IsOverflow() const { return fOverflow ;}
const AliRawReader* GetRawReader() const { return fRawReader; }
Double_t fEnergy; // "digit" energy
Double_t fTime; // "digit" time
+ Double_t fQuality ; //Sample quality
Int_t fModule; // PHOS module number (1-5)
Int_t fColumn; // column in the module
Int_t fRow; // row
- Bool_t fLowGainFlag;
- TArrayI* fSamples;// array of samples
- AliPHOSPulseGenerator* fPulseGenerator; // ALTRO pulse simulator
-
+ Int_t fNewModule; // PHOS module number (1-5) of keeped sample
+ Int_t fNewColumn; // column in the module of keeped sample
+ Int_t fNewRow; // row of keeped sample
+ Int_t fNewAmp ; //Keeped amp
+ Int_t fNewTime ; //Time of keeped sample
+ Bool_t fLowGainFlag; //True if sample read from Low Gain
+ Bool_t fNewLowGainFlag; // fLowGainFlag of keeped sample
+ Bool_t fOverflow ; //Wether there was overflow
+ TArrayI* fSamples; // array of samples
+ TArrayI* fTimes ; // array of times corresponding to samples
+
ClassDef(AliPHOSRawDecoder,1)
};