]>
Commit | Line | Data |
---|---|---|
3a8be91c | 1 | #ifndef ALIEMCALRECPARAM_H |
2 | #define ALIEMCALRECPARAM_H | |
3 | /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. * | |
4 | * See cxx source for full Copyright notice */ | |
5 | ||
6 | /* $Id$ */ | |
7 | ||
8 | //----------------------------------------------------------------------------- | |
9 | // Container of EMCAL reconstruction parameters | |
10 | // The purpose of this object is to store it to OCDB | |
b4133f05 | 11 | // and retrieve it in AliEMCALClusterizerv1, AliEMCALPID, |
12 | // AliEMCALTracker and use it to configure AliEMCALRawUtils | |
13 | // | |
14 | // | |
3a8be91c | 15 | // Author: Yuri Kharlov |
16 | //----------------------------------------------------------------------------- | |
17 | ||
18 | // --- ROOT system --- | |
19 | ||
413e6b81 | 20 | #include "AliDetectorRecoParam.h" |
225cd96d | 21 | #include "AliLog.h" |
3a8be91c | 22 | |
413e6b81 | 23 | class AliEMCALRecParam : public AliDetectorRecoParam |
3a8be91c | 24 | { |
1e7c9b89 | 25 | public: |
ee08edde | 26 | |
27 | enum AliEMCALClusterizerFlag | |
28 | { | |
29 | kClusterizerv1 = 0, | |
30 | kClusterizerNxN = 1 | |
31 | }; | |
3a8be91c | 32 | |
33 | AliEMCALRecParam() ; | |
413e6b81 | 34 | AliEMCALRecParam(const AliEMCALRecParam& recParam); |
35 | AliEMCALRecParam& operator = (const AliEMCALRecParam& recParam); | |
3a8be91c | 36 | virtual ~AliEMCALRecParam() {} |
1e7c9b89 | 37 | |
225cd96d | 38 | //Clustering (Unfolding : Cynthia) |
1e7c9b89 | 39 | Float_t GetClusteringThreshold() const {return fClusteringThreshold ;} |
40 | Float_t GetW0 () const {return fW0 ;} | |
41 | Float_t GetMinECut () const {return fMinECut ;} | |
42 | Float_t GetLocMaxCut () const {return fLocMaxCut ;} | |
a435f763 | 43 | Float_t GetTimeCut () const {return fTimeCut ;} |
829ba234 | 44 | Float_t GetTimeMin () const {return fTimeMin ;} |
45 | Float_t GetTimeMax () const {return fTimeMax ;} | |
1e7c9b89 | 46 | Bool_t GetUnfold () const {return fUnfold ;} |
829ba234 | 47 | |
1e7c9b89 | 48 | void SetClusteringThreshold(Float_t thrsh) {fClusteringThreshold = thrsh;} |
829ba234 | 49 | void SetW0 (Float_t w0) {fW0 = w0 ;} |
50 | void SetMinECut (Float_t ecut) {fMinECut = ecut ;} | |
1e7c9b89 | 51 | void SetLocMaxCut (Float_t locMaxCut) {fLocMaxCut = locMaxCut ;} |
829ba234 | 52 | void SetTimeCut (Float_t t) {fTimeCut = t ;} |
53 | void SetTimeMin (Float_t t) {fTimeMin = t ;} | |
54 | void SetTimeMax (Float_t t) {fTimeMax = t ;} | |
622e10be | 55 | void SetUnfold (Bool_t unfold) {fUnfold = unfold ;} |
1e7c9b89 | 56 | |
8ba062b1 | 57 | //PID (Guenole) |
1e7c9b89 | 58 | Double_t GetGamma(Int_t i, Int_t j) const {return fGamma[i][j];} |
59 | Double_t GetGammaEnergyProb(Int_t i) const {return fGammaEnergyProb[i];} | |
60 | Double_t GetGamma1to10(Int_t i, Int_t j) const {return fGamma1to10[i][j];} // not used | |
61 | Double_t GetHadron(Int_t i, Int_t j) const {return fHadron[i][j];} | |
62 | Double_t GetHadron1to10(Int_t i, Int_t j) const {return fHadron1to10[i][j];} // not used | |
63 | Double_t GetHadronEnergyProb(Int_t i) const {return fHadronEnergyProb[i];} | |
64 | Double_t GetPiZero(Int_t i, Int_t j) const {return fPiZero[i][j];} | |
65 | Double_t GetPiZeroEnergyProb(Int_t i) const {return fPiZeroEnergyProb[i];} | |
66 | ||
67 | void SetGamma(Int_t i, Int_t j,Double_t param ) {fGamma[i][j]=param;} | |
68 | void SetGammaEnergyProb(Int_t i, Double_t param ) {fGammaEnergyProb[i]=param;} | |
69 | void SetGamma1to10(Int_t i, Int_t j,Double_t param ) {fGamma1to10[i][j]=param;} | |
70 | void SetHadron(Int_t i, Int_t j,Double_t param ) {fHadron[i][j]=param;} | |
71 | void SetHadron1to10(Int_t i, Int_t j,Double_t param ) {fHadron1to10[i][j]=param;} | |
72 | void SetHadronEnergyProb(Int_t i,Double_t param ) {fHadronEnergyProb[i]=param;} | |
73 | void SetPiZero(Int_t i, Int_t j,Double_t param) {fPiZero[i][j]=param;} | |
74 | void SetPiZeroEnergyProb(Int_t i,Double_t param) {fPiZeroEnergyProb[i]=param;} | |
75 | ||
8ba062b1 | 76 | //Track Matching (Alberto) |
77 | /* track matching cut setters */ | |
78 | void SetTrkCutX(Double_t value) {fTrkCutX = value;} | |
79 | void SetTrkCutY(Double_t value) {fTrkCutY = value;} | |
80 | void SetTrkCutZ(Double_t value) {fTrkCutZ = value;} | |
81 | void SetTrkCutR(Double_t value) {fTrkCutR = value;} | |
82 | void SetTrkCutAlphaMin(Double_t value) {fTrkCutAlphaMin = value;} | |
83 | void SetTrkCutAlphaMax(Double_t value) {fTrkCutAlphaMax = value;} | |
84 | void SetTrkCutAngle(Double_t value) {fTrkCutAngle = value;} | |
1e7c9b89 | 85 | void SetTrkCutNITS(Double_t value) {fTrkCutNITS = value;} |
86 | void SetTrkCutNTPC(Double_t value) {fTrkCutNTPC = value;} | |
8ba062b1 | 87 | /* track matching cut getters */ |
88 | Double_t GetTrkCutX() const {return fTrkCutX;} | |
89 | Double_t GetTrkCutY() const {return fTrkCutY;} | |
90 | Double_t GetTrkCutZ() const {return fTrkCutZ;} | |
91 | Double_t GetTrkCutR() const {return fTrkCutR;} | |
92 | Double_t GetTrkCutAlphaMin() const {return fTrkCutAlphaMin;} | |
93 | Double_t GetTrkCutAlphaMax() const {return fTrkCutAlphaMax;} | |
94 | Double_t GetTrkCutAngle() const {return fTrkCutAngle;} | |
1e7c9b89 | 95 | Double_t GetTrkCutNITS() const {return fTrkCutNITS;} |
96 | Double_t GetTrkCutNTPC() const {return fTrkCutNTPC;} | |
97 | ||
b4133f05 | 98 | //Raw signal fitting (Jenn) |
99 | /* raw signal setters */ | |
100 | void SetHighLowGainFactor(Double_t value) {fHighLowGainFactor = value;} | |
101 | void SetOrderParameter(Int_t value) {fOrderParameter = value;} | |
102 | void SetTau(Double_t value) {fTau = value;} | |
103 | void SetNoiseThreshold(Int_t value) {fNoiseThreshold = value;} | |
9f467289 | 104 | void SetNPedSamples(Int_t value) {fNPedSamples = value;} |
105 | void SetRemoveBadChannels(Bool_t val) {fRemoveBadChannels=val; } | |
106 | void SetFittingAlgorithm(Int_t val) {fFittingAlgorithm=val; } | |
46f1d25f | 107 | void SetFALTROUsage(Bool_t val) {fUseFALTRO=val; } |
e853f058 | 108 | void SetLEDFit(Bool_t val) {fFitLEDEvents=val; } |
109 | ||
46f1d25f | 110 | |
b4133f05 | 111 | /* raw signal getters */ |
112 | Double_t GetHighLowGainFactor() const {return fHighLowGainFactor;} | |
113 | Int_t GetOrderParameter() const {return fOrderParameter;} | |
114 | Double_t GetTau() const {return fTau;} | |
115 | Int_t GetNoiseThreshold() const {return fNoiseThreshold;} | |
116 | Int_t GetNPedSamples() const {return fNPedSamples;} | |
9f467289 | 117 | Bool_t GetRemoveBadChannels() const {return fRemoveBadChannels;} |
118 | Int_t GetFittingAlgorithm() const {return fFittingAlgorithm; } | |
46f1d25f | 119 | Bool_t UseFALTRO() const {return fUseFALTRO; } |
e853f058 | 120 | Bool_t FitLEDEvents() const {return fFitLEDEvents; } |
121 | ||
65bec413 | 122 | //Unfolding (Adam) |
123 | Double_t GetSSPars(Int_t i) const {return fSSPars[i];} | |
124 | Double_t GetPar5(Int_t i) const {return fPar5[i];} | |
125 | Double_t GetPar6(Int_t i) const {return fPar6[i];} | |
126 | void SetSSPars(Int_t i, Double_t param ) {fSSPars[i]=param;} | |
127 | void SetPar5(Int_t i, Double_t param ) {fPar5[i]=param;} | |
128 | void SetPar6(Int_t i, Double_t param ) {fPar6[i]=param;} | |
129 | ||
130 | ||
ee08edde | 131 | virtual void Print(Option_t * option="") const ; |
1e7c9b89 | 132 | |
413e6b81 | 133 | static AliEMCALRecParam* GetDefaultParameters(); |
f5fc991a | 134 | static AliEMCALRecParam* GetLowFluxParam(); |
135 | static AliEMCALRecParam* GetHighFluxParam(); | |
98cf874d | 136 | static AliEMCALRecParam* GetCalibParam(); |
137 | static AliEMCALRecParam* GetCosmicParam(); | |
ee08edde | 138 | |
feedcab9 | 139 | static const TObjArray* GetMappings(); |
1e7c9b89 | 140 | |
ee08edde | 141 | void SetClusterizerFlag(Short_t val) { fClusterizerFlag = val; } |
142 | Short_t GetClusterizerFlag() const { return fClusterizerFlag; } | |
143 | ||
1e7c9b89 | 144 | private: |
8ba062b1 | 145 | //Clustering |
a435f763 | 146 | Float_t fClusteringThreshold ; // Minimum energy to seed a EC digit in a cluster |
147 | Float_t fW0 ; // Logarithmic weight for the cluster center of gravity calculation | |
3a8be91c | 148 | Float_t fMinECut; // Minimum energy for a digit to be a member of a cluster |
a435f763 | 149 | Bool_t fUnfold; // Flag to perform cluster unfolding |
150 | Float_t fLocMaxCut; // Minimum energy difference to consider local maxima in a cluster | |
829ba234 | 151 | Float_t fTimeCut ; // Maximum time of digits with respect to EMC cluster max. |
152 | Float_t fTimeMin ; // Minimum time of digits | |
153 | Float_t fTimeMax ; // Maximum time of digits | |
ee08edde | 154 | Short_t fClusterizerFlag ; // Choice of the clusterizer; Default selection (v1) is zero |
a435f763 | 155 | |
8ba062b1 | 156 | //PID (Guenole) |
1e7c9b89 | 157 | Double_t fGamma[6][6]; // Parameter to Compute PID for photons |
158 | Double_t fGamma1to10[6][6]; // Parameter to Compute PID not used | |
159 | Double_t fHadron[6][6]; // Parameter to Compute PID for hadrons | |
160 | Double_t fHadron1to10[6][6]; // Parameter to Compute PID for hadrons between 1 and 10 GeV | |
161 | Double_t fHadronEnergyProb[6]; // Parameter to Compute PID for energy ponderation for hadrons | |
162 | Double_t fPiZeroEnergyProb[6]; // Parameter to Compute PID for energy ponderation for Pi0 | |
163 | Double_t fGammaEnergyProb[6]; // Parameter to Compute PID for energy ponderation for gamma | |
164 | Double_t fPiZero[6][6]; // Parameter to Compute PID for pi0 | |
165 | ||
166 | ||
8ba062b1 | 167 | //Track-Matching (Alberto) |
168 | Double_t fTrkCutX; // X-difference cut for track matching | |
169 | Double_t fTrkCutY; // Y-difference cut for track matching | |
170 | Double_t fTrkCutZ; // Z-difference cut for track matching | |
171 | Double_t fTrkCutR; // cut on allowed track-cluster distance | |
172 | Double_t fTrkCutAlphaMin; // cut on 'alpha' parameter for track matching (min) | |
173 | Double_t fTrkCutAlphaMax; // cut on 'alpha' parameter for track matching (min) | |
174 | Double_t fTrkCutAngle; // cut on relative angle between different track points for track matching | |
1e7c9b89 | 175 | Double_t fTrkCutNITS; // Number of ITS hits for track matching |
176 | Double_t fTrkCutNTPC; // Number of TPC hits for track matching | |
177 | ||
b4133f05 | 178 | //Raw signal fitting parameters (Jenn) |
9f467289 | 179 | Double_t fHighLowGainFactor; // gain factor to convert between high and low gain |
180 | Int_t fOrderParameter; // order parameter for raw signal fit | |
181 | Double_t fTau; // decay constant for raw signal fit | |
182 | Int_t fNoiseThreshold; // threshold to consider signal or noise | |
183 | Int_t fNPedSamples; // number of time samples to use in pedestal calculation | |
184 | Bool_t fRemoveBadChannels; // select if bad channels are removed before fitting | |
185 | Int_t fFittingAlgorithm; // select the fitting algorithm | |
46f1d25f | 186 | Bool_t fUseFALTRO; // get FALTRO (trigger) and put it on trigger digits. |
e853f058 | 187 | Bool_t fFitLEDEvents; // fit LED events or not |
188 | ||
65bec413 | 189 | //Shower shape parameters (Adam) |
190 | Double_t fSSPars[8]; // Unfolding shower shape parameters | |
191 | Double_t fPar5[3]; // UF SSPar nr 5 | |
192 | Double_t fPar6[3]; // UF SSPar nr 6 | |
193 | ||
feedcab9 | 194 | static TObjArray* fgkMaps; // ALTRO mappings for RCU0..RCUX |
1e7c9b89 | 195 | |
65bec413 | 196 | ClassDef(AliEMCALRecParam,14) // Reconstruction parameters |
1e7c9b89 | 197 | |
198 | } ; | |
3a8be91c | 199 | |
200 | #endif // ALIEMCALRECPARAM_H | |
8ba062b1 | 201 |