AliRoot Core  3dc7879 (3dc7879)
AliEMCALSimParam.h
Go to the documentation of this file.
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 //-----------------------------------------------------------------------------
18 //-----------------------------------------------------------------------------
19 
20 #include "TNamed.h"
21 
22 class AliEMCALSimParam : public TNamed
23 {
24 
25 public:
26 
28  AliEMCALSimParam(const AliEMCALSimParam& recoParam);
30  virtual ~AliEMCALSimParam() {}
31 
32  static AliEMCALSimParam * GetInstance() ;
33  virtual void Print(Option_t * option="") const ;
34 
35  // Parameters used in Digitizer
36  Int_t GetDigitThreshold() const { return fDigitThreshold ; }
37  Float_t GetPinNoise() const { return fPinNoise ; }
38  Double_t GetTimeNoise() const { return fTimeNoise ; }
39  Double_t GetTimeDelay() const { return fTimeDelay ; }
40  Double_t IsTimeDelayFromOCDB() const { return fTimeDelayFromOCDB ; }
41  Double_t GetTimeResolutionPar0() const { return fTimeResolutionPar0 ; }
42  Double_t GetTimeResolutionPar1() const { return fTimeResolutionPar1 ; }
43  Int_t GetNADCEC() const { return fNADCEC ; }
44  Int_t GetMeanPhotonElectron() const { return fMeanPhotonElectron ; }
45  Float_t GetGainFluctuations() const { return fGainFluctuations ; }
46 
47  void SetDigitThreshold(Int_t val) { fDigitThreshold = val ; }
48  void SetPinNoise(Float_t val) { fPinNoise = val ; }
49  void SetTimeNoise(Float_t val) { fTimeNoise = val ; }
50  void SetTimeDelay(Double_t val) { fTimeDelay = val ; }
51  void SetTimeDelayFromOCDB(Bool_t val) { fTimeDelayFromOCDB = val ; }
52  void SetTimeResolutionPar0(Double_t val){ fTimeResolutionPar0 = val ; }
53  void SetTimeResolutionPar1(Double_t val){ fTimeResolutionPar1 = val ; }
54  void SetNADCED(Int_t val) { fNADCEC = val ; }
55  void SetMeanPhotonElectron(Int_t val) { fMeanPhotonElectron = val ; }
56  void SetGainFluctuations(Float_t val) { fGainFluctuations = val ; }
57 
58  // Parameters used in SDigitizer
59  Float_t GetA() const { return fA ; }
60  Float_t GetB() const { return fB ; }
61  Float_t GetECPrimaryThreshold() const { return fECPrimThreshold ; }
62 
63  void SetA(Float_t val) { fA = val ; }
64  void SetB(Float_t val) { fB = val ; }
65  void SetECPrimaryThreshold(Float_t val) { fECPrimThreshold = val ; }
66 
67 private:
68 
69  static AliEMCALSimParam * fgSimParam ; // pointer to the unique instance of the class
70 
71  // Digitizer
72  Int_t fDigitThreshold ;
74  Float_t fGainFluctuations ;
75  Float_t fPinNoise ;
76  Double_t fTimeNoise ;
77  Double_t fTimeDelay;
79  Double_t fTimeResolutionPar0 ;
80  Double_t fTimeResolutionPar1 ;
81  Int_t fNADCEC ;
82 
83  // SDigitizer
84  Float_t fA ;
85  Float_t fB ;
86  Float_t fECPrimThreshold ;
87 
89  ClassDef(AliEMCALSimParam,7) ;
91 
92 };
93 
94 #endif // ALIEMCALSIMPARAM_H
95 
void SetECPrimaryThreshold(Float_t val)
Double_t GetTimeDelay() const
AliEMCALSimParam & operator=(const AliEMCALSimParam &recoParam)
Assignment operator.
void SetB(Float_t val)
Bool_t fTimeDelayFromOCDB
Get time delay from OCDB.
Float_t fGainFluctuations
correct fMeanPhotonElectron by the gain fluctuations
virtual void Print(Option_t *option="") const
Print simulation parameters to stdout.
Double_t GetTimeResolutionPar0() const
void SetTimeResolutionPar1(Double_t val)
Float_t GetB() const
Float_t fECPrimThreshold
To store primary if EC Shower Elos > threshold.
static AliEMCALSimParam * GetInstance()
Get Instance.
Float_t GetA() const
Float_t GetPinNoise() const
Int_t fNADCEC
number of channels in EC section ADC
Double_t fTimeDelay
Simple time delay to mimick roughly delay in data.
void SetMeanPhotonElectron(Int_t val)
Double_t fTimeResolutionPar0
Time resolution of FEE electronics.
void SetTimeResolutionPar0(Double_t val)
Double_t IsTimeDelayFromOCDB() const
void SetTimeDelay(Double_t val)
Float_t fA
Pedestal parameter.
static AliEMCALSimParam * fgSimParam
void SetDigitThreshold(Int_t val)
Double_t fTimeNoise
Electronics noise in EMC, time.
AliEMCALSimParam()
Constructor.
Container of simulation parameters.
Float_t GetECPrimaryThreshold() const
Double_t GetTimeNoise() const
Float_t fPinNoise
Electronics noise in EMC, APD.
void SetPinNoise(Float_t val)
Int_t GetDigitThreshold() const
virtual ~AliEMCALSimParam()
Float_t fB
Slope Digitizition parameters.
Int_t GetMeanPhotonElectron() const
void SetTimeNoise(Float_t val)
Int_t fMeanPhotonElectron
number of photon electrons per GeV deposited energy
Double_t GetTimeResolutionPar1() const
void SetA(Float_t val)
void SetGainFluctuations(Float_t val)
Int_t GetNADCEC() const
Int_t fDigitThreshold
Threshold for storing digits in EMC.
Double_t fTimeResolutionPar1
Time resolution of FEE electronics.
void SetNADCED(Int_t val)
Float_t GetGainFluctuations() const
void SetTimeDelayFromOCDB(Bool_t val)