AliPhysics  dc874a1 (dc874a1)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliEmcalCorrectionClusterizer.h
Go to the documentation of this file.
1 #ifndef ALIEMCALCORRECTIONCLUSTERIZER_H
2 #define ALIEMCALCORRECTIONCLUSTERIZER_H
3 
5 
6 #include "AliEMCALRecParam.h"
7 
33  public:
35  kFEEData = 0,
42  };
43 
44 #if !(defined(__CINT__) || defined(__MAKECINT__))
45  std::map <std::string, AliEMCALRecParam::AliEMCALClusterizerFlag> clusterizerTypeMap = {
46  {"kClusterizerv1", AliEMCALRecParam::kClusterizerv1 },
47  {"kClusterizerNxN", AliEMCALRecParam::kClusterizerNxN },
48  {"kClusterizerv2", AliEMCALRecParam::kClusterizerv2 },
49  {"kClusterizerFW", AliEMCALRecParam::kClusterizerFW }
50  };
51 #endif
52 
55 
56  // Sets up and runs the task
59  Bool_t Run();
60 
61 protected:
62  void Clusterize();
63  void FillDigitsArray();
64  void Init();
65  void RecPoints2Clusters(TClonesArray *clus);
66  void UpdateClusters();
67  void CalibrateClusters();
68 
69  void RemapMCLabelForAODs(Int_t &label);
71 
72  TClonesArray *fDigitsArr;
74  AliEMCALRecParam *fRecParam;
75  AliEMCALClusterizer *fClusterizer;
76  AliEMCALAfterBurnerUF *fUnfolder;
81  TGeoHMatrix *fGeomMatrix[AliEMCALGeoParams::fgkEMCALModules];
83  AliEMCALCalibData *fCalibData;
84  AliCaloCalibPedestal *fPedestalData;
94 
95  // MC labels
96  static const Int_t fgkTotalCellNumber = 17664 ;
97 
100 
102  // 0 - get the MC label stored in cells (not available for productions done with aliroot < v5-02-Rev09)
103  // 1 - assign to the cell the MC label of the cluster
104 
106  // stored in ESDs/AODs to set the cell MC labels
107 
109 
112 
113  TClonesArray *fCaloClusters;
116 
117  private:
120 
121  // Allows the registration of the class so that it is availble to be used by the correction task.
123 
125  ClassDef(AliEmcalCorrectionClusterizer, 1); // EMCal correction clusterizer component
127 };
128 
129 #endif /* ALIEMCALCORRECTIONCLUSTERIZER_H */
Bool_t fRemapMCLabelForAODs
Remap AOD cells MC label.
Int_t fShiftPhi
shift in phi (for FixedWindowsClusterizer)
static const Int_t fgkTotalCellNumber
Maximum number of cells in EMCAL/DCAL: (48*24)*(10+4/3.+6*2/3.)
TClonesArray * fCaloClusters
!calo clusters array
AliEMCALRecParam * fRecParam
reconstruction parameters container
Bool_t fSetCellMCLabelFromEdepFrac
For MC generated with aliroot > v5-07-21, check the EDep information.
std::map< std::string, AliEMCALRecParam::AliEMCALClusterizerFlag > clusterizerTypeMap
TString fGeomName
name of geometry to use.
Int_t fCellLabels[fgkTotalCellNumber]
Array with MC label/map.
AliEMCALAfterBurnerUF * fUnfolder
!unfolding procedure
Bool_t fLoadPed
access ped object from OCDB (def=off)
Bool_t fTRUShift
shifting inside a TRU (true) or through the whole calorimeter (false) (for FixedWindowsClusterizer) ...
Int_t fShiftEta
shift in eta (for FixedWindowsClusterizer)
TObjArray * fClusterArr
!recpoints array
Int_t fNPhi
nPhi (for FixedWindowsClusterizer)
Bool_t fLoadCalib
access calib object from OCDB (def=off)
AliCaloCalibPedestal * fPedestalData
EMCAL pedestal.
TGeoHMatrix * fGeomMatrix[AliEMCALGeoParams::fgkEMCALModules]
geometry matrices with alignments
AliEMCALClusterizer * fClusterizer
!clusterizer
int Int_t
Definition: External.C:63
Base class for correction components in the EMCal correction framework.
EMCal clusterizer component in the EMCal correction framework.
Int_t fSetCellMCLabelFromCluster
Use cluster MC label as cell label:
Bool_t fRecalShowerShape
switch for recalculation of the shower shape
Bool_t fSubBackground
subtract background if true (def=off)
InputCellType fInputCellType
input cells type to make clusters
Int_t fNEta
nEta (for FixedWinoswsClusterizer)
AliEmcalCorrectionClusterizer & operator=(const AliEmcalCorrectionClusterizer &)
Bool_t fGeomMatrixSet
set geometry matrices only once, for the first event.
TString fOCDBpath
path with OCDB location
static RegisterCorrectionComponent< AliEmcalCorrectionClusterizer > reg
Bool_t fRecalDistToBadChannels
recalculate distance to bad channel
AliEMCALCalibData * fCalibData
EMCAL calib data.
Int_t fOrgClusterCellId[fgkTotalCellNumber]
Array ID of cluster to which the cell belongs in unmodified clusters.
Bool_t fJustUnfold
just unfold, do not recluster
Bool_t fLoadGeomMatrices
matrices from configuration, not geometry.root nor ESDs/AODs
bool Bool_t
Definition: External.C:53
TClonesArray * fDigitsArr
!digits array