]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PMD/AliPMDDigitizer.h
Typo corrected (Sun)
[u/mrichter/AliRoot.git] / PMD / AliPMDDigitizer.h
CommitLineData
36031625 1#ifndef ALIPMDDIGITIZER_H
2#define ALIPMDDIGITIZER_H
b2b13ee2 3//-----------------------------------------------------//
4// //
5// Header File : PMDDigitization.h, Version 00 //
6// //
7// Date : September 20 2002 //
8// //
9//-----------------------------------------------------//
10
b2b13ee2 11class TClonesArray;
12class TFile;
36031625 13class TMath;
b2b13ee2 14class TObjArray;
15class TParticle;
16class TTree;
17class TNtuple;
18
19class AliLoader;
20class AliRunLoader;
21class AliRun;
22class AliDetector;
23class AliPMDhit;
24class AliHit;
25class AliHeader;
26
27class AliPMDcell;
28class AliPMDsdigit;
29class AliPMDdigit;
30class AliPMDClustering;
b2b13ee2 31
b2b13ee2 32class AliPMDDigitizer
33{
b2b13ee2 34 public:
35
36 AliPMDDigitizer();
37 virtual ~AliPMDDigitizer();
38
36031625 39 void OpengAliceFile(char *file, Option_t *option);
b2b13ee2 40
36031625 41 void Hits2SDigits(Int_t ievt);
42 void Hits2Digits(Int_t ievt);
43 void SDigits2Digits(Int_t ievt);
b2b13ee2 44 void TrackAssignment2Cell();
36031625 45 void MeV2ADC(Float_t mev, Float_t & adc);
46 void AddSDigit(Int_t trnumber, Int_t det, Int_t smnumber,
47 Int_t cellnumber, Float_t adc);
48 void AddDigit(Int_t trnumber, Int_t det, Int_t smnumber,
49 Int_t cellnumber, Float_t adc);
50 void SetZPosition(Float_t zpos);
b2b13ee2 51 Float_t GetZPosition() const;
52 void ResetCell();
53 void ResetSDigit();
54 void ResetDigit();
55 void ResetCellADC();
56 void UnLoad(Option_t * /* option */);
57
36031625 58 protected:
59 AliRunLoader *fRunLoader; // Pointer to Run Loader
60 AliRun *fAlice; // Pointer to a Run
61 AliPMDhit *fPMDHit; // Pointer to specific detector hits
62 AliDetector *fPMD; // Get pointers to Alice detectors
63 // and Hits containers
64 AliLoader *fPMDLoader; // Pointer to specific detector loader
65
66 TClonesArray *fHits; // Pointer to hits array
67 TObjArray *fPArray; // Pointer to particle array
68 TParticle *fParticle; // Pointer to a given particle
69
70 TTree *fTreeH; // Hits tree
71 TTree *fTreeS; // Summable Digits tree
72 TTree *fTreeD; // Digits tree
73
74 TClonesArray *fSDigits; // List of summable digits
75 TClonesArray *fDigits; // List of digits
76
77 TObjArray *fCell; // List of pmd cells
78 AliPMDcell *fPMDcell; // Pointer to a PMD cell
79
80 Int_t fNsdigit; // Summable digits counter
81 Int_t fNdigit; // Digits counter
82 Int_t fDetNo; // Detector Number (0:PRE, 1:CPV)
83 Float_t fZPos; // z-position of the detector
84
85 static const Int_t fgkTotUM = 24; // Total Unit modules in one detector
86 static const Int_t fgkRow = 48; // Total number of rows in one unitmodule
87 static const Int_t fgkCol = 96; // Total number of cols in one unitmodule
88 Float_t fCPV[fgkTotUM][fgkRow][fgkCol]; // CPV Array containing total edep
89 Float_t fPRE[fgkTotUM][fgkRow][fgkCol]; // PRE Array containing total edep
90 Int_t fPRECounter[fgkTotUM][fgkRow][fgkCol]; // Number of times each cell
91 // is fired in PMD
92 Int_t fPRETrackNo[fgkTotUM][fgkRow][fgkCol]; // PRE Array containing track number
93 Int_t fCPVTrackNo[fgkTotUM][fgkRow][fgkCol]; // CPV Array containing track number
94
95
96 ClassDef(AliPMDDigitizer,2) // To digitize PMD Hits
b2b13ee2 97};
98#endif
99