Provides digitization
authorcheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Mar 2004 07:41:45 +0000 (07:41 +0000)
committercheynis <cheynis@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 5 Mar 2004 07:41:45 +0000 (07:41 +0000)
VZERO/AliVZERODigitizer.h [new file with mode: 0644]

diff --git a/VZERO/AliVZERODigitizer.h b/VZERO/AliVZERODigitizer.h
new file mode 100644 (file)
index 0000000..f47a99a
--- /dev/null
@@ -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