1 #ifndef ALIFMDHITDIGITIZER_H
2 #define ALIFMDHITDIGITIZER_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
6 * See cxx source for full Copyright notice
8 // Classses to make Hits into digits and summable digits
15 // - ADC count in this channel
17 /** @file AliFMDHitDigitizer.h
18 @author Christian Holm Christensen <cholm@nbi.dk>
19 @date Mon Mar 27 12:38:26 2006
20 @brief FMD Digitizers declaration
23 #ifndef ALIFMDBASEDIGITIZER_H
24 # include <AliFMDBaseDigitizer.h>
27 //====================================================================
36 //====================================================================
37 /** @class AliFMDHitDigitizer
38 @brief Concrete digitizer to make digits from hits. See also
39 AliFMDBaseDigitizer documentation.
42 class AliFMDHitDigitizer : public AliFMDBaseDigitizer
52 : AliFMDBaseDigitizer(),
57 AliFMDHitDigitizer(AliFMD* fmd, Output_t output);
59 virtual ~AliFMDHitDigitizer() {}
60 /** Run over the input events (retrieved via run loader) */
61 void Exec(Option_t* option="");
64 @param o Object to copy from */
65 AliFMDHitDigitizer(const AliFMDHitDigitizer& o)
66 : AliFMDBaseDigitizer(o),
69 /** Assignment operator
70 @param o Object to assign from
71 @return Reference to this */
72 AliFMDHitDigitizer& operator=(const AliFMDHitDigitizer& o)
74 AliFMDBaseDigitizer::operator=(o);
78 /** Make the output tree using the passed loader
80 @return The generated tree. */
81 TTree* MakeOutputTree(AliLoader* loader);
82 /** Sum energy deposited contributions from each hit in a cache
83 @param hitsBranch Branch in input tree */
84 void SumContributions(TBranch* hitsBranch);
86 @param detector Detector #
88 @param sector Sector #
90 @return Pedestal value */
91 UShort_t MakePedestal(UShort_t detector,
94 UShort_t strip) const;
95 /** Add a digit to output.
96 @param fmd Pointer to detector object
97 @param detector Detector #
99 @param sector Sector number
100 @param strip Strip number
101 @param edep Energy deposited (not used)
102 @param count1 ADC count 1
103 @param count2 ADC count 2 (-1 if not used)
104 @param count3 ADC count 3 (-1 if not used)
105 @param count4 ADC count 4 (-1 if not used) */
106 void AddDigit(UShort_t detector,
114 Short_t count4) const;
115 /** Check that digit data is consistent
117 @param nhits Number of hits
118 @param counts ADC counts */
119 void CheckDigit(AliFMDDigit* digit,
121 const TArrayI& counts);
122 /** Store the data using the loader
123 @param loader The loader */
124 void StoreDigits(AliLoader* loader);
127 Output_t fOutput; // Output mode
129 ClassDef(AliFMDHitDigitizer,1) // Make Digits from Hits
134 //____________________________________________________________________