AliPhysics  63d3444 (63d3444)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEMCALClusterize Class Reference

Reclusterize EMCal clusters, put them in a new branch for other following analysis. More...

#include <AliAnalysisTaskEMCALClusterize.h>

Inheritance diagram for AliAnalysisTaskEMCALClusterize:

Public Member Functions

 AliAnalysisTaskEMCALClusterize ()
 Constructor. More...
 
 AliAnalysisTaskEMCALClusterize (const char *name)
 
virtual ~AliAnalysisTaskEMCALClusterize ()
 Destructor. More...
 
virtual void UserCreateOutputObjects ()
 
virtual void UserExec (Option_t *option)
 
virtual void Init ()
 
virtual void LocalInit ()
 
Bool_t AcceptEventEMCAL ()
 
void SwitchOnSelectEMCALEvent ()
 
void SwitchOffSelectEMCALEvent ()
 
void SetEMCALEnergyCut (Float_t cut)
 
void SetEMCALNcellsCut (Int_t cut)
 
void SwitchOnInputAODFilter ()
 
void SwitchOffInputAODFilter ()
 
void CheckAndGetEvent ()
 
Bool_t IsExoticEvent ()
 
void SwitchOnExoticEventsRemoval ()
 
void SwitchOffExoticEventsRemoval ()
 
Bool_t IsLEDEvent (const Int_t run)
 Check if event is LED, is so remove it. Affected LHC11a runs. More...
 
void SwitchOnLEDEventsRemoval ()
 
void SwitchOffLEDEventsRemoval ()
 
Bool_t AccessOCDB ()
 
void SwitchOnAccessOCDB ()
 
void SwitchOffAccessOCDB ()
 
void SetOCDBPath (const char *path)
 
void InitGeometry ()
 
void SetGeometryName (TString &name)
 
TString GeometryName () const
 
void SwitchOnLoadOwnGeometryMatrices ()
 
void SwitchOffLoadOwnGeometryMatrices ()
 
void SetGeometryMatrixInSM (TGeoHMatrix *m, Int_t i)
 
void SetImportGeometryFromFile (Bool_t im, TString pa="")
 
void SetAODBranchName (TString &name)
 
void FillAODFile (Bool_t yesno)
 
void FillAODCaloCells ()
 Put calo cells in standard branch. More...
 
void FillAODHeader ()
 Put event header information in standard AOD branch. More...
 
void SwitchOnFillAODHeader ()
 
void SwitchOffFillAODHeader ()
 
void SwitchOnFillAODCaloCells ()
 
void SwitchOffFillAODCaloCells ()
 
void SwitchOnRecalibrateWithClusterTime ()
 
void SwitchOffRecalibrateWithClusterTime ()
 
AliEMCALRecParam * GetRecParam ()
 
AliEMCALRecoUtils * GetRecoUtils ()
 
void InitClusterization ()
 
void ClusterizeCells ()
 
void ClusterUnfolding ()
 Take the event clusters and unfold them. More...
 
void JustUnfold (Bool_t yesno)
 
void SetConfigFileName (TString name)
 
void SetMaxEvent (Int_t max)
 
void SwitchOnTrackMatching ()
 
void SwitchOffTrackMatching ()
 
void SwitchOnCellEnergySelection ()
 
void SwitchOffCellEnergySelection ()
 
void SetCellCuts (Float_t e, Float_t frac)
 
void SetRejectBelowThreshold (Bool_t reject)
 
void AccessOADB ()
 
TString GetPass ()
 Get or guess pass number/string from path of filename. More...
 
void SwitchOnEMCALOADB ()
 
void SwitchOffEMCALOADB ()
 
void SetOADBFilePath (TString path)
 
void SetConstantTimeShift (Float_t shift)
 
AliCentrality * GetCentrality () const
 
AliMultSelection * GetMultSelCen () const
 
void SwitchOnAliCentrality ()
 
void SwitchOffAliCentrality ()
 
void SetCentralityClass (TString name)
 
TString GetCentralityClass () const
 
Float_t GetEventCentrality () const
 Get centrality/multiplicity percentile. More...
 
void SetCentralityBin (Int_t min, Int_t max)
 
Float_t GetCentralityBin (Int_t i) const
 
void RemapMCLabelForAODs (Int_t &label)
 
void SwitchOnRemapMCLabelForAODs ()
 
void SwitchOffRemapMCLabelForAODs ()
 
void SetClustersMCLabelFrom2SelectedLabels (AliEMCALRecPoint *recPoint, AliAODCaloCluster *clus)
 
void SetClustersMCLabelFromOriginalClusters (AliAODCaloCluster *clus)
 
