]> git.uio.no Git - u/mrichter/AliRoot.git/blame - VZERO/AliVZERODigitizer.h
Provides digitization
[u/mrichter/AliRoot.git] / VZERO / AliVZERODigitizer.h
CommitLineData
2434abb9 1#ifndef ALIVZERODigitizer_H
2#define ALIVZERODigitizer_H
3/* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4 * See cxx source for full Copyright notice */
5
6//_________________________________________________________________________
7//
8// Class for making Digits in VZERO
9//_________________________________________________________________________
10
11
12#include "AliDigitizer.h"
13#include "TString.h"
14
15class TClonesArray;
16class TFile;
17class TMath;
18class TObjArray;
19class TParticle;
20class TTree;
21class TNtuple;
22
23class AliLoader;
24class AliRunLoader;
25class AliRun;
26class AliDetector;
27class AliVZEROhit;
28class AliHit;
29class AliHeader;
30class AliRunDigitizer;
31
32class AliVZEROcell;
33class AliVZEROsdigit;
34class AliVZEROdigit;
35
36// --- Standard library ---
37
38// --- AliRoot header files ---
39
40class AliRunLoader;
41
42class AliVZERODigitizer: public AliDigitizer {
43
44public:
45
46 AliVZERODigitizer() ; // constructor
47 AliVZERODigitizer(AliRunDigitizer *manager);// constructor
48 virtual ~AliVZERODigitizer() ; // destructor
49
50 void OpengAliceFile(const char *file);
51 char *GetDigitsFile()const{return (char*) fDigitsFile.Data();}
52 virtual void Exec();
53 void AddDigit(Int_t /* eventnumber */, Int_t /* cellnumber */, Int_t /* adc */);
54 void SetNEvents(Int_t Nevents){fNevents = Nevents;}
55 void ResetDigit();
56 Stat_t GetNEvents(){return fNevents;}
57
58 private:
59
60 Int_t fNevents; // Number of events to digitize
61 Int_t fNdigits; // Number of digits
62 TString fDigitsFile ; // output file
63 TString fHeadersFile; // input file
64
65 Float_t fPhotoCathodeEfficiency; // Photocathode efficiency
66 Float_t fPMVoltage ; // Photomultiplier voltage
67 Float_t fPMGain; // Photomultiplier gain
68
69 protected:
70
71 AliRunLoader *fRunLoader; // Pointer to Run Loader
72 AliVZEROhit *fVZEROHit; // Pointer to specific detector hits
73 AliDetector *fVZERO; // Get pointers to Alice detectors
74 // and Hit containers
75 AliLoader *fVZEROLoader; // Pointer to specific detector loader
76
77 TClonesArray *fHits; // Pointer to hit array
78 TParticle *fParticle; // Pointer to a given particle
79
80 TTree *fTreeH; // Hits tree
81 TTree *fTreeD; // Digits tree
82
83 TClonesArray *fDigits; // List of digits
84
85 ClassDef(AliVZERODigitizer,1)
86
87};
88
89#endif // AliVZERODigitizer_H