AliPhysics  eb0e5d9 (eb0e5d9)
ConfigureEMCALRecoUtils.C
Go to the documentation of this file.
1 //#ifndef CONFIGUREEMCALRECOUTILS_C
2 //#define CONFIGUREEMCALRECOUTILS_C
3 
14 
15 /*
16 #if !defined(__CINT__) || defined(__MAKECINT__) || !defined(__CLING__)
17 
18 #include "AliEMCALRecoUtils.h"
19 
20 #endif
21 */
22 
34 
37  Bool_t bMC = kFALSE,
38  Bool_t bExotic= kTRUE,
39  Bool_t bNonLin= kFALSE,
40  Bool_t bRecalE= kTRUE,
41  Bool_t bBad = kTRUE,
42  Bool_t bRecalT= kTRUE,
43  Int_t debug = -1)
44 {
45  if ( debug > 0 ) printf("ConfigureEMCALRecoUtils() - **** Start ***\n");
46 
47  // Exotic cells removal
48 
49  if(bExotic)
50  {
51  if ( debug > 0 ) printf("ConfigureEMCALRecoUtils() - Remove exotics in EMCAL\n");
52  reco->SwitchOnRejectExoticCell() ;
54 
55 // reco->SetExoticCellDiffTimeCut(50); // If |t cell max - t cell in cross| > 50 do not add its energy, avoid
56  reco->SetExoticCellFractionCut(0.97); // 1-Ecross/Ecell > 0.97 -> out
57  reco->SetExoticCellMinAmplitudeCut(4.); // 4 GeV
58  }
59 
60  // Recalibration factors
61 
62  if(bRecalE && ! bMC)
63  {
64  if ( debug > 0 ) printf("ConfigureEMCALRecoUtils() - Switch on energy recalibration in EMCAL\n");
65  reco->SwitchOnRecalibration();
66  reco->SwitchOnRunDepCorrection();
67  }
68 
69  // Remove EMCAL hot channels
70 
71  if(bBad)
72  {
73  if ( debug > 0 ) printf("ConfigureEMCALRecoUtils() - Switch on bad channels removal in EMCAL\n");
76  }
77 
78  // *** Time recalibration settings ***
79 
80  if(bRecalT && ! bMC)
81  {
82  if ( debug > 0 ) printf("ConfigureEMCALRecoUtils() - Switch on time recalibration in EMCAL\n");
85  }
86 
87  // Recalculate position with method
88 
90 
91  // Non linearity
92 
93  if( bNonLin )
94  {
95  if(!bMC)
96  {
97  if ( debug > 0 ) printf("ConfigureEMCALRecoUtils() xxx SET Non linearity correction kBeamTestCorrected xxx\n");
99  }
100  else
101  {
102  if ( debug > 0 ) printf("ConfigureEMCALRecoUtils() xxx SET Non linearity correction kPi0MCv3 xxx\n");
104  }
105  }
106  else
107  {
108  if ( debug > 0 ) printf("ConfigureEMCALRecoUtils() xxx DON'T SET Non linearity correction xxx\n");
110  }
111 
112 }
113 
114 //#endif //CONFIGUREEMCALRECOUTILS_C
115 
void SetNonLinearityFunction(Int_t fun)
Some utilities for cluster and cell treatment.
void SwitchOnL1PhaseInTimeRecalibration()
int Int_t
Definition: External.C:63
void SetPositionAlgorithm(Int_t alg)
void SwitchOnDistToBadChannelRecalculation()
void ConfigureEMCALRecoUtils(AliEMCALRecoUtils *reco, Bool_t bMC=kFALSE, Bool_t bExotic=kTRUE, Bool_t bNonLin=kFALSE, Bool_t bRecalE=kTRUE, Bool_t bBad=kTRUE, Bool_t bRecalT=kTRUE, Int_t debug=-1)
void SwitchOnRejectExoticCluster()
void SetExoticCellMinAmplitudeCut(Float_t ma)
void SetExoticCellFractionCut(Float_t f)
bool Bool_t
Definition: External.C:53