void SwitchOnUseClusterMCLabelForCell (Int_t opt=2)
 
void SwitchOffUseClusterMCLabelForCell ()
 
void SwitchOnUseMCEdepFracLabelForCell ()
 
void SwitchOffUseMCEdepFracLabelForCell ()
 

Private Member Functions

virtual void FillCaloClusterInEvent ()
 
virtual void RecPoints2Clusters ()
 
virtual void ResetArrays ()
 Reset arrays containing information for all possible cells. More...
 
 AliAnalysisTaskEMCALClusterize (const AliAnalysisTaskEMCALClusterize &)
 Copy constructor not implemented. More...
 
AliAnalysisTaskEMCALClusterizeoperator= (const AliAnalysisTaskEMCALClusterize &)
 Assignment operator not implemented. More...
 

Private Attributes

AliVEvent * fEvent
 Event. More...
 
AliEMCALGeometry * fGeom
 EMCAL geometry. More...
 
TString fGeomName
 Name of geometry to use. More...
 
TGeoHMatrix * fGeomMatrix [22]
 Geometry matrices with alignments. More...
 
Bool_t fGeomMatrixSet
 Set geometry matrices only once, for the first event. More...
 
Bool_t fLoadGeomMatrices
 Matrices set from configuration, not get from geometry.root or from ESDs/AODs. More...
 
TString fOCDBpath
 Path with OCDB location. More...
 
Bool_t fAccessOCDB
 Need to access info from OCDB (not really) More...
 
TClonesArray * fDigitsArr
 ! Digits array More...
 
TObjArrayfClusterArr
 ! Recpoints array More...
 
TObjArrayfCaloClusterArr
 ! CaloClusters array More...
 
AliEMCALRecParam * fRecParam
 Reconstruction parameters container. More...
 
AliEMCALClusterizer * fClusterizer
 ! EMCAL clusterizer More...
 
AliEMCALAfterBurnerUF * fUnfolder
 ! Unfolding procedure More...
 
Bool_t fJustUnfold
 Just unfold, do not recluster. More...
 
TClonesArray * fOutputAODBranch
 ! AOD Branch with output clusters More...
 
TString fOutputAODBranchName
 New of output AOD branch. More...
 
Bool_t fOutputAODBranchSet
 Set the AOD clusters branch in the input event once. More...
 
Bool_t fFillAODFile
 
Bool_t fFillAODHeader
 Copy header to standard branch. More...
 
Bool_t fFillAODCaloCells
 Copy calocells to standard branch. More...
 
Int_t fRun
 run number More...
 
AliEMCALRecoUtils * fRecoUtils
 Access to factorized reconstruction algorithms. More...
 
TString fConfigName
 Name of analysis configuration file. More...
 
Int_t fOrgClusterCellId [fgkNEMCalCells]
 Array ID of cluster to wich the cell belongs in unmodified clusters. More...
 
Int_t fCellLabels [fgkNEMCalCells]
 Array with MC label to be passed to digit. More...
 
Int_t fCellSecondLabels [fgkNEMCalCells]
 Array with Second MC label to be passed to digit. More...
 
Double_t fCellTime [fgkNEMCalCells]
 Array with cluster time to be passed to digit in case of AODs. More...
 
Float_t fCellMatchdEta [fgkNEMCalCells]
 Array with cluster-track dPhi. More...
 
Float_t fCellMatchdPhi [fgkNEMCalCells]
 Array with cluster-track dEta. More...
 
Bool_t fRecalibrateWithClusterTime
 Use fCellTime to store time of cells in cluster. More...
 
Int_t fMaxEvent
 Set a maximum event. More...
 
Bool_t fDoTrackMatching
 On/Off the matching recalulation to speed up analysis in PbPb. More...
 
Bool_t fSelectCell
 Reject cells from cluster if energy is too low and recalculate position/energy and other. More...
 
Float_t fSelectCellMinE
 Min energy cell threshold, after unfolding. More...
 
Float_t fSelectCellMinFrac
 Min fraction of cell energy after unfolding cut. More...
 
Bool_t fRejectBelowThreshold
 split (false-default) or reject (true) cell energy below threshold after UF More...
 
Bool_t fRemoveLEDEvents
 Remove LED events, use only for LHC11a. More...
 
Bool_t fRemoveExoticEvents
 Remove exotic events. More...
 
Bool_t fImportGeometryFromFile
 Import geometry settings in geometry.root file. More...
 
TString fImportGeometryFilePath
 path fo geometry.root file More...
 
Bool_t fOADBSet
 AODB parameters already set. More...
 
Bool_t fAccessOADB
 Get calibration from OADB for EMCAL. More...
 
