]>
Commit | Line | Data |
---|---|---|
33a52e55 | 1 | #ifndef ALIEMCALSIMPARAM_H |
2 | #define ALIEMCALSIMPARAM_H | |
3 | /* Copyright(c) 2007, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id: AliEMCALSimParam.h $ */ | |
7 | /* | |
8 | // | |
9 | // Base class for the EMCAL simulation parameters. | |
10 | // | |
11 | // | |
12 | */ | |
13 | ||
14 | #include "TNamed.h" | |
15 | ||
16 | class AliEMCALSimParam : public TNamed { | |
17 | ||
18 | public: | |
19 | ||
20 | AliEMCALSimParam(); | |
21 | AliEMCALSimParam(const AliEMCALSimParam& recoParam); | |
22 | AliEMCALSimParam& operator = (const AliEMCALSimParam& recoParam); | |
23 | virtual ~AliEMCALSimParam() {} | |
24 | ||
25 | static AliEMCALSimParam * GetInstance() ; | |
26 | virtual void Print(Option_t * option="") const ; | |
27 | ||
28 | //Parameters used in Digitizer | |
4354827d | 29 | Int_t GetDigitThreshold() const { return fDigitThreshold;} |
33a52e55 | 30 | Float_t GetPinNoise() const { return fPinNoise;} |
6569f329 | 31 | Double_t GetTimeResolution() const { return fTimeResolution ; } |
33a52e55 | 32 | Int_t GetNADCEC() const { return fNADCEC ; } |
33 | Int_t GetMeanPhotonElectron() const { return fMeanPhotonElectron ; } | |
4354827d | 34 | void SetDigitThreshold(Int_t val) { fDigitThreshold = val ; } |
33a52e55 | 35 | void SetPinNoise(Float_t val) { fPinNoise = val ; } |
6569f329 | 36 | void SetTimeResolution(Double_t val) { fTimeResolution = val ; } |
33a52e55 | 37 | void SetNADCED(Int_t val) { fNADCEC = val ; } |
38 | void SetMeanPhotonElectron(Int_t val){ fMeanPhotonElectron = val ; } | |
39 | ||
40 | //Parameters used in SDigitizer | |
41 | Float_t GetA() const { return fA ; } | |
42 | Float_t GetB() const { return fB ; } | |
43 | Float_t GetECPrimaryThreshold() const { return fECPrimThreshold ; } | |
44 | void SetA(Float_t val) { fA = val ; } | |
45 | void SetB(Float_t val) { fB = val ; } | |
46 | void SetECPrimaryThreshold(Float_t val) { fECPrimThreshold = val ;} | |
47 | ||
33a52e55 | 48 | |
49 | private: | |
50 | ||
51 | ||
52 | static AliEMCALSimParam * fgSimParam ; // pointer to the unique instance of the class | |
53 | ||
54 | // Digitizer | |
4354827d | 55 | Int_t fDigitThreshold ; // Threshold for storing digits in EMC |
33a52e55 | 56 | Int_t fMeanPhotonElectron ; // number of photon electrons per GeV deposited energy |
57 | Float_t fPinNoise ; // Electronics noise in EMC | |
6569f329 | 58 | Double_t fTimeResolution ; // Time resolution of FEE electronics |
33a52e55 | 59 | //Float_t fTimeThreshold ; // Threshold to start timing for given crystall |
60 | //Float_t fTimeSignalLength ; // Length of the timing signal | |
61 | Int_t fNADCEC ; // number of channels in EC section ADC | |
62 | ||
63 | // SDigitizer | |
64 | Float_t fA ; // Pedestal parameter | |
65 | Float_t fB ; // Slope Digitizition parameters | |
66 | Float_t fECPrimThreshold ; // To store primary if EC Shower Elos > threshold | |
67 | ||
6569f329 | 68 | ClassDef(AliEMCALSimParam,2) |
33a52e55 | 69 | }; |
70 | ||
71 | #endif | |
72 |