]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFDigitizer.h
Bug fix (Chiara)
[u/mrichter/AliRoot.git] / TOF / AliTOFDigitizer.h
1 #ifndef ALITOFDIGITIZER_H
2 #define ALITOFDIGITIZER_H
3 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5
6 //_________________________________________________________________________
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)
13
14 #include "TH1F.h"
15 #include "TList.h"
16 #include "AliDigitizer.h"
17 #include "AliTOFcalib.h"
18 #include "AliTOFCal.h"
19 #include "AliTOFGeometry.h"
20
21 class AliRunDigitizer;
22 class AliTOFHitMap;
23 class AliTOFSDigit;
24
25 class AliTOFDigitizer : public AliDigitizer {
26  public:
27   
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;}
35   void ReadSDigit(Int_t inputFile);
36   void CreateDigits();
37   void InitDecalibration(AliTOFcalib *calib) const;
38   void DecalibrateTOFSignal(AliTOFcalib *calib);
39   
40  private:
41   void CollectSDigit(AliTOFSDigit * sdigit) ;
42   Int_t PutNoise(Int_t /*charge*/)const {return 0;}; // not yet implemented
43                                            // due to the low noise expected level
44   AliTOFGeometry *fGeom;    // AliTOFgeometry pointer
45   TClonesArray *fDigits;             //! array with digits
46   TClonesArray *fSDigitsArray; //! List of summable digits; used as a container for all sdigits to be merged
47   AliTOFHitMap *fhitMap ;            //! hit map used to perform the merging
48   
49   ClassDef(AliTOFDigitizer,0)  // TOF/Merging/Digitization
50 };    
51 #endif