TString fOADBFilePath
 Default path $ALICE_PHYSICS/OADB/EMCAL, if needed change. More...
 
Float_t fConstantTimeShift
 Apply a 600 ns time shift in case of simulation, shift in ns. More...
 
TString fCentralityClass
 Name of selected centrality class. More...
 
Float_t fCentralityBin [2]
 Minimum and maximum value of the centrality for the analysis. More...
 
Bool_t fUseAliCentrality
 Use the centrality estimator from AliCentrality or AliMultSelection. More...
 
Bool_t fSelectEMCALEvent
 Process the event if there is some high energy cluster. More...
 
Float_t fEMCALEnergyCut
 At least an EMCAL cluster with this energy in the event. More...
 
Int_t fEMCALNcellsCut
 At least an EMCAL cluster with fNCellsCut cells over fEnergyCut. More...
 
Int_t fSetCellMCLabelFromCluster
 
Bool_t fSetCellMCLabelFromEdepFrac
 
Bool_t fRemapMCLabelForAODs
 Remap AOD cells MC label. Needed in old AOD productions. More...
 
Bool_t fInputFromFilter
 Get the input from AODs from the filter. More...
 

Static Private Attributes

static const Int_t fgkNEMCalCells = 17664
 Total number of cells in the calorimeter, 10*48*24 (EMCal) + 4*48*8 (EMCal/DCal 1/3) + 6*32*24 (DCal) More...
 

Detailed Description

Reclusterize EMCal clusters, put them in a new branch for other following analysis.

This analysis provides a new list of clusters to be used in other analysis running right after this task. The clusters are recalibrated, bad channels removed, track-matching recalculated. Clusters are put in a new branch. Optionally, new clusters branch will be stored in an output AOD file with other additionnal information.

Adapted from analysis class from Deepa Thomas.

Author
Gustavo Conesa Balbastre Gusta.nosp@m.vo.C.nosp@m.onesa.nosp@m..Bal.nosp@m.bastr.nosp@m.e@ce.nosp@m.rn.ch, LPSC-IN2P3-CNRS

Definition at line 37 of file AliAnalysisTaskEMCALClusterize.h.

Constructor & Destructor Documentation

AliAnalysisTaskEMCALClusterize::AliAnalysisTaskEMCALClusterize ( )

Constructor.

Definition at line 103 of file AliAnalysisTaskEMCALClusterize.cxx.

AliAnalysisTaskEMCALClusterize::AliAnalysisTaskEMCALClusterize ( const char *  name)

Definition at line 62 of file AliAnalysisTaskEMCALClusterize.cxx.

AliAnalysisTaskEMCALClusterize::~AliAnalysisTaskEMCALClusterize ( )
virtual

Destructor.

Definition at line 144 of file AliAnalysisTaskEMCALClusterize.cxx.

AliAnalysisTaskEMCALClusterize::AliAnalysisTaskEMCALClusterize ( const AliAnalysisTaskEMCALClusterize )
private

Copy constructor not implemented.

Member Function Documentation

Bool_t AliAnalysisTaskEMCALClusterize::AcceptEventEMCAL ( )
Returns
True if there is in the event an EMCal cluster with enough energy and with good quality. Accept event given there is a EMCAL cluster with enough energy, number of cells and not noisy, exotic.

Definition at line 174 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by CheckAndGetEvent().

void AliAnalysisTaskEMCALClusterize::AccessOADB ( )

Set the AODB calibration, bad channels etc. parameters at least once alignment matrices from OADB done in SetGeometryMatrices.

Definition at line 209 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

Bool_t AliAnalysisTaskEMCALClusterize::AccessOCDB ( )

Access to OCDB stuff, avoid. Not sure it works anymore.

Definition at line 478 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

void AliAnalysisTaskEMCALClusterize::CheckAndGetEvent ( )

Get the input event, it can depend in embedded events what you want to get. Also check if the quality of the event is good (has it EMCal clusters, is the event triggered by LED or exotic ), if not reject it. If we add more than clusters, add also Header and CaloCells here.

Definition at line 524 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

void AliAnalysisTaskEMCALClusterize::ClusterizeCells ( )

Recluster calorimeter cells, transform them into digits, feed the clusterizer with them and get new list of clusters. In case of MC, first loop on the clusters and fill MC label to array. Filter the cells not being exotic, bad and recalibrate them before clusterizing.

Definition at line 620 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

void AliAnalysisTaskEMCALClusterize::ClusterUnfolding ( )

Take the event clusters and unfold them.

Definition at line 840 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

void AliAnalysisTaskEMCALClusterize::FillAODCaloCells ( )

