Cell number replaced by PM number in digit Tree
[u/mrichter/AliRoot.git] / VZERO / AliVZERODigitizer.h
index 029c7aba7cf061e21b6264d22ddbf12c69049afe..99245cf8f0c4150f214d0c3b1e0f3deb7d10f202 100644 (file)
 
 class TClonesArray;
 class AliRunDigitizer;
-
+class AliCDBManager;
+class AliCDBStorage;
+class AliVZEROCalibData;
 
 class AliVZERODigitizer: public AliDigitizer {
 
-public:
+ public:
 
-  AliVZERODigitizer() ;                       // constructor
-  AliVZERODigitizer(AliRunDigitizer *manager);// constructor
-  virtual ~AliVZERODigitizer() ;              // destructor
+   AliVZERODigitizer() ;                       // constructor
+   AliVZERODigitizer(AliRunDigitizer *manager);// constructor
+   virtual ~AliVZERODigitizer() ;              // destructor
   
-  virtual Bool_t Init();
-  virtual void   Exec(Option_t* option=0);
-
-  void AddDigit(Int_t cellnumber, Int_t adc);
-  void ResetDigit();
+   virtual Bool_t Init();
+   virtual void   Exec(Option_t* option=0);
 
+   void AddDigit(Int_t PMnumber, Int_t adc, Int_t time);
+   void ResetDigit();
+  
+   AliVZEROCalibData *GetCalibData() const;
+  
+ protected:
+   AliVZEROCalibData *fCalibData;  //! calibration data
  private:
-  AliVZERODigitizer(const AliVZERODigitizer& digitizer): 
-    AliDigitizer(digitizer)
-    {Fatal("AliVZERODigitizer", "copy constructor not implemented");}
-  AliVZERODigitizer& operator = (const AliVZERODigitizer& /*digitizer*/) 
-    {Fatal("operator=", "assignment operator not implemented"); return *this;}
+   AliVZERODigitizer(const AliVZERODigitizer& digitizer): 
+      AliDigitizer(digitizer)
+      {Fatal("AliVZERODigitizer", "copy constructor not implemented");}
+   AliVZERODigitizer& operator = (const AliVZERODigitizer& /*digitizer*/) 
+      {Fatal("operator=", "assignment operator not implemented"); return *this;}
   
-  Float_t fPhotoCathodeEfficiency; // Photocathode efficiency
-  Float_t fPMVoltage ;             // Photomultiplier voltage
-  Float_t fPMGain;                 // Photomultiplier gain
+   Float_t fPhotoCathodeEfficiency; // Photocathode efficiency
+   Float_t fPMVoltage ;             // Photomultiplier voltage
+   Float_t fPMGain;                 // Photomultiplier gain
 
-  Int_t   fNdigits;               //! Number of digits
-  TClonesArray *fDigits;          //! List of digits
+   Int_t   fNdigits;                //! Number of digits
+   TClonesArray *fDigits;           //! List of digits
 
-  ClassDef(AliVZERODigitizer,2)   // digitizer for VZERO
+   ClassDef(AliVZERODigitizer,2)    // digitizer for VZERO
 
 };