+ //Raw time sample
+ //ALTRO
+ Int_t GetNALTROSamplesLG() const {if(fDigitType==kLG) return fNSamples; else return 0 ; }
+ Bool_t GetALTROSampleLG(const Int_t iSample, Int_t& timeBin, Int_t& amp) const;
+ Int_t GetNALTROSamplesHG() const {if(fDigitType==kHG) return fNSamplesHG; else return 0 ; }
+ Bool_t GetALTROSampleHG(const Int_t iSample, Int_t& timeBin, Int_t& amp) const;
+ //FALTRO, trigger. Same data members as Low Gain
+ Int_t GetNFALTROSamples() const {if(fDigitType==kTrigger) return fNSamples; else return 0 ; }
+ Bool_t GetFALTROSample(const Int_t iSample, Int_t& timeBin, Int_t& amp) const ;
+
+ void SetALTROSamplesHG (const Int_t nSamplesHG, Int_t *samplesHG);
+ void SetALTROSamplesLG (const Int_t nSamplesLG, Int_t *samplesLG);
+ void SetFALTROSamples (const Int_t nSamples, Int_t *samples)
+ { if(fDigitType==kTrigger) SetALTROSamplesLG(nSamples, samples) ; }
+
+ void SetCalibAmp(Float_t amp) { fAmpCalib = amp ; }
+ Double_t GetCalibAmp() const { return fAmpCalib ; }
+
+ void Print(const Option_t* /*opt*/) const;
+
+ private:
+
+ Float_t fAmpFloat; // Cell amplitude, float
+ Int_t fNSamples; // Number of time samples, Low Gain for ALTRO, used also for FALTRO
+ Int_t *fSamples; //[fNSamples], list of time bin constents, Low Gain for ALTRO, used also for FALTRO
+ Int_t fNSamplesHG; // Number of time samples, High Gain for ALTRO
+ Int_t *fSamplesHG; //[fNSamples], list of time bin constents, High Gain for ALTRO, used also for FALTRO
+
+ Int_t fNprimary ; // Number of primaries
+ Int_t fNMaxPrimary ; // Max Number of primaries
+ Int_t *fPrimary ; //[fNMaxPrimary] Array of primaries
+ Float_t *fDEPrimary ; //[fNMaxPrimary] Array of primary energy contributions