Put calo cells in standard branch.

Definition at line 916 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by CheckAndGetEvent().

void AliAnalysisTaskEMCALClusterize::FillAODFile ( Bool_t  yesno)
inline

Definition at line 93 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::FillAODHeader ( )

Put event header information in standard AOD branch.

Definition at line 953 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by CheckAndGetEvent().

void AliAnalysisTaskEMCALClusterize::FillCaloClusterInEvent ( )
privatevirtual

Get the CaloClusters array, do some final calculations and put the clusters in the output or input event as a separate branch.

Definition at line 1068 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

TString AliAnalysisTaskEMCALClusterize::GeometryName ( ) const
inline

Definition at line 82 of file AliAnalysisTaskEMCALClusterize.h.

AliCentrality* AliAnalysisTaskEMCALClusterize::GetCentrality ( ) const
inline

Definition at line 146 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by GetEventCentrality().

Float_t AliAnalysisTaskEMCALClusterize::GetCentralityBin ( Int_t  i) const
inline

Definition at line 156 of file AliAnalysisTaskEMCALClusterize.h.

TString AliAnalysisTaskEMCALClusterize::GetCentralityClass ( ) const
inline

Definition at line 152 of file AliAnalysisTaskEMCALClusterize.h.

Float_t AliAnalysisTaskEMCALClusterize::GetEventCentrality ( ) const

Get centrality/multiplicity percentile.

Definition at line 1138 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

AliMultSelection* AliAnalysisTaskEMCALClusterize::GetMultSelCen ( ) const
inline

Definition at line 147 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by GetEventCentrality().

TString AliAnalysisTaskEMCALClusterize::GetPass ( )

Get or guess pass number/string from path of filename.

Definition at line 1157 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by AccessOADB().

AliEMCALRecoUtils* AliAnalysisTaskEMCALClusterize::GetRecoUtils ( )
inline

Definition at line 109 of file AliAnalysisTaskEMCALClusterize.h.

AliEMCALRecParam* AliAnalysisTaskEMCALClusterize::GetRecParam ( )
inline

Definition at line 106 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::Init ( )
virtual

Init analysis with configuration macro if available. Init other parameters, pointers if not done before with default settings.

Definition at line 1202 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by LocalInit().

void AliAnalysisTaskEMCALClusterize::InitClusterization ( )

Select clusterization/unfolding algorithm and set all the needed parameters.

Definition at line 1253 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

void AliAnalysisTaskEMCALClusterize::InitGeometry ( )

Init geometry and set the geometry matrix, for the first event, skip the rest. Also set once the run dependent calibrations.

Definition at line 1323 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by UserExec().

Bool_t AliAnalysisTaskEMCALClusterize::IsExoticEvent ( )

Check if event is exotic, get an exotic cell and compare with triggered patch If there is a match remove event ... to be completed, filled with something provisional

Definition at line 1445 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by CheckAndGetEvent().

Bool_t AliAnalysisTaskEMCALClusterize::IsLEDEvent ( const Int_t  run)

Check if event is LED, is so remove it. Affected LHC11a runs.

Definition at line 1482 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by CheckAndGetEvent().

void AliAnalysisTaskEMCALClusterize::JustUnfold ( Bool_t  yesno)
inline

Definition at line 115 of file AliAnalysisTaskEMCALClusterize.h.

virtual void AliAnalysisTaskEMCALClusterize::LocalInit ( )
inlinevirtual

Definition at line 48 of file AliAnalysisTaskEMCALClusterize.h.

AliAnalysisTaskEMCALClusterize& AliAnalysisTaskEMCALClusterize::operator= ( const AliAnalysisTaskEMCALClusterize )
private

Assignment operator not implemented.

void AliAnalysisTaskEMCALClusterize::RecPoints2Clusters ( )
privatevirtual

Restore clusters from recPoints. Cluster energy, global position, cells and their amplitude fractions are restored.

Set the MC labels, normal procedure in reconstruction

Definition at line 1517 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by ClusterizeCells().

void AliAnalysisTaskEMCALClusterize::RemapMCLabelForAODs ( Int_t label)

MC label for Cells not remapped after ESD filtering, it happened in old productions, do it here.

Definition at line 1726 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by ClusterizeCells().

void AliAnalysisTaskEMCALClusterize::ResetArrays ( )
privatevirtual

Reset arrays containing information for all possible cells.

Definition at line 1768 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by AliAnalysisTaskEMCALClusterize(), and ClusterizeCells().

void AliAnalysisTaskEMCALClusterize::SetAODBranchName ( TString name)
inline

