AliRoot Core  3dc7879 (3dc7879)
AliFMDHitDigitizer.h
Go to the documentation of this file.
1 #ifndef ALIFMDHITDIGITIZER_H
2 #define ALIFMDHITDIGITIZER_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights
4  * reserved.
5  *
6  * See cxx source for full Copyright notice
7  */
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 //
23 #ifndef ALIFMDBASEDIGITIZER_H
24 # include <AliFMDBaseDigitizer.h>
25 #endif
26 
27 //====================================================================
28 class TClonesArray;
29 class AliFMD;
30 class AliLoader;
31 class AliRunLoader;
32 class AliFMDDigit;
33 class AliStack;
34 
35 
36 
37 //====================================================================
44 {
45 public:
46  enum Output_t {
49  };
50 
54  fOutput(kDigits),
55  fHoldTime(2e-6),
56  fStack(0)
57  {}
60  AliFMDHitDigitizer(AliFMD* fmd, Output_t output);
62  virtual ~AliFMDHitDigitizer() {}
64  void Digitize(Option_t* option="");
71  void SetHoldTime(Double_t holdT=2e-6) { fHoldTime = holdT; }
77  Double_t GetHoldTime() const { return fHoldTime; }
78 protected:
83  fOutput(o.fOutput),
84  fHoldTime(2e-6),
85  fStack(o.fStack)
86  {}
100  TTree* MakeOutputTree(AliLoader* loader);
103  void SumContributions(TBranch* hitsBranch);
110  UShort_t MakePedestal(UShort_t detector,
111  Char_t ring,
112  UShort_t sector,
113  UShort_t strip) const;
125  void AddDigit(UShort_t detector,
126  Char_t ring,
127  UShort_t sector,
128  UShort_t strip,
129  Float_t edep,
130  UShort_t count1,
131  Short_t count2,
132  Short_t count3,
133  Short_t count4,
134  UShort_t ntot,
135  UShort_t nprim,
136  const TArrayI& trackrefs) const;
141  void CheckDigit(AliFMDDigit* digit,
142  UShort_t nhits,
143  const TArrayI& counts);
149  void StoreDigits(const AliLoader* loader);
150 
151 
152  Output_t fOutput; // Output mode
153  Double_t fHoldTime; // Stop of integration
154  AliStack* fStack; // Kinematics
155 
156  ClassDef(AliFMDHitDigitizer,1) // Make Digits from Hits
157 };
158 
159 
160 #endif
161 //____________________________________________________________________
162 //
163 // Local Variables:
164 // mode: C++
165 // End:
166 //
167 //
168 // EOF
169 //
170 
class for digits
Definition: AliFMDDigit.h:28
UShort_t MakePedestal(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip) const
void SumContributions(TBranch *hitsBranch)
void CheckDigit(AliFMDDigit *digit, UShort_t nhits, const TArrayI &counts)
void AddDigit(UShort_t detector, Char_t ring, UShort_t sector, UShort_t strip, Float_t edep, UShort_t count1, Short_t count2, Short_t count3, Short_t count4, UShort_t ntot, UShort_t nprim, const TArrayI &trackrefs) const
Forward Multiplicity Detector based on Silicon wafers. This class is the driver for especially simula...
Definition: AliFMD.h:306
TTree * MakeOutputTree(AliLoader *loader)
FMD Digitizers declaration.
void Digitize(Option_t *option="")
void SetHoldTime(Double_t holdT=2e-6)
AliFMDHitDigitizer(const AliFMDHitDigitizer &o)
Concrete digitizer to make digits from hits. See also AliFMDBaseDigitizer documentation.
void StoreDigits(const AliLoader *loader)
AliFMDHitDigitizer & operator=(const AliFMDHitDigitizer &o)
Double_t GetHoldTime() const
Base class for digitizers.