+//____________________________________________________________________________
+Bool_t AliEMCALDigit::GetFALTROSample(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
+{
+ //Get FALTRO sample in time bin iSample
+ if (iSample >= fNSamples || iSample < 0 || fDigitType==kTrigger) return kFALSE;
+
+ amp = fSamples[iSample] & 0xFFF;
+ timeBin = (fSamples[iSample] >> 12) & 0xFF;
+
+ return kTRUE;
+}
+//____________________________________________________________________________
+Bool_t AliEMCALDigit::GetALTROSampleLG(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
+{
+ //Get Low Gain ALTRO sample in time bin iSample
+ if (iSample >= fNSamples || iSample < 0 || fDigitType==kLG) return kFALSE;
+
+ amp = fSamples[iSample] & 0xFFF;
+ timeBin = (fSamples[iSample] >> 12) & 0xFF;
+
+ return kTRUE;
+}
+
+//____________________________________________________________________________
+void AliEMCALDigit::SetALTROSamplesLG(const Int_t nSamples, Int_t *samples)
+{
+ //Set array of ALTRO samples, Low Gain or FALTRO
+ fNSamples = nSamples;
+ fSamples = new Int_t[fNSamples];
+ for (Int_t i=0; i < fNSamples; i++) fSamples[i] = samples[i];
+}
+
+//____________________________________________________________________________
+void AliEMCALDigit::SetALTROSamplesHG(const Int_t nSamples, Int_t *samples)
+{
+ //Set array of ALTRO samples, High Gain.
+ fNSamplesHG = nSamples;
+ fSamplesHG = new Int_t[fNSamplesHG];
+ for (Int_t i=0; i < fNSamplesHG; i++) fSamplesHG[i] = samples[i];
+}
+
+
+//____________________________________________________________________________
+Bool_t AliEMCALDigit::GetALTROSampleHG(const Int_t iSample, Int_t& timeBin, Int_t& amp) const
+{
+ //Get High Gain ALTRO sample in time bin iSample
+ if (iSample >= fNSamplesHG || iSample < 0 || fDigitType==kHG) return kFALSE;
+
+ amp = fSamplesHG[iSample] & 0xFFF;
+ timeBin = (fSamplesHG[iSample] >> 12) & 0xFF;
+
+ return kTRUE;
+}
+
+