Definition at line 92 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetCellCuts ( Float_t  e,
Float_t  frac 
)
inline

Definition at line 127 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetCentralityBin ( Int_t  min,
Int_t  max 
)
inline

Definition at line 154 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetCentralityClass ( TString  name)
inline

Definition at line 151 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetClustersMCLabelFrom2SelectedLabels ( AliEMCALRecPoint *  recPoint,
AliAODCaloCluster *  clus 
)

Set the cluster MC label, the digizer was filled with the most likely MC label for all cells in original cluster. Now check the second most likely MC label and add it to the new cluster.

Definition at line 1786 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by RecPoints2Clusters().

void AliAnalysisTaskEMCALClusterize::SetClustersMCLabelFromOriginalClusters ( AliAODCaloCluster *  clus)

Get the original clusters that contribute to the new cluster, assign the labels of such clusters to the new cluster. Only approximatedly valid when input and output are V1 clusters, or input are V2 clusters and output are any other type of clusters. Handle with care.

Definition at line 1828 of file AliAnalysisTaskEMCALClusterize.cxx.

Referenced by RecPoints2Clusters().

void AliAnalysisTaskEMCALClusterize::SetConfigFileName ( TString  name)
inline

Definition at line 117 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetConstantTimeShift ( Float_t  shift)
inline

Definition at line 142 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetEMCALEnergyCut ( Float_t  cut)
inline

Definition at line 55 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetEMCALNcellsCut ( Int_t  cut)
inline

Definition at line 56 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetGeometryMatrixInSM ( TGeoHMatrix *  m,
Int_t  i 
)
inline

Definition at line 85 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetGeometryName ( TString name)
inline

Definition at line 81 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetImportGeometryFromFile ( Bool_t  im,
TString  pa = "" 
)
inline

Definition at line 87 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetMaxEvent ( Int_t  max)
inline

Definition at line 118 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetOADBFilePath ( TString  path)
inline

Definition at line 140 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetOCDBPath ( const char *  path)
inline

Definition at line 76 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SetRejectBelowThreshold ( Bool_t  reject)
inline

Definition at line 129 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffAccessOCDB ( )
inline

Definition at line 75 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffAliCentrality ( )
inline

Definition at line 149 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffCellEnergySelection ( )
inline

Definition at line 126 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffEMCALOADB ( )
inline

Definition at line 138 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffExoticEventsRemoval ( )
inline

Definition at line 65 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffFillAODCaloCells ( )
inline

Definition at line 99 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffFillAODHeader ( )
inline

Definition at line 97 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffInputAODFilter ( )
inline

Definition at line 59 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffLEDEventsRemoval ( )
inline

Definition at line 69 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffLoadOwnGeometryMatrices ( )
inline

Definition at line 84 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffRecalibrateWithClusterTime ( )
inline

Definition at line 102 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffRemapMCLabelForAODs ( )
inline

Definition at line 163 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffSelectEMCALEvent ( )
inline

Definition at line 54 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffTrackMatching ( )
inline

Definition at line 121 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffUseClusterMCLabelForCell ( )
inline

Definition at line 169 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOffUseMCEdepFracLabelForCell ( )
inline

Definition at line 173 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnAccessOCDB ( )
inline

Definition at line 74 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnAliCentrality ( )
inline

Definition at line 148 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnCellEnergySelection ( )
inline

Definition at line 125 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnEMCALOADB ( )
inline

Definition at line 137 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnExoticEventsRemoval ( )
inline

Definition at line 64 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnFillAODCaloCells ( )
inline

Definition at line 98 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnFillAODHeader ( )
inline

Definition at line 96 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnInputAODFilter ( )
inline

Definition at line 58 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnLEDEventsRemoval ( )
inline

Definition at line 68 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnLoadOwnGeometryMatrices ( )
inline

Definition at line 83 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnRecalibrateWithClusterTime ( )
inline

Definition at line 101 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnRemapMCLabelForAODs ( )
inline

Definition at line 162 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnSelectEMCALEvent ( )
inline

Definition at line 53 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnTrackMatching ( )
inline

Definition at line 120 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnUseClusterMCLabelForCell ( Int_t  opt = 2)
inline

Definition at line 168 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::SwitchOnUseMCEdepFracLabelForCell ( )
inline

Definition at line 171 of file AliAnalysisTaskEMCALClusterize.h.

void AliAnalysisTaskEMCALClusterize::UserCreateOutputObjects ( )
virtual

Definition at line 1955 of file AliAnalysisTaskEMCALClusterize.cxx.

void AliAnalysisTaskEMCALClusterize::UserExec ( Option_t option)
virtual

