3 /** @file AliFMDSDigit.h
4 @author Christian Holm Christensen <cholm@nbi.dk>
5 @date Mon Mar 27 12:37:41 2006
6 @brief Digits for the FMD
8 //___________________________________________________________________
10 // Digits classes for the FMD
11 // AliFMDBaseDigit - base class
12 // AliFMDDigit - Normal (smeared) digit
13 // AliFMDSDigit - Summable (non-smeared) digit
15 #ifndef ALIFMDBASEDIGIT_H
16 # include <AliFMDBaseDigit.h>
18 //____________________________________________________________________
19 /** @class AliFMDSDigit AliFMDDigit.h <FMD/AliFMDDigit.h>
20 @brief class for summable digits
23 class AliFMDSDigit : public AliFMDBaseDigit
29 @param detector Detector
33 @param edep Energy deposited
34 @param count ADC (first sample)
35 @param count2 ADC (second sample, or -1 if not used)
36 @param count3 ADC (third sample, or -1 if not used) */
37 AliFMDSDigit(UShort_t detector,
47 virtual ~AliFMDSDigit() {}
48 /** @return ADC count (first sample) */
49 UShort_t Count1() const { return fCount1; }
50 /** @return ADC count (second sample, or -1 if not used) */
51 Short_t Count2() const { return fCount2; }
52 /** @return ADC count (third sample, or -1 if not used) */
53 Short_t Count3() const { return fCount3; }
54 /** @return ADC count (third sample, or -1 if not used) */
55 Short_t Count4() const { return fCount4; }
56 /** @return Canonical ADC counts */
57 UShort_t Counts() const;
58 /** @return Energy deposited */
59 Float_t Edep() const { return fEdep; }
61 @param opt Not used */
62 void Print(Option_t* opt="") const;
64 Float_t fEdep; // Energy deposited
65 UShort_t fCount1; // Digital signal
66 Short_t fCount2; // Digital signal (-1 if not used)
67 Short_t fCount3; // Digital signal (-1 if not used)
68 Short_t fCount4; // Digital signal (-1 if not used)
69 ClassDef(AliFMDSDigit,2) // Summable FMD digit
73 AliFMDSDigit::Counts() const
75 if (fCount4 >= 0) return fCount3;
76 if (fCount3 >= 0) return fCount2;
77 if (fCount2 >= 0) return fCount2;
83 //____________________________________________________________________