]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFDigitizer.h
c56c9ec14ba753d5419e3c7fdaf1622bcefd4209
[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 "AliDigitizer.h"
15
16 class AliRunDigitizer;
17 class AliTOFHitMap;
18 class AliTOFSDigit;
19
20 class AliTOFDigitizer : public AliDigitizer {
21  public:
22   
23   AliTOFDigitizer();
24   AliTOFDigitizer(AliRunDigitizer * manager);
25   virtual ~AliTOFDigitizer();
26   
27   // Do the main work
28   void Exec(Option_t* option=0) ;
29   TClonesArray* SDigits() const {return fSDigitsArray;}
30   void ReadSDigit(Int_t);
31   void CreateDigits();
32   
33  private:
34   void CollectSDigit(AliTOFSDigit * sdigit) ;
35   Int_t PutNoise(Int_t charge){return 0;}; // not yet implemented
36                                            // due to the low noise expected level
37   TClonesArray *fDigits;             //! array with digits
38   TClonesArray *fSDigitsArray      ; //! List of summable digits; used as a container for all sdigits to be merged
39   AliTOFHitMap *fhitMap ;            //! hit map used to perform the merging
40   
41   ClassDef(AliTOFDigitizer,0)  // TOF/Merging/Digitization
42 };    
43 #endif
44