Cell number replaced by PM number in digit Tree
[u/mrichter/AliRoot.git] / VZERO / AliVZERODigitizer.h
index f47a99ad80bea0a79fa43837949cccb7f3b3b345..99245cf8f0c4150f214d0c3b1e0f3deb7d10f202 100644 (file)
@@ -3,86 +3,60 @@
 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
  * See cxx source for full Copyright notice                               */
   
-//_________________________________________________________________________
-//
-//  Class for making Digits in VZERO 
-//_________________________________________________________________________   
+///_________________________________________________________________________
+///
+///  Class for making Digits in VZERO 
+///_________________________________________________________________________   
 
 
-#include "AliDigitizer.h"
-#include "TString.h"
-
-class TClonesArray;
-class TFile;
-class TMath;
-class TObjArray;
-class TParticle;
-class TTree;
-class TNtuple;
-
-class AliLoader;
-class AliRunLoader;
-class AliRun;
-class AliDetector;
-class AliVZEROhit;
-class AliHit;
-class AliHeader;
-class AliRunDigitizer;
-
-class AliVZEROcell;
-class AliVZEROsdigit;
-class AliVZEROdigit;
-
 // --- Standard library ---
 
 // --- AliRoot header files ---
 
-class AliRunLoader;
+#include "AliDigitizer.h"
+
+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
   
-  void OpengAliceFile(const char *file);  
-  char *GetDigitsFile()const{return (char*) fDigitsFile.Data();}  
-  virtual void  Exec();
-  void AddDigit(Int_t /* eventnumber */, Int_t /* cellnumber */, Int_t /* adc */);             
-  void SetNEvents(Int_t Nevents){fNevents = Nevents;}
-  void ResetDigit();
-  Stat_t GetNEvents(){return fNevents;}
+   virtual Bool_t Init();
+   virtual void   Exec(Option_t* option=0);
 
- private:
-  Int_t   fNevents;         // Number of events to digitize
-  Int_t   fNdigits;         // Number of digits
-  TString fDigitsFile ;     // output file   
-  TString fHeadersFile;     // input file
+   void AddDigit(Int_t PMnumber, Int_t adc, Int_t time);
+   void ResetDigit();
+  
+   AliVZEROCalibData *GetCalibData() const;
   
-  Float_t fPhotoCathodeEfficiency; // Photocathode efficiency
-  Float_t fPMVoltage ;             // Photomultiplier voltage
-  Float_t fPMGain;                 // Photomultiplier gain
-
  protected:
  
-  AliRunLoader *fRunLoader;  // Pointer to Run Loader
-  AliVZEROhit  *fVZEROHit;   // Pointer to specific detector hits
-  AliDetector  *fVZERO;      // Get pointers to Alice detectors 
-                             // and Hit containers 
-  AliLoader    *fVZEROLoader;  // Pointer to specific detector loader
-
-  TClonesArray *fHits;       // Pointer to hit array
-  TParticle    *fParticle;   // Pointer to a given particle
-
-  TTree        *fTreeH;      // Hits tree
-  TTree        *fTreeD;      // Digits tree
+   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;}
+  
+   Float_t fPhotoCathodeEfficiency; // Photocathode efficiency
+   Float_t fPMVoltage ;             // Photomultiplier voltage
+   Float_t fPMGain;                 // Photomultiplier gain
 
-  TClonesArray *fDigits;     // List of digits
+   Int_t   fNdigits;                //! Number of digits
+   TClonesArray *fDigits;           //! List of digits
 
-  ClassDef(AliVZERODigitizer,1) 
+   ClassDef(AliVZERODigitizer,2)    // digitizer for VZERO
 
 };