1 #ifndef ALIEMCALRAWDIGIT_H
2 #define ALIEMCALRAWDIGIT_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
6 /* $Id: AliEMCALRawDigit.h 17335 2007-03-10 03:40:17Z mvl $ */
12 // --- Standard library ---
14 // --- AliRoot header files ---
15 //#include "AliDigitNew.h"
17 class AliEMCALRawDigit : public TObject
19 // friend ostream& operator<<(ostream& , const AliEMCALRawDigit&);
24 AliEMCALRawDigit(Int_t id, Int_t timeSamples[], Int_t nSamples);
25 AliEMCALRawDigit(const AliEMCALRawDigit& digit);
27 virtual ~AliEMCALRawDigit();
29 Bool_t operator==(const AliEMCALRawDigit &rValue) const;
30 const AliEMCALRawDigit& operator = (const AliEMCALRawDigit&) {return *this;}
32 Int_t Compare(const TObject* obj) const;
33 Bool_t IsSortable() const {return kTRUE;}
34 void SetId(Int_t id) {fId = id;}
35 Int_t GetId() const {return fId;}
37 Int_t GetNSamples() const {return fNSamples;}
38 Bool_t GetTimeSample(const Int_t iSample, Int_t& timeBin, Int_t& amp) const;
39 virtual void Print(const Option_t* opt) const;
43 Int_t fId; //Absolute id
44 Int_t fNSamples; //Number of time samples
45 Int_t* fSamples; //[fNSamples]
47 ClassDef(AliEMCALRawDigit,1) // Digit in EMCAL