]>
Commit | Line | Data |
---|---|---|
916f1e76 | 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 */ | |
5 | ||
6 | /* $Id: AliEMCALRawDigit.h 17335 2007-03-10 03:40:17Z mvl $ */ | |
7 | ||
8 | // --- ROOT system --- | |
9 | ||
10 | #include "TObject.h" | |
11 | ||
12 | // --- Standard library --- | |
13 | ||
14 | // --- AliRoot header files --- | |
15 | //#include "AliDigitNew.h" | |
16 | ||
17 | class AliEMCALRawDigit : public TObject | |
18 | { | |
19 | // friend ostream& operator<<(ostream& , const AliEMCALRawDigit&); | |
20 | ||
21 | public: | |
22 | ||
23 | AliEMCALRawDigit(); | |
24 | AliEMCALRawDigit(Int_t id, Int_t timeSamples[], Int_t nSamples); | |
25 | AliEMCALRawDigit(const AliEMCALRawDigit& digit); | |
26 | ||
27 | virtual ~AliEMCALRawDigit(); | |
e0dc3f7d | 28 | void Clear(Option_t *); |
916f1e76 | 29 | Bool_t operator==(const AliEMCALRawDigit &rValue) const; |
30 | const AliEMCALRawDigit& operator = (const AliEMCALRawDigit&) {return *this;} | |
31 | ||
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;} | |
36 | ||
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; | |
40 | ||
41 | private: | |
42 | ||
43 | Int_t fId; //Absolute id | |
44 | Int_t fNSamples; //Number of time samples | |
45 | Int_t* fSamples; //[fNSamples] | |
46 | ||
47 | ClassDef(AliEMCALRawDigit,1) // Digit in EMCAL | |
48 | }; | |
49 | #endif | |
50 |