Line data Source code
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 : /*
9 :
10 :
11 : Author: R. GUERNANE LPSC Grenoble CNRS/IN2P3
12 : */
13 :
14 : #include "TObject.h"
15 :
16 : class AliEMCALRawDigit : public TObject
17 : {
18 : public:
19 :
20 : AliEMCALRawDigit();
21 : AliEMCALRawDigit(Int_t id, Int_t timeSamples[], Int_t nSamples);
22 :
23 : virtual ~AliEMCALRawDigit();
24 : void Clear(Option_t *);
25 :
26 0 : Bool_t IsSortable() const { return kTRUE;}
27 : Int_t Compare(const TObject* obj) const;
28 :
29 0 : void SetId(Int_t id) {fId = id;}
30 0 : void SetAmplitude(Float_t amp) {fAmplitude = amp;}
31 0 : void SetTime(Float_t time) {fTime = time;}
32 : void SetTimeSamples(const Int_t timeSamples[], const Int_t nSamples);
33 :
34 352 : Int_t GetId() const {return fId;}
35 0 : Float_t GetAmplitude() const {return fAmplitude;}
36 0 : Float_t GetTime() const {return fTime;}
37 2112 : Int_t GetNSamples() const {return fNSamples;}
38 : Bool_t GetTimeSample(const Int_t iSample, Int_t& timeBin, Int_t& amp) const;
39 : Bool_t GetMaximum(Int_t& amplitude, Int_t& time) const;
40 :
41 : virtual void Print(const Option_t* opt) const;
42 :
43 : protected:
44 :
45 : AliEMCALRawDigit(const AliEMCALRawDigit &cd); // Not implemented
46 : AliEMCALRawDigit &operator=(const AliEMCALRawDigit &cd); // Not implemented
47 :
48 : Int_t fId; // Absolute id
49 : Int_t fNSamples; // Number of time samples
50 : Int_t* fSamples; //[fNSamples]
51 : Float_t fAmplitude; // digit amplitude
52 : Float_t fTime; // digit time
53 :
54 54 : ClassDef(AliEMCALRawDigit,1) // Digit in EMCAL
55 : };
56 : #endif
57 :
|