4 //////////////////////////////////////////////////////////////////////
6 // Digits classes for the FMD
8 //////////////////////////////////////////////////////////////////////
13 //____________________________________________________________________
14 class AliFMDBaseDigit : public TObject
17 UShort_t fDetector; // (Sub) Detector # (1,2, or 3)
18 Char_t fRing; // Ring ID ('I' or 'O')
19 UShort_t fSector; // Sector # (phi division)
20 UShort_t fStrip; // Strip # (radial division)
23 AliFMDBaseDigit(UShort_t detector,
27 virtual ~AliFMDBaseDigit() {}
28 UShort_t Detector() const { return fDetector; }
29 Char_t Ring() const { return fRing; }
30 UShort_t Sector() const { return fSector; }
31 UShort_t Strip() const { return fStrip; }
32 virtual void Print(Option_t* opt="") const;
33 ClassDef(AliFMDBaseDigit, 1) // Base class for FMD digits
36 //____________________________________________________________________
37 class AliFMDDigit : public AliFMDBaseDigit
40 UShort_t fCount1; // Digital signal
41 Short_t fCount2; // Digital signal (-1 if not used)
42 Short_t fCount3; // Digital signal (-1 if not used)
45 AliFMDDigit(UShort_t detector,
52 virtual ~AliFMDDigit() {}
53 UShort_t Count1() const { return fCount1; }
54 Short_t Count2() const { return fCount2; }
55 Short_t Count3() const { return fCount3; }
56 UShort_t Counts() const;
57 void Print(Option_t* opt="") const;
58 ClassDef(AliFMDDigit,1) // Normal FMD digit
62 AliFMDDigit::Counts() const
65 + (fCount2 >= 0 ? fCount2 : 0)
66 + (fCount3 >= 0 ? fCount3 : 0);
69 //____________________________________________________________________
70 class AliFMDSDigit : public AliFMDBaseDigit
73 Float_t fEdep; // Energy deposited
74 UShort_t fCount1; // Digital signal
75 Short_t fCount2; // Digital signal (-1 if not used)
76 Short_t fCount3; // Digital signal (-1 if not used)
79 AliFMDSDigit(UShort_t detector,
87 virtual ~AliFMDSDigit() {}
88 UShort_t Count1() const { return fCount1; }
89 Short_t Count2() const { return fCount2; }
90 Short_t Count3() const { return fCount3; }
91 Float_t Edep() const { return fEdep; }
92 UShort_t Counts() const;
93 void Print(Option_t* opt="") const;
94 ClassDef(AliFMDSDigit,1) // Summable FMD digit
98 AliFMDSDigit::Counts() const
101 + (fCount2 >= 0 ? fCount2 : 0)
102 + (fCount3 >= 0 ? fCount3 : 0);
107 //____________________________________________________________________