From 2434abb9f578e96fc102e7febd80e7ecd2192503 Mon Sep 17 00:00:00 2001 From: cheynis Date: Fri, 5 Mar 2004 07:41:45 +0000 Subject: [PATCH] Provides digitization --- VZERO/AliVZERODigitizer.h | 89 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 89 insertions(+) create mode 100644 VZERO/AliVZERODigitizer.h diff --git a/VZERO/AliVZERODigitizer.h b/VZERO/AliVZERODigitizer.h new file mode 100644 index 00000000000..f47a99ad80b --- /dev/null +++ b/VZERO/AliVZERODigitizer.h @@ -0,0 +1,89 @@ +#ifndef ALIVZERODigitizer_H +#define ALIVZERODigitizer_H +/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * + * See cxx source for full Copyright notice */ + +//_________________________________________________________________________ +// +// 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; + +class AliVZERODigitizer: public AliDigitizer { + +public: + + 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;} + + private: + + Int_t fNevents; // Number of events to digitize + Int_t fNdigits; // Number of digits + TString fDigitsFile ; // output file + TString fHeadersFile; // input file + + 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 + + ClassDef(AliVZERODigitizer,1) + +}; + +#endif // AliVZERODigitizer_H -- 2.31.1