]> git.uio.no Git - u/mrichter/AliRoot.git/blob - TOF/AliTOFDigitizer.h
Add required AliVParticle functionality (Markus)
[u/mrichter/AliRoot.git] / TOF / AliTOFDigitizer.h
1 #ifndef ALITOFDIGITIZER_H
2 #define ALITOFDIGITIZER_H
3
4 /* Copyright(c) 1998-2000, ALICE Experiment at CERN, All rights reserved. *
5  * See cxx source for full Copyright notice                               */
6
7 //_______________________________________________________________________________//
8 //                                                                               //
9 //  Task Class for making Digits in TOF                                          //
10 // Class performs digitization of Summable digits (in the TOF case this is just  //
11 // sum of contributions of all signals into a given pad).                        //
12 // In addition it performs mixing of summable digits from different events.      //
13 //                                                                               //
14 // -- Author: Fabrizio Pierella (Bologna University)
15 //                                                                               //
16 //_______________________________________________________________________________//
17
18 /* $Id$ */
19
20 #include "AliDigitizer.h"
21
22 class AliRunDigitizer;
23 class AliTOFHitMap;
24 class AliTOFSDigit;
25 class AliTOFcalib;
26 class AliTOFGeometry;
27
28 class AliTOFDigitizer : public AliDigitizer {
29  public:
30   
31   AliTOFDigitizer();
32   AliTOFDigitizer(AliRunDigitizer * manager);
33   virtual ~AliTOFDigitizer();
34   AliTOFDigitizer(const AliTOFDigitizer &source); // copy constructor
35   AliTOFDigitizer& operator=(const AliTOFDigitizer &source); // ass. op.
36   
37   // Do the main work
38   void Exec(Option_t* option=0) ;
39   TClonesArray* SDigits() const {return fSDigitsArray;}
40   void ReadSDigit(Int_t inputFile);
41   void CreateDigits();
42   void InitDecalibration(AliTOFcalib *calib) const;
43   void DecalibrateTOFSignal(AliTOFcalib *calib);
44   
45  private:
46   void CollectSDigit(AliTOFSDigit * sdigit) ;
47   Int_t PutNoise(Int_t /*charge*/)const {return 0;}; // not yet
48                                                      // implemented
49                                                      // due to the low
50                                                      // noise expected
51                                                      // level
52   AliTOFGeometry *fGeom;       // Pointer to the TOF geometry
53   TClonesArray *fDigits;       //! array with digits
54   TClonesArray *fSDigitsArray; //! List of summable digits; used as a
55                                //container for all sdigits to be
56                                //merged
57   AliTOFHitMap *fhitMap ;      //! hit map used to perform the merging
58   
59   ClassDef(AliTOFDigitizer,0)  // TOF/Merging/Digitization
60 };    
61 #endif