3 //___________________________________________________________________
5 // Digits classes for the FMD
11 //____________________________________________________________________
12 class AliFMDBaseDigit : public TObject
16 AliFMDBaseDigit(UShort_t detector,
20 virtual ~AliFMDBaseDigit() {}
21 UShort_t Detector() const { return fDetector; }
22 Char_t Ring() const { return fRing; }
23 UShort_t Sector() const { return fSector; }
24 UShort_t Strip() const { return fStrip; }
25 virtual void Print(Option_t* opt="") const;
28 UShort_t fDetector; // (Sub) Detector # (1,2, or 3)
29 Char_t fRing; // Ring ID ('I' or 'O')
30 UShort_t fSector; // Sector # (phi division)
31 UShort_t fStrip; // Strip # (radial division)
32 ClassDef(AliFMDBaseDigit, 1) // Base class for FMD digits
35 //____________________________________________________________________
36 class AliFMDDigit : public AliFMDBaseDigit
39 UShort_t fCount1; // Digital signal
40 Short_t fCount2; // Digital signal (-1 if not used)
41 Short_t fCount3; // Digital signal (-1 if not used)
44 AliFMDDigit(UShort_t detector,
51 virtual ~AliFMDDigit() {}
52 UShort_t Count1() const { return fCount1; }
53 Short_t Count2() const { return fCount2; }
54 Short_t Count3() const { return fCount3; }
55 UShort_t Counts() const;
56 void Print(Option_t* opt="") const;
57 ClassDef(AliFMDDigit,1) // Normal FMD digit
61 AliFMDDigit::Counts() const
64 + (fCount2 >= 0 ? fCount2 : 0)
65 + (fCount3 >= 0 ? fCount3 : 0);
68 //____________________________________________________________________
69 class AliFMDSDigit : public AliFMDBaseDigit
72 Float_t fEdep; // Energy deposited
73 UShort_t fCount1; // Digital signal
74 Short_t fCount2; // Digital signal (-1 if not used)
75 Short_t fCount3; // Digital signal (-1 if not used)
78 AliFMDSDigit(UShort_t detector,
86 virtual ~AliFMDSDigit() {}
87 UShort_t Count1() const { return fCount1; }
88 Short_t Count2() const { return fCount2; }
89 Short_t Count3() const { return fCount3; }
90 Float_t Edep() const { return fEdep; }
91 UShort_t Counts() const;
92 void Print(Option_t* opt="") const;
93 ClassDef(AliFMDSDigit,1) // Summable FMD digit
97 AliFMDSDigit::Counts() const
100 + (fCount2 >= 0 ? fCount2 : 0)
101 + (fCount3 >= 0 ? fCount3 : 0);
106 //____________________________________________________________________