AliPhysics  a0db429 (a0db429)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
AliCalorimeterUtils.h
Go to the documentation of this file.
1 #ifndef ALICALORIMETERUTILS_H
2 #define ALICALORIMETERUTILS_H
3 /* Copyright(c) 1998-1999, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 //_________________________________________________________________________
18 //_________________________________________________________________________
19 
20 // --- ROOT system ---
21 #include <TObject.h>
22 #include <TString.h>
23 #include <TObjArray.h>
24 class TArrayF;
25 #include <TH2I.h>
26 #include <TGeoMatrix.h>
27 
28 //--- ANALYSIS system ---
29 class AliVEvent;
30 class AliVTrack;
31 class AliAODPWG4Particle;
32 class AliAODCaloCluster;
33 class AliVCaloCells;
34 class AliPHOSGeoUtils;
35 class AliEMCALGeometry;
36 class AliAODMCParticle;
37 class TParticle;
38 
39 #include "AliEMCALRecoUtils.h"
40 
41 class AliCalorimeterUtils : public TObject {
42 
43  public:
44  AliCalorimeterUtils() ; // ctor
45  virtual ~AliCalorimeterUtils() ;//virtual dtor
46 
47  virtual void InitParameters();
48  virtual void Print(const Option_t * opt) const ;
49 
50  virtual Int_t GetDebug() const { return fDebug ; }
51  virtual void SetDebug(Int_t d) { fDebug = d ; }
52 
53  //virtual void Init();
54 
55  // Cluster contents
56 
57  Bool_t AreNeighbours(Int_t calo, Int_t absId1, Int_t absId2) const ;
58 
59  Bool_t IsClusterSharedByTwoSuperModules(const AliEMCALGeometry * geom,
60  AliVCluster* cluster);
61 
62  Int_t GetNumberOfLocalMaxima(AliVCluster* cluster, AliVCaloCells* cells) ;
63 
64  Int_t GetNumberOfLocalMaxima(AliVCluster* cluster, AliVCaloCells* cells,
65  Int_t *absIdList, Float_t *maxEList) ;
66 
67  Float_t GetLocalMaximaCutE() const { return fLocMaxCutE ; }
68  void SetLocalMaximaCutE(Float_t cut) { fLocMaxCutE = cut ; }
69 
70  Float_t GetLocalMaximaCutEDiff() const { return fLocMaxCutEDiff ; }
71  void SetLocalMaximaCutEDiff(Float_t c) { fLocMaxCutEDiff = c ; }
72 
73  Int_t GetMaxEnergyCell(AliVCaloCells* cells, AliVCluster* clu, Float_t & fraction) const ;
74 
75  void SplitEnergy(Int_t absId1, Int_t absId2, AliVCluster *cluster, AliVCaloCells* cells,
76  //Float_t & e1, Float_t & e2,
77  AliAODCaloCluster *cluster1, AliAODCaloCluster *cluster2,
78  Int_t nMax, Int_t eventNumber = 0);//, Int_t *absIdList, Float_t *maxEList,
79 
80  void SwitchOnClusterPlot() { fPlotCluster = kTRUE ; }
81  void SwitchOffClusterPlot() { fPlotCluster = kFALSE ; }
82 
83  Float_t GetMCECellClusFracCorrection(Float_t eCell, Float_t eCluster) const ;
84  void SetMCECellClusFracCorrectionParamters(Int_t i, Float_t param) { if(i<4) fMCECellClusFracCorrParam[i] = param; }
85 
89 
90  //------------------------------
91  // Calorimeters Geometry Methods
92  //------------------------------
93 
94  AliEMCALGeometry * GetEMCALGeometry() const { return fEMCALGeo ; }
95  TString EMCALGeometryName() const { return fEMCALGeoName ; }
96  void SetEMCALGeometryName(TString name) { fEMCALGeoName = name ; }
97  void InitEMCALGeometry() ;
98  Bool_t IsEMCALGeoMatrixSet() const { return fEMCALGeoMatrixSet ; }
99 
100  AliPHOSGeoUtils * GetPHOSGeometry() const { return fPHOSGeo ; }
101  TString PHOSGeometryName() const { return fPHOSGeoName ; }
102  void SetPHOSGeometryName(TString name) { fPHOSGeoName = name ; }
103  void InitPHOSGeometry() ;
104  Bool_t IsPHOSGeoMatrixSet() const { return fPHOSGeoMatrixSet ; }
105 
106  void AccessGeometry(AliVEvent* inputEvent) ;
107 
108  void SetImportGeometryFromFile(Bool_t import,
109  TString path = ""){
110  fImportGeometryFromFile = import ;
111  fImportGeometryFilePath = path ; } // EMCAL
112 
113  Bool_t IsMCParticleInCalorimeterAcceptance(Int_t calo, TParticle* particle);
114  Bool_t IsMCParticleInCalorimeterAcceptance(Int_t calo, AliAODMCParticle* particle);
115  Bool_t IsMCParticleInCalorimeterAcceptance(Int_t calo, Float_t eta, Float_t theta, Float_t phi, Int_t & absID);
116 
119  void SetEMCALGeometryMatrixInSM(TGeoHMatrix* m, Int_t i) { fEMCALMatrix[i] = m ; }
120 
123  void SetPHOSGeometryMatrixInSM(TGeoHMatrix* m, Int_t i) { fPHOSMatrix[i] = m ; }
124 
125  void GetEMCALSubregion(AliVCluster* clus, AliVCaloCells* cells,
126  Int_t & regEta, Int_t & regPhi) const ;
127 
128  //------------------------------
129  // Bad channels
130  //------------------------------
131 
134  fEMCALRecoUtils->SwitchOnBadChannelsRemoval();
137  fEMCALRecoUtils->SwitchOffBadChannelsRemoval() ; }
138 
140  void SwitchOnDistToBadChannelRecalculation () { fEMCALRecoUtils->SwitchOnDistToBadChannelRecalculation() ; }
141  void SwitchOffDistToBadChannelRecalculation() { fEMCALRecoUtils->SwitchOffDistToBadChannelRecalculation(); }
142 
144 
145  Int_t GetEMCALChannelStatus(Int_t iSM , Int_t iCol, Int_t iRow) const {
146  return fEMCALRecoUtils->GetEMCALChannelStatus(iSM,iCol,iRow); }//Channel is ok by default
147 
148  Int_t GetPHOSChannelStatus (Int_t imod, Int_t iCol, Int_t iRow) const {
149  if(fPHOSBadChannelMap) return (Int_t) ((TH2I*)fPHOSBadChannelMap->At(imod))->GetBinContent(iCol,iRow);
150  else return 0 ; }//Channel is ok by default
151 
152  void SetEMCALChannelStatus(Int_t iSM , Int_t iCol, Int_t iRow, Double_t c = 1) {
153  fEMCALRecoUtils->SetEMCALChannelStatus(iSM,iCol,iRow,c) ; }
154 
155  void SetPHOSChannelStatus (Int_t imod, Int_t iCol, Int_t iRow, Double_t c = 1) {
157  ((TH2I*)fPHOSBadChannelMap->At(imod))->SetBinContent(iCol,iRow,c) ; }
158 
159  void SetEMCALChannelStatusMap(Int_t iSM , TH2I* h) { fEMCALRecoUtils->SetEMCALChannelStatusMap(iSM,h) ; }
160  void SetPHOSChannelStatusMap(Int_t imod , TH2I* h) { fPHOSBadChannelMap ->AddAt(h,imod) ; }
161 
162  TH2I * GetEMCALChannelStatusMap(Int_t iSM) const { return fEMCALRecoUtils->GetEMCALChannelStatusMap(iSM) ; }
163  TH2I * GetPHOSChannelStatusMap(Int_t imod) const { return (TH2I*)fPHOSBadChannelMap->At(imod) ; }
164 
165  void SetEMCALChannelStatusMap(TObjArray *map) { fEMCALRecoUtils->SetEMCALChannelStatusMap(map) ; }
166  void SetPHOSChannelStatusMap (TObjArray *map) { fPHOSBadChannelMap = map ; }
167 
168  Bool_t ClusterContainsBadChannel(Int_t calo,UShort_t* cellList, Int_t nCells);
169  Bool_t ClusterContainsBadChannel(TString /*calo*/,UShort_t* /*cellList*/, Int_t /*nCells*/) {return kFALSE;} // Stupid thing to do but just to avoid compilation break in AliTrackComparisonESD while I find the authors
170 
171  // Mask clusters in front of frame, EMCAL only
172  Int_t GetNMaskCellColumns() const { return fNMaskCellColumns;}
173  void SetNMaskCellColumns(Int_t n) {
174  if(n > fNMaskCellColumns) { delete [] fMaskCellColumns ; fMaskCellColumns = new Int_t[n] ; }
175  fNMaskCellColumns = n ; }
176  void SetMaskCellColumn(Int_t ipos, Int_t icol) {
177  if(ipos < fNMaskCellColumns) fMaskCellColumns[ipos] = icol;
178  else printf("Not set, position larger than allocated set size first") ; }
179  Bool_t MaskFrameCluster(Int_t iSM, Int_t ieta) const ;
180 
181  //------------------------------
182  // Calorimeter indexes information
183  //------------------------------
184 
185  Int_t GetModuleNumber(AliAODPWG4Particle * particle, AliVEvent* inputEvent) const;
186  Int_t GetModuleNumber(AliVCluster * cluster) const;
187  Int_t GetModuleNumberCellIndexes(Int_t absId, Int_t calo, Int_t & icol, Int_t & irow, Int_t &iRCU) const ;
188 
189  //------------------------------
190  // Modules fiducial region
191  //------------------------------
192 
193  Bool_t CheckCellFiducialRegion(AliVCluster* cluster, AliVCaloCells* cells) const ;
194  Bool_t CheckCellFiducialRegion(AliVCluster* cluster, AliVCaloCells* cells, AliVEvent* , Int_t )
195  { return CheckCellFiducialRegion(cluster, cells) ; } // Stupid thing to do but just to avoid compilation break in AliTrackComparisonESD while I find the authors
198  void SetNumberOfCellsFromEMCALBorder(Int_t n) { fEMCALRecoUtils->SetNumberOfCellsFromEMCALBorder(n) ; }
199  Int_t GetNumberOfCellsFromEMCALBorder() const { return fEMCALRecoUtils->GetNumberOfCellsFromEMCALBorder(); }
200  void SwitchOnNoFiducialBorderInEMCALEta0() { fEMCALRecoUtils->SwitchOnNoFiducialBorderInEMCALEta0() ; }
201  void SwitchOffNoFiducialBorderInEMCALEta0() { fEMCALRecoUtils->SwitchOffNoFiducialBorderInEMCALEta0() ; }
202  Bool_t IsEMCALNoBorderAtEta0() const { return fEMCALRecoUtils->IsEMCALNoBorderAtEta0() ; }
203 
204  //------------------------------
205  // Recalibration
206  //------------------------------
207 
208  Bool_t IsRecalibrationOn() const { return fRecalibration ; }
210  InitPHOSRecalibrationFactors(); fEMCALRecoUtils->SwitchOnRecalibration() ; }
212  fEMCALRecoUtils->SwitchOffRecalibration() ; }
213 
215 
216  Float_t GetEMCALChannelRecalibrationFactor(Int_t iSM , Int_t iCol, Int_t iRow) const {
217  return fEMCALRecoUtils->GetEMCALChannelRecalibrationFactor(iSM , iCol, iRow) ; }
218 
219  Float_t GetPHOSChannelRecalibrationFactor (Int_t imod, Int_t iCol, Int_t iRow) const {
221  return (Float_t) ((TH2F*)fPHOSRecalibrationFactors->At(imod))->GetBinContent(iCol,iRow);
222  else return 1 ; }
223 
224  void SetEMCALChannelRecalibrationFactor(Int_t iSM , Int_t iCol, Int_t iRow, Double_t c = 1) {
225  fEMCALRecoUtils->SetEMCALChannelRecalibrationFactor(iSM,iCol,iRow,c) ; }
226 
227  void SetPHOSChannelRecalibrationFactor (Int_t imod, Int_t iCol, Int_t iRow, Double_t c = 1) {
229  ((TH2F*)fPHOSRecalibrationFactors->At(imod))->SetBinContent(iCol,iRow,c) ; }
230 
231  void SetEMCALChannelRecalibrationFactors(Int_t iSM , TH2F* h) { fEMCALRecoUtils->SetEMCALChannelRecalibrationFactors(iSM,h) ; }
232  void SetPHOSChannelRecalibrationFactors(Int_t imod , TH2F* h) { fPHOSRecalibrationFactors ->AddAt(h,imod) ; }
233 
234  TH2F * GetEMCALChannelRecalibrationFactors(Int_t iSM) const { return fEMCALRecoUtils->GetEMCALChannelRecalibrationFactors(iSM) ; }
235  TH2F * GetPHOSChannelRecalibrationFactors(Int_t imod) const { return (TH2F*)fPHOSRecalibrationFactors->At(imod) ; }
236 
237  void SetEMCALChannelRecalibrationFactors(TObjArray *map) { fEMCALRecoUtils->SetEMCALChannelRecalibrationFactors(map) ; }
239 
240  void RecalibrateCellTime (Double_t & time, Int_t calo, Int_t absId, Int_t bunchCrossNumber) const ;
241  void RecalibrateCellAmplitude(Float_t & amp, Int_t calo, Int_t absId) const ;
242  Float_t RecalibrateClusterEnergy(AliVCluster* cluster, AliVCaloCells * cells);
243  Float_t RecalibrateClusterEnergyWeightCell(AliVCluster* cluster, AliVCaloCells * cells, Float_t energyOrg);
244 
245  //------------------------------
246  // Run dependent energy calibrations (EMCAL)
247  //------------------------------
248 
251 
252  //------------------------------
253  // Time Recalibration (EMCAL)
254  //------------------------------
255 
256  Bool_t IsTimeRecalibrationOn() const { return fEMCALRecoUtils->IsTimeRecalibrationOn() ; }
257  void SwitchOffTimeRecalibration() { fEMCALRecoUtils->SwitchOffTimeRecalibration() ; }
258  void SwitchOnTimeRecalibration() { fEMCALRecoUtils->SwitchOnTimeRecalibration() ; }
259 
260  Float_t GetEMCALChannelTimeRecalibrationFactor(Int_t bc, Int_t absID) const
261  { return fEMCALRecoUtils->GetEMCALChannelTimeRecalibrationFactor(bc, absID) ; }
262 
263  void SetEMCALChannelTimeRecalibrationFactor(Int_t bc, Int_t absID, Double_t c = 0)
264  { fEMCALRecoUtils->SetEMCALChannelTimeRecalibrationFactor(bc, absID, c) ; }
265 
267  void SetEMCALChannelTimeRecalibrationFactors(TObjArray *map) { fEMCALRecoUtils->SetEMCALChannelTimeRecalibrationFactors(map) ; }
268  void SetEMCALChannelTimeRecalibrationFactors(Int_t bc , TH1F* h) { fEMCALRecoUtils->SetEMCALChannelTimeRecalibrationFactors(bc , h) ; }
269 
270  //------------------------------
271  // EMCAL specific utils for the moment
272  //------------------------------
273 
274  void SetEMCALRecoUtils(AliEMCALRecoUtils * ru) { fEMCALRecoUtils = ru ; }
275  AliEMCALRecoUtils* GetEMCALRecoUtils() const { return fEMCALRecoUtils ; }
276 
280  void CorrectClusterEnergy(AliVCluster *cl);
281 
285  void RecalculateClusterPosition(AliVCaloCells* cells, AliVCluster* clu);
286  void RecalculateClusterShowerShapeParameters(AliVCaloCells* cells, AliVCluster* clu){
287  fEMCALRecoUtils->RecalculateClusterShowerShapeParameters((AliEMCALGeometry*)fEMCALGeo, cells, clu) ; }
288 
289  void RecalculateClusterDistanceToBadChannel(AliVCaloCells* cells, AliVCluster* clu){
290  fEMCALRecoUtils->RecalculateClusterDistanceToBadChannel((AliEMCALGeometry*)fEMCALGeo, cells, clu) ; }
291 
292  void RecalculateClusterPID(AliVCluster* clu) { fEMCALRecoUtils->RecalculateClusterPID(clu) ; }
293 
294  //------------------------------
295  // *** Track Matching ***
296  //------------------------------
297 
298  AliVTrack * GetMatchedTrack(AliVCluster * cluster, AliVEvent * event, Int_t index = -1) const ;
299 
300  // Recalculation
301 
302  void RecalculateClusterTrackMatching(AliVEvent * event, TObjArray* clusterArray = 0x0) ;
303 
304  void GetMatchedResiduals(Int_t index, Float_t &dR, Float_t &dZ) {
305  if (fRecalculateMatching) fEMCALRecoUtils->GetMatchedResiduals(index,dR,dZ) ; }
306 
307  //------------------------------
308  // This could be used for PHOS ...
309  //------------------------------
310 
314 
315  Float_t GetCutZ() const { return fCutZ ; } // PHOS only
316  void SetCutZ(Float_t z) { fCutZ = z ; } // PHOS only
317 
318 
319  Float_t GetCutR() const { return fCutR ; } // PHOS and EMCAL
320  void SetCutR(Float_t r) { fCutR = r ; // PHOS and EMCA
321  fEMCALRecoUtils->SetCutR(r) ; }
322 
323  Float_t GetCutEta() const { return fCutEta ; } // EMCAL only
324  void SetCutEta(Float_t e) { fCutEta = e ; // EMCAL only
325  fEMCALRecoUtils->SetCutEta(e) ; }
326 
327  Float_t GetCutPhi() const { return fCutPhi ; } // EMCAL only
328  void SetCutPhi(Float_t p) { fCutPhi = p ; // EMCAL only
329  fEMCALRecoUtils->SetCutPhi(p) ; }
330 
331  //------------------------------
332  // OADB options settings
333  //------------------------------
334 
335  void AccessOADB(AliVEvent * event) ;
336 
337  TString GetPass() ;
338 
339  void SwitchOnEMCALOADB() { fOADBForEMCAL = kTRUE ; }
340  void SwitchOffEMCALOADB() { fOADBForEMCAL = kFALSE ; }
341 
342  void SwitchOnPHOSOADB() { fOADBForPHOS = kTRUE ; }
343  void SwitchOffPHOSOADB() { fOADBForPHOS = kFALSE ; }
344 
345  void SetEMCALOADBFilePath(TString path) { fOADBFilePathEMCAL = path ; }
346  void SetPHOSOADBFilePath (TString path) { fOADBFilePathPHOS = path ; }
347 
348  //------------------------------
349  // Other settings
350  //------------------------------
351 
354 
355  void SetRunNumber(Int_t run) { fRunNumber = run ; }
356  Int_t GetRunNumber() const { return fRunNumber ; }
357 
358  enum detector { kEMCAL = 0, kPHOS = 1, kCTS = 2, kDCAL = 3, kDCALPHOS = 4 };
359 
360  private:
361 
362  Int_t fDebug;
363 
364  TString fEMCALGeoName;
365 
366  TString fPHOSGeoName;
367 
368  AliEMCALGeometry * fEMCALGeo ;
369 
370  AliPHOSGeoUtils * fPHOSGeo ;
371 
373 
375 
377 
378  TGeoHMatrix * fEMCALMatrix[22];
379 
381 
382  TGeoHMatrix * fPHOSMatrix[5];
383 
385 
386  TObjArray * fPHOSBadChannelMap;
387 
389 
391 
393  Int_t * fMaskCellColumns; //[fNMaskCellColumns]
394 
395  Bool_t fRecalibration;
396 
398 
400 
401  AliEMCALRecoUtils* fEMCALRecoUtils;
402 
404 
406 
408 
409  Float_t fCutR;
410 
411  Float_t fCutZ;
412 
413  Float_t fCutEta;
414 
415  Float_t fCutPhi;
416 
417  Float_t fLocMaxCutE;
418 
419  Float_t fLocMaxCutEDiff;
420 
421  Bool_t fPlotCluster;
422 
423  Bool_t fOADBSet ;
424 
425  Bool_t fOADBForEMCAL ;
426 
427  Bool_t fOADBForPHOS ;
428 
430 
431  TString fOADBFilePathPHOS ;
432 
434 
436 
438 
439  Int_t fRunNumber;
440 
442 
444 
447 
450 
452  ClassDef(AliCalorimeterUtils,19) ;
454 
455 } ;
456 
457 
458 #endif //ALICALORIMETERUTILS_H
459 
460 
461 
void SetCutEta(Float_t e)
Bool_t fRecalculatePosition
Recalculate cluster position.
Float_t GetCutZ() const
void SetNumberOfCellsFromPHOSBorder(Int_t n)
AliEMCALGeometry * fEMCALGeo
! EMCAL geometry pointer.
void InitPHOSRecalibrationFactors()
Init PHOS recalibration factors.
void SetRunNumber(Int_t run)
Bool_t IsRecalculationOfClusterTrackMatchingOn() const
TGeoHMatrix * fEMCALMatrix[22]
Geometry matrices with alignments.
Int_t GetPHOSChannelStatus(Int_t imod, Int_t iCol, Int_t iRow) const
Float_t fLocMaxCutEDiff
Local maxima cut, when aggregating cells, next can be a bit higher.
Bool_t IsCorrectionOfClusterEnergyOn() const
void SetEMCALOADBFilePath(TString path)
TGeoHMatrix * fPHOSMatrix[5]
Geometry matrices with alignments.
Bool_t ClusterContainsBadChannel(Int_t calo, UShort_t *cellList, Int_t nCells)
void SwitchOnLoadOwnEMCALGeometryMatrices()
AliPHOSGeoUtils * fPHOSGeo
! PHOS geometry pointer.
TH2F * GetPHOSChannelRecalibrationFactors(Int_t imod) const
void SetImportGeometryFromFile(Bool_t import, TString path="")
AliEMCALRecoUtils * GetEMCALRecoUtils() const
TString EMCALGeometryName() const
void SwitchOnDistToBadChannelRecalculation()
void SwitchOnNoFiducialBorderInEMCALEta0()
void SwitchOnMCECellClusFracCorrection()
Float_t GetCutPhi() const
void SetEMCALChannelStatus(Int_t iSM, Int_t iCol, Int_t iRow, Double_t c=1)
void SetPHOSChannelRecalibrationFactors(Int_t imod, TH2F *h)
AliPHOSGeoUtils * GetPHOSGeometry() const
Bool_t fOADBForEMCAL
Get calibration from OADB for EMCAL.
TString PHOSGeometryName() const
Float_t GetPHOSChannelRecalibrationFactor(Int_t imod, Int_t iCol, Int_t iRow) const
void SetEMCALChannelTimeRecalibrationFactors(Int_t bc, TH1F *h)
void SwitchOffRecalculateClusterPosition()
void SwitchOffDistToBadChannelRecalculation()
Bool_t ClusterContainsBadChannel(TString, UShort_t *, Int_t)
void RecalculateClusterTrackMatching(AliVEvent *event, TObjArray *clusterArray=0x0)
Float_t fLocMaxCutE
Local maxima cut must have more than this energy.
Float_t GetMCECellClusFracCorrection(Float_t eCell, Float_t eCluster) const
void RecalculateClusterDistanceToBadChannel(AliVCaloCells *cells, AliVCluster *clu)
Bool_t CheckCellFiducialRegion(AliVCluster *cluster, AliVCaloCells *cells, AliVEvent *, Int_t)
void SetEMCALChannelStatusMap(Int_t iSM, TH2I *h)
Bool_t fRunDependentCorrection
Switch on or off the recalibration dependent on T.
void SetLocalMaximaCutEDiff(Float_t c)
void SetNumberOfCellsFromEMCALBorder(Int_t n)
TObjArray * fPHOSRecalibrationFactors
Array of histograms with map of recalibration factors, PHOS.
TString fEMCALGeoName
Name of geometry to use for EMCAL.
TH2F * GetEMCALChannelRecalibrationFactors(Int_t iSM) const
void SetPHOSChannelStatus(Int_t imod, Int_t iCol, Int_t iRow, Double_t c=1)
Bool_t fRecalibration
Switch on or off the recalibration.
Float_t GetEMCALChannelRecalibrationFactor(Int_t iSM, Int_t iCol, Int_t iRow) const
TH1F * GetEMCALChannelTimeRecalibrationFactors(Int_t bc) const
void SwitchOnLoadOwnPHOSGeometryMatrices()
Int_t fDebug
Debugging level.
Int_t GetNumberOfCellsFromPHOSBorder() const
Bool_t IsRecalibrationOn() const
void SetMCECellClusFracCorrectionParamters(Int_t i, Float_t param)
Bool_t IsMCParticleInCalorimeterAcceptance(Int_t calo, TParticle *particle)
void SetPHOSGeometryName(TString name)
virtual void Print(const Option_t *opt) const
Print some relevant parameters set for the analysis.
void SetMaskCellColumn(Int_t ipos, Int_t icol)
void RecalculateClusterPID(AliVCluster *clu)
Float_t GetEMCALChannelTimeRecalibrationFactor(Int_t bc, Int_t absID) const
void SwitchOffRecalculateClusterTrackMatching()
Float_t fCutEta
dEta cut on matching (EMCAL).
Float_t GetLocalMaximaCutE() const
void SetCutPhi(Float_t p)
Int_t GetModuleNumber(AliAODPWG4Particle *particle, AliVEvent *inputEvent) const
Get the EMCAL/PHOS module number that corresponds to this particle.
Bool_t fLoadEMCALMatrices
Matrices set from configuration, not get from geometry.root or from ESDs/AODs.
virtual void SetDebug(Int_t d)
AliEMCALGeometry * GetEMCALGeometry() const
void RecalculateClusterShowerShapeParameters(AliVCaloCells *cells, AliVCluster *clu)
void SwitchOffMCECellClusFracCorrection()
void SetNMaskCellColumns(Int_t n)
Float_t GetLocalMaximaCutEDiff() const
Bool_t fRecalculateMatching
Recalculate cluster position.
Bool_t MaskFrameCluster(Int_t iSM, Int_t ieta) const
AliCalorimeterUtils & operator=(const AliCalorimeterUtils &cu)
Assignment operator not implemented.
Bool_t fOADBForPHOS
Get calibration from OADB for PHOS.
Bool_t IsBadChannelsRemovalSwitchedOn() const
Int_t * fMaskCellColumns
List of masked cells collumn index.
Bool_t fRemoveBadChannels
Check the channel status provided and remove clusters with bad channels.
void InitPHOSBadChannelStatusMap()
Init PHOS bad channels map.
virtual Int_t GetDebug() const
Int_t GetRunNumber() const
AliCalorimeterUtils()
Constructor. Initialize parameters.
void SetEMCALChannelTimeRecalibrationFactor(Int_t bc, Int_t absID, Double_t c=0)
virtual void InitParameters()
Initialize the parameters of the analysis.
void SwitchOnRecalculateClusterTrackMatching()
void SetEMCALChannelRecalibrationFactors(TObjArray *map)
Int_t fNMaskCellColumns
Number of masked columns.
Float_t GetCutR() const
Bool_t IsMCECellClusFracCorrectionOn() const
void SetPHOSGeometryMatrixInSM(TGeoHMatrix *m, Int_t i)
Int_t GetNumberOfSuperModulesUsed() const
Bool_t IsEMCALNoBorderAtEta0() const
Bool_t IsClusterSharedByTwoSuperModules(const AliEMCALGeometry *geom, AliVCluster *cluster)
Bool_t IsRecalculationOfClusterPositionOn() const
Float_t fMCECellClusFracCorrParam[4]
Parameters for the function correcting the weight of the cells in the cluster.
Int_t GetNumberOfLocalMaxima(AliVCluster *cluster, AliVCaloCells *cells)
Find the number of local maxima in cluster.
Bool_t fEMCALGeoMatrixSet
Check if the transformation matrix is set for EMCAL.
void SetEMCALGeometryName(TString name)
void SetPHOSOADBFilePath(TString path)
void SetNumberOfSuperModulesUsed(Int_t nSM)
void SwitchOffNoFiducialBorderInEMCALEta0()
TH2I * GetPHOSChannelStatusMap(Int_t imod) const
void SetEMCALChannelRecalibrationFactor(Int_t iSM, Int_t iCol, Int_t iRow, Double_t c=1)
Float_t GetCutEta() const
TString GetPass()
Get passx from filename.
void RecalculateClusterPosition(AliVCaloCells *cells, AliVCluster *clu)
Bool_t fImportGeometryFromFile
Import geometry settings in geometry.root file.
Int_t GetNMaskCellColumns() const
Bool_t fCorrectELinearity
Correct cluster energy linearity.
Bool_t fPHOSGeoMatrixSet
Check if the transformation matrix is set for PHOS.
TString fOADBFilePathPHOS
Default path $ALICE_PHYSICS/OADB/PHOS, if needed change.
void CorrectClusterEnergy(AliVCluster *cl)
Correct cluster energy non linearity.
void SetEMCALGeometryMatrixInSM(TGeoHMatrix *m, Int_t i)
void GetMatchedResiduals(Int_t index, Float_t &dR, Float_t &dZ)
Float_t fCutZ
dZ cut on matching (EMCAL/PHOS).
Bool_t fLoadPHOSMatrices
Matrices set from configuration, not get from geometry.root or from ESDs/AODs.
void SetPHOSChannelStatusMap(Int_t imod, TH2I *h)
Int_t fNCellsFromPHOSBorder
Number of cells from PHOS border the cell with maximum amplitude has to be.
AliVTrack * GetMatchedTrack(AliVCluster *cluster, AliVEvent *event, Int_t index=-1) const
Bool_t fMCECellClusFracCorrOn
Correct or not the weight of cells in cluster.
void SetPHOSChannelStatusMap(TObjArray *map)
Int_t fNSuperModulesUsed
Number of supermodules to be used in analysis, can be different than the real geo, to be used at initialization of histograms.
TString fImportGeometryFilePath
Path fo geometry.root file.
Bool_t fPlotCluster
Plot cluster in splitting method.
Int_t fRunNumber
Run number of the data, take it from data itself unless set by user.
void SwitchOffLoadOwnPHOSGeometryMatrices()
void RecalibrateCellAmplitude(Float_t &amp, Int_t calo, Int_t absId) const
Recalculate cell energy if recalibration factor.
void SetEMCALChannelTimeRecalibrationFactors(TObjArray *map)
Bool_t IsPHOSGeoMatrixSet() const
void SwitchOffLoadOwnEMCALGeometryMatrices()
void SetEMCALChannelStatusMap(TObjArray *map)
Bool_t IsTimeRecalibrationOn() const
Bool_t IsDistanceToBadChannelRecalculated() const
Bool_t fOADBSet
AODB parameters already set.
TObjArray * fPHOSBadChannelMap
Array of histograms with map of bad channels, PHOS.
TString fPHOSGeoName
Name of geometry to use for PHOS.
Bool_t AreNeighbours(Int_t calo, Int_t absId1, Int_t absId2) const
Int_t GetEMCALChannelStatus(Int_t iSM, Int_t iCol, Int_t iRow) const
Float_t fCutPhi
dPhi cut on matching (EMCAL).
Bool_t IsEMCALGeoMatrixSet() const
Class with utils specific to calorimeter clusters/cells.
Int_t GetNumberOfCellsFromEMCALBorder() const
void AccessGeometry(AliVEvent *inputEvent)
void SetPHOSChannelRecalibrationFactors(TObjArray *map)
void SetEMCALRecoUtils(AliEMCALRecoUtils *ru)
AliEMCALRecoUtils * fEMCALRecoUtils
EMCAL utils for cluster rereconstruction.
void SetEMCALChannelRecalibrationFactors(Int_t iSM, TH2F *h)
void AccessOADB(AliVEvent *event)
TString fOADBFilePathEMCAL
Default path $ALICE_PHYSICS/OADB/EMCAL, if needed change.
void RecalibrateCellTime(Double_t &time, Int_t calo, Int_t absId, Int_t bunchCrossNumber) const
Recalculate time if time recalibration available for EMCAL not ready for PHOS.
Int_t GetMaxEnergyCell(AliVCaloCells *cells, AliVCluster *clu, Float_t &fraction) const
For a given CaloCluster, it gets the absId of the cell with maximum energy deposit.
Float_t fCutR
dR cut on matching (PHOS).
void SetLocalMaximaCutE(Float_t cut)
Float_t RecalibrateClusterEnergyWeightCell(AliVCluster *cluster, AliVCaloCells *cells, Float_t energyOrg)
void SplitEnergy(Int_t absId1, Int_t absId2, AliVCluster *cluster, AliVCaloCells *cells, AliAODCaloCluster *cluster1, AliAODCaloCluster *cluster2, Int_t nMax, Int_t eventNumber=0)
Int_t GetModuleNumberCellIndexes(Int_t absId, Int_t calo, Int_t &icol, Int_t &irow, Int_t &iRCU) const
Get the EMCAL/PHOS module, columns, row and RCU/DDL number that corresponds to this absId...
TH2I * GetEMCALChannelStatusMap(Int_t iSM) const
void SetPHOSChannelRecalibrationFactor(Int_t imod, Int_t iCol, Int_t iRow, Double_t c=1)
Float_t RecalibrateClusterEnergy(AliVCluster *cluster, AliVCaloCells *cells)
Recalibrate the cluster energy, considering the recalibration map and the energy of the cells that co...
void GetEMCALSubregion(AliVCluster *clus, AliVCaloCells *cells, Int_t &regEta, Int_t &regPhi) const
Bool_t CheckCellFiducialRegion(AliVCluster *cluster, AliVCaloCells *cells) const