]>
Commit | Line | Data |
---|---|---|
2434abb9 | 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 | ||
b0d2c2d3 | 6 | ///_________________________________________________________________________ |
7 | /// | |
8 | /// Class for making Digits in VZERO | |
9 | ///_________________________________________________________________________ | |
2434abb9 | 10 | |
11 | ||
b0d2c2d3 | 12 | // --- Standard library --- |
13 | ||
14 | // --- AliRoot header files --- | |
15 | ||
2434abb9 | 16 | #include "AliDigitizer.h" |
2434abb9 | 17 | |
18 | class TClonesArray; | |
2434abb9 | 19 | class AliRunDigitizer; |
ce7090f5 | 20 | class AliCDBManager; |
21 | class AliCDBStorage; | |
22 | class AliVZEROCalibData; | |
2434abb9 | 23 | |
24 | class AliVZERODigitizer: public AliDigitizer { | |
25 | ||
ce7090f5 | 26 | public: |
2434abb9 | 27 | |
ce7090f5 | 28 | AliVZERODigitizer() ; // constructor |
29 | AliVZERODigitizer(AliRunDigitizer *manager);// constructor | |
30 | virtual ~AliVZERODigitizer() ; // destructor | |
2434abb9 | 31 | |
ce7090f5 | 32 | virtual Bool_t Init(); |
33 | virtual void Exec(Option_t* option=0); | |
2434abb9 | 34 | |
db0db003 | 35 | void AddDigit(Int_t PMnumber, Float_t adc, Float_t time); |
ce7090f5 | 36 | void ResetDigit(); |
fe0adf2a | 37 | void GetCollisionMode(); |
38 | void GetCollisionMode(Int_t collisionMode, Float_t beamEnergy) | |
39 | {fCollisionMode=collisionMode; fBeamEnergy=beamEnergy;} | |
40 | ||
ce7090f5 | 41 | AliVZEROCalibData *GetCalibData() const; |
8adc9b44 | 42 | Int_t GetPMNumber(Int_t cell) const; |
43 | ||
ce7090f5 | 44 | protected: |
45 | ||
46 | AliVZEROCalibData *fCalibData; //! calibration data | |
47 | ||
2434abb9 | 48 | private: |
ce7090f5 | 49 | |
0b2bea8b | 50 | AliVZERODigitizer(const AliVZERODigitizer& /*digitizer*/); |
51 | ||
52 | AliVZERODigitizer& operator = (const AliVZERODigitizer& /*digitizer*/); | |
2434abb9 | 53 | |
fe0adf2a | 54 | Float_t fPhotoCathodeEfficiency; // Photocathode efficiency |
55 | Float_t fPMVoltage ; // Photomultiplier voltage | |
56 | Float_t fPMGain; // Photomultiplier gain | |
2434abb9 | 57 | |
fe0adf2a | 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 | |
2434abb9 | 65 | |
66 | }; | |
67 | ||
68 | #endif // AliVZERODigitizer_H |