AliPhysics  a4b41ad (a4b41ad)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 class AliMCEvent;
28 
29 //--- ANALYSIS system ---
30 class AliVEvent;
31 class AliVTrack;
32 class AliAODPWG4Particle;
33 class AliAODCaloCluster;
34 class AliVCaloCells;
35 class AliPHOSGeoUtils;
36 class AliEMCALGeometry;
37 class AliAODMCParticle;
38 class TParticle;
39 
40 #include "AliEMCALRecoUtils.h"
41 
42 class AliCalorimeterUtils : public TObject {
43 
44  public:
45  AliCalorimeterUtils() ; // ctor
46  virtual ~AliCalorimeterUtils() ;//virtual dtor
47 
48  virtual void InitParameters();
49  virtual void Print(const Option_t * opt) const ;
50 
51  virtual Int_t GetDebug() const { return fDebug ; }
52  virtual void SetDebug(Int_t d) { fDebug = d ; }
53 
54  //virtual void Init();
55 
56  // Cluster contents
57 
58  Bool_t AreNeighbours(Int_t calo, Int_t absId1, Int_t absId2) const ;
59 
60  Bool_t IsClusterSharedByTwoSuperModules(const AliEMCALGeometry * geom,
61  AliVCluster* cluster);
62 
63  Bool_t GetFECCorrelatedCellAbsId(Int_t absId, Int_t absIdCorr[4]) const ;
64 
65  Bool_t IsAbsIDsFromTCard(Int_t absId1, Int_t absId2,
66  Int_t & rowDiff, Int_t & colDiff) const ;
67 
68  Int_t GetNumberOfLocalMaxima(AliVCluster* cluster, AliVCaloCells* cells) ;
69 
70  Int_t GetNumberOfLocalMaxima(AliVCluster* cluster, AliVCaloCells* cells,
71  Int_t *absIdList, Float_t *maxEList) ;
72 
73  Float_t GetLocalMaximaCutE() const { return fLocMaxCutE ; }
74  void SetLocalMaximaCutE(Float_t cut) { fLocMaxCutE = cut ; }
75 
78 
79  Int_t GetMaxEnergyCell(AliVCaloCells* cells, AliVCluster* clu, Float_t & fraction) const ;
80 
81  void SplitEnergy(Int_t absId1, Int_t absId2, AliVCluster *cluster, AliVCaloCells* cells,
82  //Float_t & e1, Float_t & e2,
83  AliAODCaloCluster *cluster1, AliAODCaloCluster *cluster2,
84  Int_t nMax, Int_t eventNumber = 0);//, Int_t *absIdList, Float_t *maxEList,
85 
86  void SwitchOnClusterPlot() { fPlotCluster = kTRUE ; }
87  void SwitchOffClusterPlot() { fPlotCluster = kFALSE ; }
88 
89  Float_t GetMCECellClusFracCorrection(Float_t eCell, Float_t eCluster) const ;
91 
95 
96  //------------------------------
97  // Calorimeters Geometry Methods
98  //------------------------------
99 
100  AliEMCALGeometry * GetEMCALGeometry() const { return fEMCALGeo ; }
103  void InitEMCALGeometry() ;
105 
106  AliPHOSGeoUtils * GetPHOSGeometry() const { return fPHOSGeo ; }
107  TString PHOSGeometryName() const { return fPHOSGeoName ; }
108  void SetPHOSGeometryName(TString name) { fPHOSGeoName = name ; }
109  void InitPHOSGeometry() ;
111 
112  void AccessGeometry(AliVEvent* inputEvent) ;
113 
115  TString path = ""){
116  fImportGeometryFromFile = import ;
117  fImportGeometryFilePath = path ; } // EMCAL
118 
119  Bool_t IsMCParticleInCalorimeterAcceptance(Int_t calo, TParticle* particle);
120  Bool_t IsMCParticleInCalorimeterAcceptance(Int_t calo, AliAODMCParticle* particle);
122 
125  void SetEMCALGeometryMatrixInSM(TGeoHMatrix* m, Int_t i) { fEMCALMatrix[i] = m ; }
126 
129  void SetPHOSGeometryMatrixInSM(TGeoHMatrix* m, Int_t i) { fPHOSMatrix[i] = m ; }
130 
131  void GetEMCALSubregion(AliVCluster* clus, AliVCaloCells* cells,
132  Int_t & regEta, Int_t & regPhi) const ;
133 
134  //------------------------------
135  // Bad channels
136  //------------------------------
137 
140  fEMCALRecoUtils->SwitchOnBadChannelsRemoval();
143  fEMCALRecoUtils->SwitchOffBadChannelsRemoval() ; }
144 
146  void SwitchOnDistToBadChannelRecalculation () { fEMCALRecoUtils->SwitchOnDistToBadChannelRecalculation() ; }
147  void SwitchOffDistToBadChannelRecalculation() { fEMCALRecoUtils->SwitchOffDistToBadChannelRecalculation(); }
148 
150 
151  Int_t GetEMCALChannelStatus(Int_t iSM , Int_t iCol, Int_t iRow) const {
152  return fEMCALRecoUtils->GetEMCALChannelStatus(iSM,iCol,iRow); }//Channel is ok by default
153 
154  Int_t GetPHOSChannelStatus (Int_t imod, Int_t iCol, Int_t iRow) const {
155  if(fPHOSBadChannelMap) return (Int_t) ((TH2I*)fPHOSBadChannelMap->At(imod))->GetBinContent(iCol,iRow);
156  else return 0 ; }//Channel is ok by default
157 
158  void SetEMCALChannelStatus(Int_t iSM , Int_t iCol, Int_t iRow, Double_t c = 1) {
159  fEMCALRecoUtils->SetEMCALChannelStatus(iSM,iCol,iRow,c) ; }
160 
161  void SetPHOSChannelStatus (Int_t imod, Int_t iCol, Int_t iRow, Double_t c = 1) {
163  ((TH2I*)fPHOSBadChannelMap->At(imod))->SetBinContent(iCol,iRow,c) ; }
164 
165  void SetEMCALChannelStatusMap(Int_t iSM , TH2I* h) { fEMCALRecoUtils->SetEMCALChannelStatusMap(iSM,h) ; }
166  void SetPHOSChannelStatusMap(Int_t imod , TH2I* h) { fPHOSBadChannelMap ->AddAt(h,imod) ; }
167 
168  TH2I * GetEMCALChannelStatusMap(Int_t iSM) const { return fEMCALRecoUtils->GetEMCALChannelStatusMap(iSM) ; }
169  TH2I * GetPHOSChannelStatusMap(Int_t imod) const { return (TH2I*)fPHOSBadChannelMap->At(imod) ; }
170 
171  void SetEMCALChannelStatusMap(TObjArray *map) { fEMCALRecoUtils->SetEMCALChannelStatusMap(map) ; }
173 
174  Bool_t ClusterContainsBadChannel(Int_t calo,UShort_t* cellList, Int_t nCells);
175  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
176 
177  // Mask clusters in front of frame, EMCAL only
180  if(n > fNMaskCellColumns) { delete [] fMaskCellColumns ; fMaskCellColumns = new Int_t[n] ; }
181  fNMaskCellColumns = n ; }
182  void SetMaskCellColumn(Int_t ipos, Int_t icol) {
183  if(ipos < fNMaskCellColumns) fMaskCellColumns[ipos] = icol;
184  else printf("Not set, position larger than allocated set size first") ; }
185  Bool_t MaskFrameCluster(Int_t iSM, Int_t ieta) const ;
186 
187  //------------------------------
188  // Calorimeter indexes information
189  //------------------------------
190 
191  Int_t GetModuleNumber(AliAODPWG4Particle * particle, AliVEvent* inputEvent) const;
192  Int_t GetModuleNumber(AliVCluster * cluster) const;
193  Int_t GetModuleNumberCellIndexes(Int_t absId, Int_t calo, Int_t & icol, Int_t & irow, Int_t &iRCU) const ;
194  Int_t GetModuleNumberCellIndexesAbsCaloMap(Int_t absId, Int_t calo, Int_t & icol, Int_t & irow, Int_t &iRCU,
195  Int_t & icolAbs, Int_t & irowAbs) const ;
196 
197  //------------------------------
198  // Modules fiducial region
199  //------------------------------
200 
201  Bool_t CheckCellFiducialRegion(AliVCluster* cluster, AliVCaloCells* cells) const ;
202  Bool_t CheckCellFiducialRegion(AliVCluster* cluster, AliVCaloCells* cells, AliVEvent* , Int_t )
203  { return CheckCellFiducialRegion(cluster, cells) ; } // Stupid thing to do but just to avoid compilation break in AliTrackComparisonESD while I find the authors
206  void SetNumberOfCellsFromEMCALBorder(Int_t n) { fEMCALRecoUtils->SetNumberOfCellsFromEMCALBorder(n) ; }
207  Int_t GetNumberOfCellsFromEMCALBorder() const { return fEMCALRecoUtils->GetNumberOfCellsFromEMCALBorder(); }
208  void SwitchOnNoFiducialBorderInEMCALEta0() { fEMCALRecoUtils->SwitchOnNoFiducialBorderInEMCALEta0() ; }
209  void SwitchOffNoFiducialBorderInEMCALEta0() { fEMCALRecoUtils->SwitchOffNoFiducialBorderInEMCALEta0() ; }
210  Bool_t IsEMCALNoBorderAtEta0() const { return fEMCALRecoUtils->IsEMCALNoBorderAtEta0() ; }
211 
212  //------------------------------
213  // Recalibration
214  //------------------------------
215 
218  InitPHOSRecalibrationFactors(); fEMCALRecoUtils->SwitchOnRecalibration() ; }
220  fEMCALRecoUtils->SwitchOffRecalibration() ; }
221 
223 
225  return fEMCALRecoUtils->GetEMCALChannelRecalibrationFactor(iSM , iCol, iRow) ; }
226 
229  return (Float_t) ((TH2F*)fPHOSRecalibrationFactors->At(imod))->GetBinContent(iCol,iRow);
230  else return 1 ; }
231 
233  fEMCALRecoUtils->SetEMCALChannelRecalibrationFactor(iSM,iCol,iRow,c) ; }
234 
237  ((TH2F*)fPHOSRecalibrationFactors->At(imod))->SetBinContent(iCol,iRow,c) ; }
238 
239  void SetEMCALChannelRecalibrationFactors(Int_t iSM , TH2F* h) { fEMCALRecoUtils->SetEMCALChannelRecalibrationFactors(iSM,h) ; }
241 
242  TH2F * GetEMCALChannelRecalibrationFactors(Int_t iSM) const { return fEMCALRecoUtils->GetEMCALChannelRecalibrationFactors(iSM) ; }
244 
245  void SetEMCALChannelRecalibrationFactors(TObjArray *map) { fEMCALRecoUtils->SetEMCALChannelRecalibrationFactors(map) ; }
247 
248  void RecalibrateCellTime (Double_t & time, Int_t calo, Int_t absId, Int_t bunchCrossNumber) const ;
249  void RecalibrateCellTimeL1Phase(Double_t & time, Int_t calo, Int_t iSM, Int_t bunchCrossNumber) const;
250  void RecalibrateCellAmplitude(Float_t & amp, Int_t calo, Int_t absId) const ;
251  Float_t RecalibrateClusterEnergy(AliVCluster* cluster, AliVCaloCells * cells);
252  Float_t RecalibrateClusterEnergyWeightCell(AliVCluster* cluster, AliVCaloCells * cells, Float_t energyOrg);
253 
254  //------------------------------
255  // Run dependent energy calibrations (EMCAL)
256  //------------------------------
257 
260 
261  //------------------------------
262  // Time Recalibration (EMCAL)
263  //------------------------------
264 
265  Bool_t IsTimeRecalibrationOn() const { return fEMCALRecoUtils->IsTimeRecalibrationOn() ; }
266  void SwitchOffTimeRecalibration() { fEMCALRecoUtils->SwitchOffTimeRecalibration() ; }
267  void SwitchOnTimeRecalibration() { fEMCALRecoUtils->SwitchOnTimeRecalibration() ; }
268 
270  { return fEMCALRecoUtils->GetEMCALChannelTimeRecalibrationFactor(bc, absID) ; }
271 
273  { fEMCALRecoUtils->SetEMCALChannelTimeRecalibrationFactor(bc, absID, c) ; }
274 
276  void SetEMCALChannelTimeRecalibrationFactors(TObjArray *map) { fEMCALRecoUtils->SetEMCALChannelTimeRecalibrationFactors(map) ; }
277  void SetEMCALChannelTimeRecalibrationFactors(Int_t bc , TH1F* h) { fEMCALRecoUtils->SetEMCALChannelTimeRecalibrationFactors(bc , h) ; }
278 
279  //------------------------------
280  // Time Recalibration - L1 phase (EMCAL)
281  //------------------------------
282  Bool_t IsL1PhaseInTimeRecalibrationOn() const { return fEMCALRecoUtils->IsL1PhaseInTimeRecalibrationOn() ; }
283  void SwitchOffL1PhaseInTimeRecalibration() { fEMCALRecoUtils->SwitchOffL1PhaseInTimeRecalibration() ; }
284  void SwitchOnL1PhaseInTimeRecalibration() { fEMCALRecoUtils->SwitchOnL1PhaseInTimeRecalibration() ; }
285 
286  Int_t GetEMCALL1PhaseInTimeRecalibrationForSM(Int_t iSM) const { return fEMCALRecoUtils->GetEMCALL1PhaseInTimeRecalibrationForSM(iSM) ; }
287  void SetEMCALL1PhaseInTimeRecalibrationForSM(Int_t iSM, Int_t c = 0) { return fEMCALRecoUtils->SetEMCALL1PhaseInTimeRecalibrationForSM(iSM,c) ; }
288 
289  TH1C * GetEMCALL1PhaseInTimeRecalibrationForAllSM()const { return fEMCALRecoUtils->GetEMCALL1PhaseInTimeRecalibrationForAllSM() ; }
290  void SetEMCALL1PhaseInTimeRecalibrationForAllSM(TObjArray *map) { fEMCALRecoUtils->SetEMCALL1PhaseInTimeRecalibrationForAllSM(map) ; }
291  void SetEMCALL1PhaseInTimeRecalibrationForAllSM(TH1C* h) { fEMCALRecoUtils->SetEMCALL1PhaseInTimeRecalibrationForAllSM(h) ; }
292 
293  //------------------------------
294  // EMCAL specific utils for the moment
295  //------------------------------
296 
297  void SetEMCALRecoUtils(AliEMCALRecoUtils * ru) { fEMCALRecoUtils = ru ; }
298  AliEMCALRecoUtils* GetEMCALRecoUtils() const { return fEMCALRecoUtils ; }
299 
303  void CorrectClusterEnergy(AliVCluster *cl);
304 
308  void RecalculateClusterPosition(AliVCaloCells* cells, AliVCluster* clu);
309  void RecalculateClusterShowerShapeParameters(AliVCaloCells* cells, AliVCluster* clu){
310  fEMCALRecoUtils->RecalculateClusterShowerShapeParameters((AliEMCALGeometry*)fEMCALGeo, cells, clu) ; }
311 
312  void RecalculateClusterDistanceToBadChannel(AliVCaloCells* cells, AliVCluster* clu){
313  fEMCALRecoUtils->RecalculateClusterDistanceToBadChannel((AliEMCALGeometry*)fEMCALGeo, cells, clu) ; }
314 
315  void RecalculateClusterPID(AliVCluster* clu) { fEMCALRecoUtils->RecalculateClusterPID(clu) ; }
316 
317  //------------------------------
318  // *** Track Matching ***
319  //------------------------------
320 
321  AliVTrack * GetMatchedTrack(AliVCluster * cluster, AliVEvent * event, Int_t index = -1) const ;
322 
323  // Recalculation
324 
325  void RecalculateClusterTrackMatching(AliVEvent * event,
326  TObjArray* clusterArray = 0x0,
327  AliMCEvent* mc = 0x0) ;
328 
329  void GetMatchedResiduals(Int_t index, Float_t &dR, Float_t &dZ) {
330  if (fRecalculateMatching) fEMCALRecoUtils->GetMatchedResiduals(index,dR,dZ) ; }
331 
332  //------------------------------
333  // This could be used for PHOS ...
334  //------------------------------
335 
339 
340  Float_t GetCutZ() const { return fCutZ ; } // PHOS only
341  void SetCutZ(Float_t z) { fCutZ = z ; } // PHOS only
342 
343 
344  Float_t GetCutR() const { return fCutR ; } // PHOS and EMCAL
345  void SetCutR(Float_t r) { fCutR = r ; // PHOS and EMCA
346  fEMCALRecoUtils->SetCutR(r) ; }
347 
348  Float_t GetCutEta() const { return fCutEta ; } // EMCAL only
349  void SetCutEta(Float_t e) { fCutEta = e ; // EMCAL only
350  fEMCALRecoUtils->SetCutEta(e) ; }
351 
352  Float_t GetCutPhi() const { return fCutPhi ; } // EMCAL only
353  void SetCutPhi(Float_t p) { fCutPhi = p ; // EMCAL only
354  fEMCALRecoUtils->SetCutPhi(p) ; }
355 
356  //------------------------------
357  // OADB options settings
358  //------------------------------
359 
360  void AccessOADB(AliVEvent * event) ;
361 
362  TString GetPass() ;
363 
364  void SwitchOnEMCALOADB() { fOADBForEMCAL = kTRUE ; }
365  void SwitchOffEMCALOADB() { fOADBForEMCAL = kFALSE ; }
366 
367  void SwitchOnPHOSOADB() { fOADBForPHOS = kTRUE ; }
368  void SwitchOffPHOSOADB() { fOADBForPHOS = kFALSE ; }
369 
372 
373  //------------------------------
374  // Other settings
375  //------------------------------
376 
379 
380  void SetRunNumber(Int_t run) { fRunNumber = run ; }
381  Int_t GetRunNumber() const { return fRunNumber ; }
382 
383  private:
384 
386 
388 
390 
391  AliEMCALGeometry * fEMCALGeo ;
392 
393  AliPHOSGeoUtils * fPHOSGeo ;
394 
396 
398 
400 
401  TGeoHMatrix * fEMCALMatrix[22];
402 
404 
405  TGeoHMatrix * fPHOSMatrix[5];
406 
408 
410 
412 
414 
416  Int_t * fMaskCellColumns; //[fNMaskCellColumns]
417 
419 
421 
423 
424  AliEMCALRecoUtils* fEMCALRecoUtils;
425 
427 
429 
431 
433 
435 
437 
439 
441 
443 
445 
447 
449 
451 
453 
455 
457 
459 
461 
463 
465 
467 
470 
473 
475  ClassDef(AliCalorimeterUtils,19) ;
477 
478 } ;
479 
480 
481 #endif //ALICALORIMETERUTILS_H
482 
483 
484 
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.
double Double_t
Definition: External.C:58
void InitPHOSRecalibrationFactors()
Init PHOS recalibration factors.
void SetRunNumber(Int_t run)
Bool_t IsRecalculationOfClusterTrackMatchingOn() const
Definition: External.C:236
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
Bool_t IsAbsIDsFromTCard(Int_t absId1, Int_t absId2, Int_t &rowDiff, Int_t &colDiff) 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
Int_t GetEMCALL1PhaseInTimeRecalibrationForSM(Int_t iSM) const
TString EMCALGeometryName() const
void SetEMCALL1PhaseInTimeRecalibrationForAllSM(TObjArray *map)
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)
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.
TCanvas * c
Definition: TestFitELoss.C:172
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.
void SetEMCALL1PhaseInTimeRecalibrationForAllSM(TH1C *h)
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.
TH1C * GetEMCALL1PhaseInTimeRecalibrationForAllSM() const
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
int Int_t
Definition: External.C:63
void RecalculateClusterShowerShapeParameters(AliVCaloCells *cells, AliVCluster *clu)
void SwitchOffMCECellClusFracCorrection()
void SetNMaskCellColumns(Int_t n)
Float_t GetLocalMaximaCutEDiff() const
Bool_t IsL1PhaseInTimeRecalibrationOn() const
Bool_t fRecalculateMatching
Recalculate cluster position.
Bool_t MaskFrameCluster(Int_t iSM, Int_t ieta) const
float Float_t
Definition: External.C:68
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
void RecalculateClusterTrackMatching(AliVEvent *event, TObjArray *clusterArray=0x0, AliMCEvent *mc=0x0)
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
void RecalibrateCellTimeL1Phase(Double_t &time, Int_t calo, Int_t iSM, Int_t bunchCrossNumber) const
Recalculate time L1 phase shift if time recalibration available for EMCAL.
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.
unsigned short UShort_t
Definition: External.C:28
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
const char Option_t
Definition: External.C:48
Int_t GetEMCALChannelStatus(Int_t iSM, Int_t iCol, Int_t iRow) const
Float_t fCutPhi
dPhi cut on matching (EMCAL).
bool Bool_t
Definition: External.C:53
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 SetEMCALL1PhaseInTimeRecalibrationForSM(Int_t iSM, Int_t c=0)
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 SwitchOffL1PhaseInTimeRecalibration()
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)
Bool_t GetFECCorrelatedCellAbsId(Int_t absId, Int_t absIdCorr[4]) const
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
Int_t GetModuleNumberCellIndexesAbsCaloMap(Int_t absId, Int_t calo, Int_t &icol, Int_t &irow, Int_t &iRCU, Int_t &icolAbs, Int_t &irowAbs) const