]>
Commit | Line | Data |
---|---|---|
66d2ede1 | 1 | #ifndef ALIFMDDIGITIZER_H |
2 | #define ALIFMDDIGITIZER_H | |
4347b38f | 3 | /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights |
4 | * reserved. | |
5 | * | |
6 | * See cxx source for full Copyright notice | |
7 | */ | |
02a27b50 | 8 | // Classses to make Hits into digits and summable digits. |
9 | // | |
10 | // Digits consists of | |
11 | // - Detector # | |
12 | // - Ring ID | |
13 | // - Sector # | |
14 | // - Strip # | |
15 | // - ADC count in this channel | |
16 | // | |
17 | // Summable digits consists of | |
18 | // - Detector # | |
19 | // - Ring ID | |
20 | // - Sector # | |
21 | // - Strip # | |
22 | // - Total energy deposited in the strip | |
23 | // - ADC count in this channel | |
24 | // | |
c2fc1258 | 25 | /** @file AliFMDDigitizer.h |
26 | @author Christian Holm Christensen <cholm@nbi.dk> | |
27 | @date Mon Mar 27 12:38:26 2006 | |
28 | @brief FMD Digitizers declaration | |
02a27b50 | 29 | @ingroup FMD_sim |
c2fc1258 | 30 | */ |
02a27b50 | 31 | #ifndef ALIFMDBASEDIGITIZER_H |
32 | # include <AliFMDBaseDigitizer.h> | |
4347b38f | 33 | #endif |
88cb7938 | 34 | |
4347b38f | 35 | //==================================================================== |
88cb7938 | 36 | class TClonesArray; |
4347b38f | 37 | class AliFMD; |
38 | class AliLoader; | |
39 | class AliRunLoader; | |
8f6ee336 | 40 | class AliFMDDigit; |
4347b38f | 41 | |
4347b38f | 42 | |
4347b38f | 43 | |
44 | //==================================================================== | |
9f662337 | 45 | /** @class AliFMDDigitizer |
46 | @brief Concrete digitizer to make digits from hits. See also | |
47 | AliFMDBaseDigitizer documentation. | |
48 | @ingroup FMD_sim | |
49 | */ | |
4347b38f | 50 | class AliFMDDigitizer : public AliFMDBaseDigitizer |
51 | { | |
52 | public: | |
9f662337 | 53 | /** CTOR */ |
42f1b2f5 | 54 | AliFMDDigitizer() : AliFMDBaseDigitizer() {} |
9f662337 | 55 | /** CTOR |
56 | @param manager Manager of digitization */ | |
42f1b2f5 | 57 | AliFMDDigitizer(AliRunDigitizer * manager) |
58 | : AliFMDBaseDigitizer(manager) {} | |
9f662337 | 59 | /** DTOR */ |
4347b38f | 60 | virtual ~AliFMDDigitizer() {} |
4347b38f | 61 | protected: |
42f1b2f5 | 62 | /** Output to disk |
63 | @param outFMD Loader | |
64 | @param fmd AliFMD object */ | |
65 | virtual void OutputTree(AliLoader* outFMD, AliFMD* fmd); | |
9f662337 | 66 | /** Add a digit to output. |
67 | @param fmd Pointer to detector object | |
68 | @param detector Detector # | |
69 | @param ring Ring ID | |
70 | @param sector Sector number | |
71 | @param strip Strip number | |
72 | @param edep Energy deposited (not used) | |
73 | @param count1 ADC count 1 | |
74 | @param count2 ADC count 2 (-1 if not used) | |
2aeec17d | 75 | @param count3 ADC count 3 (-1 if not used) |
76 | @param count4 ADC count 4 (-1 if not used) */ | |
4347b38f | 77 | virtual void AddDigit(AliFMD* fmd, |
78 | UShort_t detector, | |
79 | Char_t ring, | |
80 | UShort_t sector, | |
81 | UShort_t strip, | |
82 | Float_t edep, | |
83 | UShort_t count1, | |
84 | Short_t count2, | |
2aeec17d | 85 | Short_t count3, |
86 | Short_t count4) const; | |
9f662337 | 87 | /** MAke a pedestal |
88 | @param detector Detector # | |
89 | @param ring Ring ID | |
90 | @param sector Sector number | |
91 | @param strip Strip number | |
92 | @return Random noise */ | |
8f6ee336 | 93 | virtual UShort_t MakePedestal(UShort_t detector, |
94 | Char_t ring, | |
95 | UShort_t sector, | |
96 | UShort_t strip) const; | |
9f662337 | 97 | /** Check that digit data is consistent |
98 | @param digit Digit | |
99 | @param nhits Number of hits | |
100 | @param counts ADC counts */ | |
8f6ee336 | 101 | virtual void CheckDigit(AliFMDDigit* digit, |
4347b38f | 102 | UShort_t nhits, |
103 | const TArrayI& counts); | |
8f6ee336 | 104 | ClassDef(AliFMDDigitizer,1) // Make Digits from Hits |
4347b38f | 105 | }; |
4110645f | 106 | |
4347b38f | 107 | |
108 | #endif | |
109 | //____________________________________________________________________ | |
110 | // | |
0d0e6995 | 111 | // Local Variables: |
112 | // mode: C++ | |
113 | // End: | |
114 | // | |
115 | // | |
4347b38f | 116 | // EOF |
117 | // | |
118 |