/* 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
+///_________________________________________________________________________
+// --- Standard library ---
+
+// --- AliRoot header files ---
+
#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;
class AliVZERODigitizer: public AliDigitizer {
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;}
+ virtual Bool_t Init();
+ virtual void Exec(Option_t* option=0);
+
+ void AddDigit(Int_t cellnumber, Int_t adc);
void ResetDigit();
- Stat_t GetNEvents(){return fNevents;}
private:
-
- Int_t fNevents; // Number of events to digitize
- Int_t fNdigits; // Number of digits
- TString fDigitsFile ; // output file
- TString fHeadersFile; // input file
+ 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
- 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
-
- 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
};