Do clusterization event by event, execute different steps

  • 1) Do some checks on the kind of events (ESD, AOD) or if some filtering is needed, initializations load things and clear arrays
  • 2) Clusterize
    • a) just unfolding existing clusters (fJustUnfold)
    • b) recluster cells
      • + convert cells into digits (calibrating them)
      • + recluster digits into recPoints with the chosen clusterizer (V1, V1+Unfold,V2, NxN) with methods in AliEMCALClusterizer
      • + transform recPoints into CaloClusters
  • 3) Do some final calculations in the found clusters (track-matching) and put them in an AOD branch

Definition at line 1989 of file AliAnalysisTaskEMCALClusterize.cxx.

Member Data Documentation

Bool_t AliAnalysisTaskEMCALClusterize::fAccessOADB
private

Get calibration from OADB for EMCAL.

Definition at line 246 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by SwitchOffEMCALOADB(), SwitchOnEMCALOADB(), and UserExec().

Bool_t AliAnalysisTaskEMCALClusterize::fAccessOCDB
private

Need to access info from OCDB (not really)

Definition at line 194 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by Init(), SwitchOffAccessOCDB(), SwitchOnAccessOCDB(), and UserExec().

TObjArray* AliAnalysisTaskEMCALClusterize::fCaloClusterArr
private
Int_t AliAnalysisTaskEMCALClusterize::fCellLabels[fgkNEMCalCells]
private

Array with MC label to be passed to digit.

Definition at line 224 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), RecPoints2Clusters(), and ResetArrays().

Float_t AliAnalysisTaskEMCALClusterize::fCellMatchdEta[fgkNEMCalCells]
private

Array with cluster-track dPhi.

Definition at line 227 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), FillCaloClusterInEvent(), and ResetArrays().

Float_t AliAnalysisTaskEMCALClusterize::fCellMatchdPhi[fgkNEMCalCells]
private

Array with cluster-track dEta.

Definition at line 228 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), FillCaloClusterInEvent(), and ResetArrays().

Int_t AliAnalysisTaskEMCALClusterize::fCellSecondLabels[fgkNEMCalCells]
private

Array with Second MC label to be passed to digit.

Definition at line 225 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), ResetArrays(), and SetClustersMCLabelFrom2SelectedLabels().

Double_t AliAnalysisTaskEMCALClusterize::fCellTime[fgkNEMCalCells]
private

Array with cluster time to be passed to digit in case of AODs.

Definition at line 226 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), and ResetArrays().

Float_t AliAnalysisTaskEMCALClusterize::fCentralityBin[2]
private

Minimum and maximum value of the centrality for the analysis.

Definition at line 252 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AliAnalysisTaskEMCALClusterize(), GetCentralityBin(), Init(), SetCentralityBin(), and UserExec().

TString AliAnalysisTaskEMCALClusterize::fCentralityClass
private

Name of selected centrality class.

Definition at line 251 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by GetCentralityClass(), GetEventCentrality(), Init(), and SetCentralityClass().

TObjArray* AliAnalysisTaskEMCALClusterize::fClusterArr
private
AliEMCALClusterizer* AliAnalysisTaskEMCALClusterize::fClusterizer
private

! EMCAL clusterizer

Definition at line 203 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), InitClusterization(), and ~AliAnalysisTaskEMCALClusterize().

TString AliAnalysisTaskEMCALClusterize::fConfigName
private

Name of analysis configuration file.

Definition at line 219 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by Init(), and SetConfigFileName().

Float_t AliAnalysisTaskEMCALClusterize::fConstantTimeShift
private

Apply a 600 ns time shift in case of simulation, shift in ns.

Definition at line 248 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), IsExoticEvent(), and SetConstantTimeShift().

TClonesArray* AliAnalysisTaskEMCALClusterize::fDigitsArr
private
Bool_t AliAnalysisTaskEMCALClusterize::fDoTrackMatching
private

On/Off the matching recalulation to speed up analysis in PbPb.

Definition at line 234 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), FillCaloClusterInEvent(), Init(), SwitchOffTrackMatching(), and SwitchOnTrackMatching().

Float_t AliAnalysisTaskEMCALClusterize::fEMCALEnergyCut
private

At least an EMCAL cluster with this energy in the event.

Definition at line 257 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AcceptEventEMCAL(), and SetEMCALEnergyCut().

Int_t AliAnalysisTaskEMCALClusterize::fEMCALNcellsCut
private

At least an EMCAL cluster with fNCellsCut cells over fEnergyCut.

Use cluster MC label as cell label:

  • 0 - get the MC label stored in cells
  • 1 - from old way, select 2 most likely labels
  • 2 - from new way, get the original clusters, add all the MC labels (useful for any reclusterization with output V1 clusters)

