1. Leading time was not decoded properly (there are coarse and fine gains in the...
[u/mrichter/AliRoot.git] / VZERO / AliVZERODigitizer.h
1 #ifndef ALIVZERODigitizer_H
2 #define ALIVZERODigitizer_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice                               */
5   
6 ///_________________________________________________________________________
7 ///
8 ///  Class for making Digits in VZERO 
9 ///_________________________________________________________________________   
10
11
12 // --- Standard library ---
13
14 // --- AliRoot header files ---
15
16 #include "AliDigitizer.h"
17
18 class TClonesArray;
19 class AliRunDigitizer;
20 class AliCDBManager;
21 class AliCDBStorage;
22 class AliVZEROCalibData;
23
24 class AliVZERODigitizer: public AliDigitizer {
25
26  public:
27
28    AliVZERODigitizer() ;                       // constructor
29    AliVZERODigitizer(AliRunDigitizer *manager);// constructor
30    virtual ~AliVZERODigitizer() ;              // destructor
31   
32    virtual Bool_t Init();
33    virtual void   Exec(Option_t* option=0);
34
35    void AddDigit(Int_t PMnumber, Float_t adc, Float_t time);
36    void ResetDigit();
37    void GetCollisionMode();
38    void GetCollisionMode(Int_t collisionMode, Float_t beamEnergy) 
39                         {fCollisionMode=collisionMode; fBeamEnergy=beamEnergy;}
40                                                 
41    AliVZEROCalibData *GetCalibData() const;
42    Int_t GetPMNumber(Int_t cell) const;
43
44  protected:
45  
46    AliVZEROCalibData *fCalibData;  //! calibration data
47  
48  private:
49  
50    AliVZERODigitizer(const AliVZERODigitizer& /*digitizer*/); 
51       
52    AliVZERODigitizer& operator = (const AliVZERODigitizer& /*digitizer*/); 
53   
54    Float_t  fPhotoCathodeEfficiency; // Photocathode efficiency
55    Float_t  fPMVoltage ;             // Photomultiplier voltage
56    Float_t  fPMGain;                 // Photomultiplier gain
57
58    Int_t    fNdigits;                //! Number of digits
59    TClonesArray *fDigits;            //! List of digits
60    
61    Int_t    fCollisionMode;          // =0->p-p, =1->A-A
62    Float_t  fBeamEnergy;             // beam energy
63    
64    ClassDef(AliVZERODigitizer,2)     // digitizer for VZERO
65
66 };
67
68 #endif // AliVZERODigitizer_H