AliPhysics  ec7afe5 (ec7afe5)
 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 
8 class TStopwatch;
9 
35  public:
44  };
45 
47  static const std::map <std::string, AliEmcalCorrectionClusterizer::EmbeddedCellEnergyType> fgkEmbeddedCellEnergyTypeMap;
48 
50  static const std::map <std::string, AliEMCALRecParam::AliEMCALClusterizerFlag> fgkClusterizerTypeMap;
51 
54 
55  // Sets up and runs the task
58  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  void ClearEMCalClusters();
72 
73  TH1F* fHistCPUTime;
74  TH1F* fHistRealTime;
76 
77  TClonesArray *fDigitsArr;
79  AliEMCALRecParam *fRecParam;
80  AliEMCALClusterizer *fClusterizer;
81  AliEMCALAfterBurnerUF *fUnfolder;
86  TGeoHMatrix *fGeomMatrix[AliEMCALGeoParams::fgkEMCALModules];
88  AliEMCALCalibData *fCalibData;
89  AliCaloCalibPedestal *fPedestalData;
100 
101  // MC labels
102  static const Int_t fgkTotalCellNumber = 17664 ;
103 
106 
108  // 0 - get the MC label stored in cells (not available for productions done with aliroot < v5-02-Rev09)
109  // 1 - assign to the cell the MC label of the cluster
110 
112  // stored in ESDs/AODs to set the cell MC labels
113 
115 
118 
119  TClonesArray *fCaloClusters;
122 
123  private:
126 
127  // Allows the registration of the class so that it is availble to be used by the correction task.
129 
131  ClassDef(AliEmcalCorrectionClusterizer, 3); // EMCal correction clusterizer component
133 };
134 
135 #endif /* ALIEMCALCORRECTIONCLUSTERIZER_H */
Bool_t fTestPatternInput
Use test pattern as input instead of cells.
TStopwatch * fTimer
! Timer for the Run() function (event loop)
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.
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)
EmbeddedCellEnergyType fEmbeddedCellEnergyType
Which selection of energy to use when embedding cells.
Bool_t fLoadCalib
access calib object from OCDB (def=off)
! Standard mode for all data where no cells are embedded
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.
static const std::map< std::string, AliEmcalCorrectionClusterizer::EmbeddedCellEnergyType > fgkEmbeddedCellEnergyTypeMap
Relates string to the embedded cell energy type enumeration for YAML configuration.
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)
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
static const std::map< std::string, AliEMCALRecParam::AliEMCALClusterizerFlag > fgkClusterizerTypeMap
Relates string to the clusterizer type enumeration for YAML configuration.
TH1F * fHistCPUTime
! CPU time for the Run() function (event loop)
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
EmbeddedCellEnergyType
Select which part of the embedded cell energy to use.
bool Bool_t
Definition: External.C:53
TH1F * fHistRealTime
! Real time for the Run() function (event loop)
TClonesArray * fDigitsArr
!digits array