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>
22 //____________________________________________________________________
23 /** @class AliFMDSDigit AliFMDDigit.h <FMD/AliFMDDigit.h>
24 @brief class for summable digits
27 class AliFMDSDigit : public AliFMDBaseDigit
33 @param detector Detector
37 @param edep Energy deposited
38 @param count ADC (first sample)
39 @param count2 ADC (second sample, or -1 if not used)
40 @param count3 ADC (third sample, or -1 if not used) */
41 AliFMDSDigit(UShort_t detector,
52 const TArrayI& refs=TArrayI());
54 virtual ~AliFMDSDigit() {}
55 /** @return ADC count (first sample) */
56 UShort_t Count1() const { return fCount1; }
57 /** @return ADC count (second sample, or -1 if not used) */
58 Short_t Count2() const { return fCount2; }
59 /** @return ADC count (third sample, or -1 if not used) */
60 Short_t Count3() const { return fCount3; }
61 /** @return ADC count (third sample, or -1 if not used) */
62 Short_t Count4() const { return fCount4; }
63 /** @return Canonical ADC counts */
64 UShort_t Counts() const;
65 /** @return Energy deposited */
66 Float_t Edep() const { return fEdep; }
67 /** @return Number of particles that hit this strip */
68 UShort_t NParticles() const { return fNParticles; }
69 /** @return Number of primary particles that hit this strip */
70 UShort_t NPrimaries() const { return fNPrimaries; }
71 /** @return the track labels */
72 const TArrayI& TrackLabels() const { return fLabels; }
74 @param opt Not used */
75 void Print(Option_t* opt="") const;
77 Float_t fEdep; // Energy deposited
78 UShort_t fCount1; // Digital signal
79 Short_t fCount2; // Digital signal (-1 if not used)
80 Short_t fCount3; // Digital signal (-1 if not used)
81 Short_t fCount4; // Digital signal (-1 if not used)
82 UShort_t fNParticles; // Total number of particles that hit this strip
83 UShort_t fNPrimaries; // Number of primary particles that his this strip
84 TArrayI fLabels; // MC-truth track labels
85 ClassDef(AliFMDSDigit,4) // Summable FMD digit
89 AliFMDSDigit::Counts() const
91 if (fCount4 >= 0) return fCount3;
92 if (fCount3 >= 0) return fCount2;
93 if (fCount2 >= 0) return fCount2;
99 //____________________________________________________________________