]> git.uio.no Git - u/mrichter/AliRoot.git/blame - FMD/AliFMDDigitizer.h
Coding conventions (Christian)
[u/mrichter/AliRoot.git] / FMD / AliFMDDigitizer.h
CommitLineData
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 36class TClonesArray;
4347b38f 37class AliFMD;
38class AliLoader;
39class AliRunLoader;
8f6ee336 40class 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 50class AliFMDDigitizer : public AliFMDBaseDigitizer
51{
52public:
9f662337 53 /** CTOR */
4347b38f 54 AliFMDDigitizer();
9f662337 55 /** CTOR
56 @param manager Manager of digitization */
4347b38f 57 AliFMDDigitizer(AliRunDigitizer * manager);
9f662337 58 /** DTOR */
4347b38f 59 virtual ~AliFMDDigitizer() {}
9f662337 60 /** Do everything
61 @param option Not used */
4347b38f 62 virtual void Exec(Option_t* option=0);
4347b38f 63protected:
9f662337 64 /** Add a digit to output.
65 @param fmd Pointer to detector object
66 @param detector Detector #
67 @param ring Ring ID
68 @param sector Sector number
69 @param strip Strip number
70 @param edep Energy deposited (not used)
71 @param count1 ADC count 1
72 @param count2 ADC count 2 (-1 if not used)
73 @param count3 ADC count 3 (-1 if not used) */
4347b38f 74 virtual void AddDigit(AliFMD* fmd,
75 UShort_t detector,
76 Char_t ring,
77 UShort_t sector,
78 UShort_t strip,
79 Float_t edep,
80 UShort_t count1,
81 Short_t count2,
82 Short_t count3) const;
9f662337 83 /** MAke a pedestal
84 @param detector Detector #
85 @param ring Ring ID
86 @param sector Sector number
87 @param strip Strip number
88 @return Random noise */
8f6ee336 89 virtual UShort_t MakePedestal(UShort_t detector,
90 Char_t ring,
91 UShort_t sector,
92 UShort_t strip) const;
9f662337 93 /** Check that digit data is consistent
94 @param digit Digit
95 @param nhits Number of hits
96 @param counts ADC counts */
8f6ee336 97 virtual void CheckDigit(AliFMDDigit* digit,
4347b38f 98 UShort_t nhits,
99 const TArrayI& counts);
8f6ee336 100 ClassDef(AliFMDDigitizer,1) // Make Digits from Hits
4347b38f 101};
4110645f 102
4347b38f 103
104#endif
105//____________________________________________________________________
106//
0d0e6995 107// Local Variables:
108// mode: C++
109// End:
110//
111//
4347b38f 112// EOF
113//
114