5 //////////////////////////////////////////////////////////////////////
7 // Digits classes for the FMD
9 //////////////////////////////////////////////////////////////////////
14 //____________________________________________________________________
15 class AliFMDBaseDigit : public TObject
18 UShort_t fDetector; // (Sub) Detector # (1,2, or 3)
19 Char_t fRing; // Ring ID ('I' or 'O')
20 UShort_t fSector; // Sector # (phi division)
21 UShort_t fStrip; // Strip # (radial division)
24 AliFMDBaseDigit(UShort_t detector,
28 virtual ~AliFMDBaseDigit() {}
29 UShort_t Detector() const { return fDetector; }
30 Char_t Ring() const { return fRing; }
31 UShort_t Sector() const { return fSector; }
32 UShort_t Strip() const { return fStrip; }
33 virtual void Print(Option_t* opt="") const;
34 ClassDef(AliFMDBaseDigit, 1) // Base class for FMD digits
37 //____________________________________________________________________
38 class AliFMDDigit : public AliFMDBaseDigit
41 UShort_t fCount1; // Digital signal
42 Short_t fCount2; // Digital signal (-1 if not used)
43 Short_t fCount3; // Digital signal (-1 if not used)
46 AliFMDDigit(UShort_t detector,
53 virtual ~AliFMDDigit() {}
54 UShort_t Count1() const { return fCount1; }
55 Short_t Count2() const { return fCount2; }
56 Short_t Count3() const { return fCount3; }
57 UShort_t Counts() const;
58 void Print(Option_t* opt="") const;
59 ClassDef(AliFMDDigit,1) // Normal FMD digit
63 AliFMDDigit::Counts() const
66 + (fCount2 >= 0 ? fCount2 : 0)
67 + (fCount3 >= 0 ? fCount3 : 0);
70 //____________________________________________________________________
71 class AliFMDSDigit : public AliFMDBaseDigit
74 Float_t fEdep; // Energy deposited
75 UShort_t fCount1; // Digital signal
76 Short_t fCount2; // Digital signal (-1 if not used)
77 Short_t fCount3; // Digital signal (-1 if not used)
80 AliFMDSDigit(UShort_t detector,
88 virtual ~AliFMDSDigit() {}
89 UShort_t Count1() const { return fCount1; }
90 Short_t Count2() const { return fCount2; }
91 Short_t Count3() const { return fCount3; }
92 Float_t Edep() const { return fEdep; }
93 UShort_t Counts() const;
94 void Print(Option_t* opt="") const;
95 ClassDef(AliFMDSDigit,1) // Summable FMD digit
99 AliFMDSDigit::Counts() const
102 + (fCount2 >= 0 ? fCount2 : 0)
103 + (fCount3 >= 0 ? fCount3 : 0);
108 //____________________________________________________________________