3 //___________________________________________________________________
5 // Digits classes for the FMD
6 // AliFMDBaseDigit - base class
7 // AliFMDDigit - Normal (smeared) digit
8 // AliFMDSDigit - Summable (non-smeared) digit
14 //____________________________________________________________________
15 class AliFMDBaseDigit : public TObject
19 AliFMDBaseDigit(UShort_t detector,
23 virtual ~AliFMDBaseDigit() {}
24 UShort_t Detector() const { return fDetector; }
25 Char_t Ring() const { return fRing; }
26 UShort_t Sector() const { return fSector; }
27 UShort_t Strip() const { return fStrip; }
28 virtual void Print(Option_t* opt="") const;
29 const char* GetName() const;
31 UShort_t fDetector; // (Sub) Detector # (1,2, or 3)
32 Char_t fRing; // Ring ID ('I' or 'O')
33 UShort_t fSector; // Sector # (phi division)
34 UShort_t fStrip; // Strip # (radial division)
35 ClassDef(AliFMDBaseDigit, 1) // Base class for FMD digits
38 //____________________________________________________________________
39 class AliFMDDigit : public AliFMDBaseDigit
43 AliFMDDigit(UShort_t detector,
50 virtual ~AliFMDDigit() {}
51 UShort_t Count1() const { return fCount1; }
52 Short_t Count2() const { return fCount2; }
53 Short_t Count3() const { return fCount3; }
54 UShort_t Counts() const;
55 void Print(Option_t* opt="") const;
56 const char* GetTitle() const;
58 UShort_t fCount1; // Digital signal
59 Short_t fCount2; // Digital signal (-1 if not used)
60 Short_t fCount3; // Digital signal (-1 if not used)
61 ClassDef(AliFMDDigit,1) // Normal FMD digit
65 AliFMDDigit::Counts() const
68 + (fCount2 >= 0 ? fCount2 : 0)
69 + (fCount3 >= 0 ? fCount3 : 0);
72 //____________________________________________________________________
73 class AliFMDSDigit : public AliFMDBaseDigit
77 AliFMDSDigit(UShort_t detector,
85 virtual ~AliFMDSDigit() {}
86 UShort_t Count1() const { return fCount1; }
87 Short_t Count2() const { return fCount2; }
88 Short_t Count3() const { return fCount3; }
89 Float_t Edep() const { return fEdep; }
90 UShort_t Counts() const;
91 void Print(Option_t* opt="") const;
93 Float_t fEdep; // Energy deposited
94 UShort_t fCount1; // Digital signal
95 Short_t fCount2; // Digital signal (-1 if not used)
96 Short_t fCount3; // Digital signal (-1 if not used)
97 ClassDef(AliFMDSDigit,1) // Summable FMD digit
101 AliFMDSDigit::Counts() const
104 + (fCount2 >= 0 ? fCount2 : 0)
105 + (fCount3 >= 0 ? fCount3 : 0);
110 //____________________________________________________________________