Definition at line 258 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AcceptEventEMCAL(), and SetEMCALNcellsCut().

Bool_t AliAnalysisTaskEMCALClusterize::fFillAODCaloCells
private

Copy calocells to standard branch.

Definition at line 214 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by CheckAndGetEvent(), SwitchOffFillAODCaloCells(), and SwitchOnFillAODCaloCells().

Bool_t AliAnalysisTaskEMCALClusterize::fFillAODFile
private

Fill the output AOD file with the new clusters, if not they will be only available for the event they were generated

Definition at line 211 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by CheckAndGetEvent(), FillAODFile(), Init(), InitGeometry(), IsLEDEvent(), and UserCreateOutputObjects().

Bool_t AliAnalysisTaskEMCALClusterize::fFillAODHeader
private

Copy header to standard branch.

Definition at line 213 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by CheckAndGetEvent(), SwitchOffFillAODHeader(), and SwitchOnFillAODHeader().

AliEMCALGeometry* AliAnalysisTaskEMCALClusterize::fGeom
private
TGeoHMatrix* AliAnalysisTaskEMCALClusterize::fGeomMatrix[22]
private

Geometry matrices with alignments.

Definition at line 188 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AliAnalysisTaskEMCALClusterize(), Init(), InitGeometry(), and SetGeometryMatrixInSM().

Bool_t AliAnalysisTaskEMCALClusterize::fGeomMatrixSet
private

Set geometry matrices only once, for the first event.

Definition at line 189 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by InitGeometry().

TString AliAnalysisTaskEMCALClusterize::fGeomName
private

Name of geometry to use.

Definition at line 187 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by GeometryName(), Init(), InitGeometry(), and SetGeometryName().

const Int_t AliAnalysisTaskEMCALClusterize::fgkNEMCalCells = 17664
staticprivate

Total number of cells in the calorimeter, 10*48*24 (EMCal) + 4*48*8 (EMCal/DCal 1/3) + 6*32*24 (DCal)

Definition at line 221 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ResetArrays().

TString AliAnalysisTaskEMCALClusterize::fImportGeometryFilePath
private

path fo geometry.root file

Definition at line 243 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by InitGeometry(), and SetImportGeometryFromFile().

Bool_t AliAnalysisTaskEMCALClusterize::fImportGeometryFromFile
private

Import geometry settings in geometry.root file.

Definition at line 242 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by InitGeometry(), and SetImportGeometryFromFile().

Bool_t AliAnalysisTaskEMCALClusterize::fInputFromFilter
private

Get the input from AODs from the filter.

Definition at line 272 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by CheckAndGetEvent(), SwitchOffInputAODFilter(), and SwitchOnInputAODFilter().

Bool_t AliAnalysisTaskEMCALClusterize::fJustUnfold
private

Just unfold, do not recluster.

Definition at line 205 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by Init(), InitClusterization(), JustUnfold(), and UserExec().

Bool_t AliAnalysisTaskEMCALClusterize::fLoadGeomMatrices
private

Matrices set from configuration, not get from geometry.root or from ESDs/AODs.

Definition at line 190 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by Init(), InitGeometry(), SwitchOffLoadOwnGeometryMatrices(), and SwitchOnLoadOwnGeometryMatrices().

Int_t AliAnalysisTaskEMCALClusterize::fMaxEvent
private

Set a maximum event.

Definition at line 232 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by CheckAndGetEvent(), Init(), and SetMaxEvent().

TString AliAnalysisTaskEMCALClusterize::fOADBFilePath
private

Default path $ALICE_PHYSICS/OADB/EMCAL, if needed change.

Definition at line 247 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AccessOADB(), Init(), InitGeometry(), and SetOADBFilePath().

Bool_t AliAnalysisTaskEMCALClusterize::fOADBSet
private

AODB parameters already set.

Definition at line 245 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AccessOADB(), and Init().

TString AliAnalysisTaskEMCALClusterize::fOCDBpath
private

Path with OCDB location.

Definition at line 193 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AccessOCDB(), Init(), and SetOCDBPath().

Int_t AliAnalysisTaskEMCALClusterize::fOrgClusterCellId[fgkNEMCalCells]
private

Array ID of cluster to wich the cell belongs in unmodified clusters.

Definition at line 223 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), ResetArrays(), and SetClustersMCLabelFromOriginalClusters().

TClonesArray* AliAnalysisTaskEMCALClusterize::fOutputAODBranch
private

! AOD Branch with output clusters

