]>
Commit | Line | Data |
---|---|---|
8e72349e | 1 | #ifndef ALITOFDIGITIZER_H |
2 | #define ALITOFDIGITIZER_H | |
3 | /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. * | |
68861244 | 4 | * See cxx source for full Copyright notice */ |
5 | ||
6 | //_________________________________________________________________________ | |
8e72349e | 7 | // Task Class for making Digits in TOF |
8 | // Class performs digitization of Summable digits (in the TOF case this is just | |
9 | // sum of contributions of all signals into a given pad). | |
10 | // In addition it performs mixing of summable digits from different events. | |
11 | // | |
12 | //*-- Author: Fabrizio Pierella (Bologna University) | |
68861244 | 13 | |
55cb22a1 | 14 | #include "TH1F.h" |
15 | #include "TList.h" | |
8e72349e | 16 | #include "AliDigitizer.h" |
55cb22a1 | 17 | #include "AliTOFcalib.h" |
18 | #include "AliTOFCal.h" | |
19 | #include "AliTOFGeometry.h" | |
68861244 | 20 | |
8e72349e | 21 | class AliRunDigitizer; |
22 | class AliTOFHitMap; | |
23 | class AliTOFSDigit; | |
68861244 | 24 | |
8e72349e | 25 | class AliTOFDigitizer : public AliDigitizer { |
26 | public: | |
68861244 | 27 | |
8e72349e | 28 | AliTOFDigitizer(); |
29 | AliTOFDigitizer(AliRunDigitizer * manager); | |
30 | virtual ~AliTOFDigitizer(); | |
31 | ||
32 | // Do the main work | |
33 | void Exec(Option_t* option=0) ; | |
34 | TClonesArray* SDigits() const {return fSDigitsArray;} | |
340693af | 35 | void ReadSDigit(Int_t inputFile); |
55cb22a1 | 36 | void CreateDigits(); |
340693af | 37 | void InitDecalibration(AliTOFcalib *calib) const; |
55cb22a1 | 38 | void DecalibrateTOFSignal(AliTOFcalib *calib); |
8e72349e | 39 | |
40 | private: | |
41 | void CollectSDigit(AliTOFSDigit * sdigit) ; | |
340693af | 42 | Int_t PutNoise(Int_t /*charge*/)const {return 0;}; // not yet implemented |
8e72349e | 43 | // due to the low noise expected level |
55cb22a1 | 44 | AliTOFGeometry *fGeom; // AliTOFgeometry pointer |
8e72349e | 45 | TClonesArray *fDigits; //! array with digits |
55cb22a1 | 46 | TClonesArray *fSDigitsArray; //! List of summable digits; used as a container for all sdigits to be merged |
8e72349e | 47 | AliTOFHitMap *fhitMap ; //! hit map used to perform the merging |
48 | ||
49 | ClassDef(AliTOFDigitizer,0) // TOF/Merging/Digitization | |
50 | }; | |
51 | #endif |