Adding TDC channel delays to the calib object.
[u/mrichter/AliRoot.git] / VZERO / AliVZERODigitizer.h
CommitLineData
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
18class TClonesArray;
9672d66e 19class TF1;
2434abb9 20class AliRunDigitizer;
ce7090f5 21class AliCDBManager;
22class AliCDBStorage;
23class AliVZEROCalibData;
2434abb9 24
25class AliVZERODigitizer: public AliDigitizer {
26
ce7090f5 27 public:
2434abb9 28
ce7090f5 29 AliVZERODigitizer() ; // constructor
30 AliVZERODigitizer(AliRunDigitizer *manager);// constructor
31 virtual ~AliVZERODigitizer() ; // destructor
2434abb9 32
ce7090f5 33 virtual Bool_t Init();
34 virtual void Exec(Option_t* option=0);
2434abb9 35
db0db003 36 void AddDigit(Int_t PMnumber, Float_t adc, Float_t time);
ce7090f5 37 void ResetDigit();
fe0adf2a 38 void GetCollisionMode();
39 void GetCollisionMode(Int_t collisionMode, Float_t beamEnergy)
40 {fCollisionMode=collisionMode; fBeamEnergy=beamEnergy;}
41
ce7090f5 42 AliVZEROCalibData *GetCalibData() const;
8adc9b44 43 Int_t GetPMNumber(Int_t cell) const;
44
9672d66e 45 TF1* GetSignalShape() const { return fSignalShape; }
46 double SignalShape(double *x, double *par);
47
ce7090f5 48 protected:
49
50 AliVZEROCalibData *fCalibData; //! calibration data
51
2434abb9 52 private:
ce7090f5 53
0b2bea8b 54 AliVZERODigitizer(const AliVZERODigitizer& /*digitizer*/);
55
56 AliVZERODigitizer& operator = (const AliVZERODigitizer& /*digitizer*/);
2434abb9 57
fe0adf2a 58 Float_t fPhotoCathodeEfficiency; // Photocathode efficiency
59 Float_t fPMVoltage ; // Photomultiplier voltage
60 Float_t fPMGain; // Photomultiplier gain
2434abb9 61
fe0adf2a 62 Int_t fNdigits; //! Number of digits
63 TClonesArray *fDigits; //! List of digits
64
65 Int_t fCollisionMode; // =0->p-p, =1->A-A
66 Float_t fBeamEnergy; // beam energy
9672d66e 67
68 TF1* fSignalShape; // function which describes the PMT signal shape
fe0adf2a 69
9672d66e 70 ClassDef(AliVZERODigitizer,3) // digitizer for VZERO
2434abb9 71
72};
73
74#endif // AliVZERODigitizer_H