Definition at line 208 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by CheckAndGetEvent(), FillCaloClusterInEvent(), UserCreateOutputObjects(), and UserExec().

TString AliAnalysisTaskEMCALClusterize::fOutputAODBranchName
private

New of output AOD branch.

Definition at line 209 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by CheckAndGetEvent(), Init(), SetAODBranchName(), and UserCreateOutputObjects().

Bool_t AliAnalysisTaskEMCALClusterize::fOutputAODBranchSet
private

Set the AOD clusters branch in the input event once.

Definition at line 210 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by CheckAndGetEvent().

Bool_t AliAnalysisTaskEMCALClusterize::fRecalibrateWithClusterTime
private

Use fCellTime to store time of cells in cluster.

Definition at line 230 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), SwitchOffRecalibrateWithClusterTime(), and SwitchOnRecalibrateWithClusterTime().

AliEMCALRecoUtils* AliAnalysisTaskEMCALClusterize::fRecoUtils
private
AliEMCALRecParam* AliAnalysisTaskEMCALClusterize::fRecParam
private

Reconstruction parameters container.

Definition at line 202 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), GetRecParam(), Init(), InitClusterization(), and RecPoints2Clusters().

Bool_t AliAnalysisTaskEMCALClusterize::fRejectBelowThreshold
private

split (false-default) or reject (true) cell energy below threshold after UF

Definition at line 238 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by Init(), InitClusterization(), and SetRejectBelowThreshold().

Bool_t AliAnalysisTaskEMCALClusterize::fRemapMCLabelForAODs
private

Remap AOD cells MC label. Needed in old AOD productions.

Definition at line 270 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), SwitchOffRemapMCLabelForAODs(), and SwitchOnRemapMCLabelForAODs().

Bool_t AliAnalysisTaskEMCALClusterize::fRemoveExoticEvents
private

Remove exotic events.

Definition at line 240 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by IsExoticEvent(), SwitchOffExoticEventsRemoval(), and SwitchOnExoticEventsRemoval().

Bool_t AliAnalysisTaskEMCALClusterize::fRemoveLEDEvents
private

Remove LED events, use only for LHC11a.

Definition at line 239 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by IsLEDEvent(), SwitchOffLEDEventsRemoval(), and SwitchOnLEDEventsRemoval().

Int_t AliAnalysisTaskEMCALClusterize::fRun
private

run number

Definition at line 216 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AccessOCDB().

Bool_t AliAnalysisTaskEMCALClusterize::fSelectCell
private

Reject cells from cluster if energy is too low and recalculate position/energy and other.

Definition at line 235 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by RecPoints2Clusters(), SwitchOffCellEnergySelection(), and SwitchOnCellEnergySelection().

Float_t AliAnalysisTaskEMCALClusterize::fSelectCellMinE
private

Min energy cell threshold, after unfolding.

Definition at line 236 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by Init(), RecPoints2Clusters(), and SetCellCuts().

Float_t AliAnalysisTaskEMCALClusterize::fSelectCellMinFrac
private

Min fraction of cell energy after unfolding cut.

Definition at line 237 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by Init(), RecPoints2Clusters(), and SetCellCuts().

Bool_t AliAnalysisTaskEMCALClusterize::fSelectEMCALEvent
private

Process the event if there is some high energy cluster.

Definition at line 256 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by AcceptEventEMCAL(), SwitchOffSelectEMCALEvent(), and SwitchOnSelectEMCALEvent().

Int_t AliAnalysisTaskEMCALClusterize::fSetCellMCLabelFromCluster
private

For MC generated with aliroot > v5-07-21, check the EDep information stored in ESDs/AODs to set the cell MC labels

Definition at line 264 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterizeCells(), RecPoints2Clusters(), SwitchOffUseClusterMCLabelForCell(), SwitchOnUseClusterMCLabelForCell(), and SwitchOnUseMCEdepFracLabelForCell().

Bool_t AliAnalysisTaskEMCALClusterize::fSetCellMCLabelFromEdepFrac
private
AliEMCALAfterBurnerUF* AliAnalysisTaskEMCALClusterize::fUnfolder
private

! Unfolding procedure

Definition at line 204 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by ClusterUnfolding(), InitClusterization(), and ~AliAnalysisTaskEMCALClusterize().

Bool_t AliAnalysisTaskEMCALClusterize::fUseAliCentrality
private

Use the centrality estimator from AliCentrality or AliMultSelection.

Definition at line 253 of file AliAnalysisTaskEMCALClusterize.h.

Referenced by FillAODHeader(), GetEventCentrality(), Init(), SwitchOffAliCentrality(), and SwitchOnAliCentrality().


The documentation for this class was generated from the following files: