AliPhysics  3337bb0 (3337bb0)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliCalorimeterUtils Class Reference

Class with utils specific to calorimeter clusters/cells. More...

#include <AliCalorimeterUtils.h>

Inheritance diagram for AliCalorimeterUtils:

Public Member Functions

 AliCalorimeterUtils ()
 Constructor. Initialize parameters. More...
 
virtual ~AliCalorimeterUtils ()
 
virtual void InitParameters ()
 Initialize the parameters of the analysis. More...
 
virtual void Print (const Option_t *opt) const
 Print some relevant parameters set for the analysis. More...
 
virtual Int_t GetDebug () const
 
virtual void SetDebug (Int_t d)
 
Bool_t AreNeighbours (Int_t calo, Int_t absId1, Int_t absId2) const
 
Bool_t IsClusterSharedByTwoSuperModules (const AliEMCALGeometry *geom, AliVCluster *cluster)
 
Float_t GetECross (Int_t absId, AliVCaloCells *cells, Int_t bc)
 
Bool_t GetFECCorrelatedCellAbsId (Int_t absId, Int_t absIdCorr[4]) const
 
Bool_t IsAbsIDsFromTCard (Int_t absId1, Int_t absId2, Int_t &rowDiff, Int_t &colDiff) const
 
Int_t GetNumberOfLocalMaxima (AliVCluster *cluster, AliVCaloCells *cells)
 Find the number of local maxima in cluster. More...
 
Int_t GetNumberOfLocalMaxima (AliVCluster *cluster, AliVCaloCells *cells, Int_t *absIdList, Float_t *maxEList)
 Find the number of local maxima in cluster. More...
 
Float_t GetLocalMaximaCutE () const
 
void SetLocalMaximaCutE (Float_t cut)
 
Float_t GetLocalMaximaCutEDiff () const
 
void SetLocalMaximaCutEDiff (Float_t c)
 
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. More...
 
void SplitEnergy (Int_t absId1, Int_t absId2, AliVCluster *cluster, AliVCaloCells *cells, AliAODCaloCluster *cluster1, AliAODCaloCluster *cluster2, Int_t nMax, Int_t eventNumber=0)
 
void SwitchOnClusterPlot ()
 
void SwitchOffClusterPlot ()
 
Float_t GetMCECellClusFracCorrection (Float_t eCell, Float_t eCluster) const
 
void SetMCECellClusFracCorrectionParamters (Int_t i, Float_t param)
 
Bool_t IsMCECellClusFracCorrectionOn () const
 
void SwitchOnMCECellClusFracCorrection ()
 
void SwitchOffMCECellClusFracCorrection ()
 
AliEMCALGeometry * GetEMCALGeometry () const
 
TString EMCALGeometryName () const
 
void SetEMCALGeometryName (TString name)
 
void InitEMCALGeometry ()
 
Bool_t IsEMCALGeoMatrixSet () const
 
AliPHOSGeoUtils * GetPHOSGeometry () const
 
TString PHOSGeometryName () const
 
void SetPHOSGeometryName (TString name)
 
void InitPHOSGeometry ()
 
Bool_t IsPHOSGeoMatrixSet () const
 
void AccessGeometry (AliVEvent *inputEvent)
 
void SetImportGeometryFromFile (Bool_t import, TString path="")
 
Bool_t IsMCParticleInCalorimeterAcceptance (Int_t calo, AliVParticle *particle)
 Check that a MC AOD is in the calorimeter acceptance. More...
 
Bool_t IsMCParticleInCalorimeterAcceptance (Int_t calo, TParticle *particle)
 
Bool_t IsMCParticleInCalorimeterAcceptance (Int_t calo, AliAODMCParticle *particle)
 Check that a MC AOD is in the calorimeter acceptance. More...
 
Bool_t IsMCParticleInCalorimeterAcceptance (Int_t calo, Float_t eta, Float_t theta, Float_t phi, Int_t &absID)
 
void SwitchOnLoadOwnEMCALGeometryMatrices ()
 
void SwitchOffLoadOwnEMCALGeometryMatrices ()
 
void SetEMCALGeometryMatrixInSM (TGeoHMatrix *m, Int_t i)
 
void SwitchOnLoadOwnPHOSGeometryMatrices ()
 
void SwitchOffLoadOwnPHOSGeometryMatrices ()
 
void SetPHOSGeometryMatrixInSM (TGeoHMatrix *m, Int_t i)
 
void GetEMCALSubregion (AliVCluster *clus, AliVCaloCells *cells, Int_t &regEta, Int_t &regPhi) const
 
Bool_t IsBadChannelsRemovalSwitchedOn () const
 
void SwitchOnBadChannelsRemoval ()
 
void SwitchOffBadChannelsRemoval ()
 
Bool_t IsDistanceToBadChannelRecalculated () const
 
void SwitchOnDistToBadChannelRecalculation ()
 
void SwitchOffDistToBadChannelRecalculation ()
 
void InitPHOSBadChannelStatusMap ()
 Init PHOS bad channels map. More...
 
Int_t GetEMCALChannelStatus (Int_t iSM, Int_t iCol, Int_t iRow) const
 
Int_t GetPHOSChannelStatus (Int_t imod, Int_t iCol, Int_t iRow) const
 
void SetEMCALChannelStatus (Int_t iSM, Int_t iCol, Int_t iRow, Double_t c=1)
 
void SetPHOSChannelStatus (Int_t imod, Int_t iCol, Int_t iRow, Double_t c=1)
 
void SetEMCALChannelStatusMap (Int_t iSM, TH2I *h)
 
void SetPHOSChannelStatusMap (Int_t imod, TH2I *h)
 
TH2I * GetEMCALChannelStatusMap (Int_t iSM) const
 
TH2I * GetPHOSChannelStatusMap (Int_t imod) const
 
void SetEMCALChannelStatusMap (TObjArray *map)
 
void SetPHOSChannelStatusMap (TObjArray *map)
 
Bool_t ClusterContainsBadChannel (Int_t calo, UShort_t *cellList, Int_t nCells)
 
Bool_t ClusterContainsBadChannel (TString, UShort_t *, Int_t)
 
Int_t GetNMaskCellColumns () const
 
void SetNMaskCellColumns (Int_t n)
 
void SetMaskCellColumn (Int_t ipos, Int_t icol)
 
Bool_t MaskFrameCluster (Int_t iSM, Int_t ieta) const
 
Int_t GetModuleNumber (AliCaloTrackParticle *particle, AliVEvent *inputEvent) const
 Get the EMCAL/PHOS module number that corresponds to this particle. More...
 
Int_t GetModuleNumber (AliVCluster *cluster) const
 Get the EMCAL/PHOS module number that corresponds to this cluster. More...
 
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. More...
 
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
 
Bool_t CheckCellFiducialRegion (AliVCluster *cluster, AliVCaloCells *cells) const
 
Bool_t CheckCellFiducialRegion (AliVCluster *cluster, AliVCaloCells *cells, AliVEvent *, Int_t)
 
void SetNumberOfCellsFromPHOSBorder (Int_t n)
 
Int_t GetNumberOfCellsFromPHOSBorder () const
 
void SetNumberOfCellsFromEMCALBorder (Int_t n)
 
Int_t GetNumberOfCellsFromEMCALBorder () const
 
void SwitchOnNoFiducialBorderInEMCALEta0 ()
 
void SwitchOffNoFiducialBorderInEMCALEta0 ()
 
Bool_t IsEMCALNoBorderAtEta0 () const
 
Bool_t IsRecalibrationOn () const
 
void SwitchOnRecalibration ()
 
void SwitchOffRecalibration ()
 
void InitPHOSRecalibrationFactors ()
 Init PHOS recalibration factors. More...
 
Float_t GetEMCALChannelRecalibrationFactor (Int_t iSM, Int_t iCol, Int_t iRow) const
 
Float_t GetPHOSChannelRecalibrationFactor (Int_t imod, Int_t iCol, Int_t iRow) const
 
void SetEMCALChannelRecalibrationFactor (Int_t iSM, Int_t iCol, Int_t iRow, Double_t c=1)
 
void SetPHOSChannelRecalibrationFactor (Int_t imod, Int_t iCol, Int_t iRow, Double_t c=1)
 
void SetEMCALChannelRecalibrationFactors (Int_t iSM, TH2F *h)
 
void SetPHOSChannelRecalibrationFactors (Int_t imod, TH2F *h)
 
TH2FGetEMCALChannelRecalibrationFactors (Int_t iSM) const
 
TH2FGetPHOSChannelRecalibrationFactors (Int_t imod) const
 
void SetEMCALChannelRecalibrationFactors (TObjArray *map)
 
void SetPHOSChannelRecalibrationFactors (TObjArray *map)
 
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. More...
 
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. More...
 
void RecalibrateCellAmplitude (Float_t &amp, Int_t calo, Int_t absId) const
 Recalculate cell energy if recalibration factor. More...
 
Float_t RecalibrateClusterEnergy (AliVCluster *cluster, AliVCaloCells *cells)
 Recalibrate the cluster energy, considering the recalibration map and the energy of the cells that compose the cluster. More...
 
Float_t RecalibrateClusterEnergyWeightCell (AliVCluster *cluster, AliVCaloCells *cells, Float_t energyOrg)
 
void SwitchOffRunDepCorrection ()
 
void SwitchOnRunDepCorrection ()
 
Bool_t IsTimeRecalibrationOn () const
 
void SwitchOffTimeRecalibration ()
 
void SwitchOnTimeRecalibration ()
 
Float_t GetEMCALChannelTimeRecalibrationFactor (Int_t bc, Int_t absID) const
 
void SetEMCALChannelTimeRecalibrationFactor (Int_t bc, Int_t absID, Double_t c=0)
 
TH1F * GetEMCALChannelTimeRecalibrationFactors (Int_t bc) const
 
void SetEMCALChannelTimeRecalibrationFactors (TObjArray *map)
 
void SetEMCALChannelTimeRecalibrationFactors (Int_t bc, TH1F *h)
 
Bool_t IsL1PhaseInTimeRecalibrationOn () const
 
void SwitchOffL1PhaseInTimeRecalibration ()
 
void SwitchOnL1PhaseInTimeRecalibration ()
 
Int_t GetEMCALL1PhaseInTimeRecalibrationForSM (Int_t iSM) const
 
void SetEMCALL1PhaseInTimeRecalibrationForSM (Int_t iSM, Int_t c=0)
 
TH1C * GetEMCALL1PhaseInTimeRecalibrationForAllSM () const
 
void SetEMCALL1PhaseInTimeRecalibrationForAllSM (TObjArray *map)
 
void SetEMCALL1PhaseInTimeRecalibrationForAllSM (TH1C *h)
 
void SetEMCALRecoUtils (AliEMCALRecoUtils *ru)
 
AliEMCALRecoUtils * GetEMCALRecoUtils () const
 
Bool_t IsCorrectionOfClusterEnergyOn () const
 
void SwitchOnCorrectClusterLinearity ()
 
void SwitchOffCorrectClusterLinearity ()
 
void CorrectClusterEnergy (AliVCluster *cl)
 Correct cluster energy non linearity. More...
 
Bool_t IsRecalculationOfClusterPositionOn () const
 
void SwitchOnRecalculateClusterPosition ()
 
void SwitchOffRecalculateClusterPosition ()
 
void RecalculateClusterPosition (AliVCaloCells *cells, AliVCluster *clu)
 
void RecalculateClusterShowerShapeParameters (AliVCaloCells *cells, AliVCluster *clu)
 
void RecalculateClusterDistanceToBadChannel (AliVCaloCells *cells, AliVCluster *clu)
 
void RecalculateClusterPID (AliVCluster *clu)
 
AliVTrack * GetMatchedTrack (AliVCluster *cluster, AliVEvent *event, Int_t index=-1) const
 
void RecalculateClusterTrackMatching (AliVEvent *event, TObjArray *clusterArray=0x0, AliMCEvent *mc=0x0)
 
void GetMatchedResiduals (Int_t index, Float_t &dR, Float_t &dZ)
 
void SwitchOnRecalculateClusterTrackMatching ()
 
void SwitchOffRecalculateClusterTrackMatching ()
 
Bool_t IsRecalculationOfClusterTrackMatchingOn () const
 
Float_t GetCutZ () const
 
void SetCutZ (Float_t z)
 
Float_t GetCutR () const
 
void SetCutR (Float_t r)
 
Float_t GetCutEta () const
 
void SetCutEta (Float_t e)
 
Float_t GetCutPhi () const
 
void SetCutPhi (Float_t p)
 
void AccessOADB (AliVEvent *event)
 
TString GetPass ()
 Get passx from filename. More...
 
void SwitchOnEMCALOADB ()
 
void SwitchOffEMCALOADB ()
 
void SwitchOnPHOSOADB ()
 
void SwitchOffPHOSOADB ()
 
void SetEMCALOADBFilePath (TString path)
 
void SetPHOSOADBFilePath (TString path)
 
void SetNumberOfSuperModulesUsed (Int_t nSM)
 
Int_t GetNumberOfSuperModulesUsed () const
 
void SetFirstSuperModuleUsed (Int_t first)
 
Int_t GetFirstSuperModuleUsed () const
 
void SetLastSuperModuleUsed (Int_t last)
 
Int_t GetLastSuperModuleUsed () const
 
void SetRunNumber (Int_t run)
 
Int_t GetRunNumber () const
 

Private Member Functions

 AliCalorimeterUtils (const AliCalorimeterUtils &cu)
 Copy constructor not implemented. More...
 
AliCalorimeterUtilsoperator= (const AliCalorimeterUtils &cu)
 Assignment operator not implemented. More...
 

Private Attributes

Int_t fDebug
 Debugging level. More...
 
TString fEMCALGeoName
 Name of geometry to use for EMCAL. More...
 
TString fPHOSGeoName
 Name of geometry to use for PHOS. More...
 
AliEMCALGeometry * fEMCALGeo
 ! EMCAL geometry pointer. More...
 
AliPHOSGeoUtils * fPHOSGeo
 ! PHOS geometry pointer. More...
 
Bool_t fEMCALGeoMatrixSet
 Check if the transformation matrix is set for EMCAL. More...
 
Bool_t fPHOSGeoMatrixSet
 Check if the transformation matrix is set for PHOS. More...
 
Bool_t fLoadEMCALMatrices
 Matrices set from configuration, not get from geometry.root or from ESDs/AODs. More...
 
TGeoHMatrix * fEMCALMatrix [22]
 Geometry matrices with alignments. More...
 
Bool_t fLoadPHOSMatrices
 Matrices set from configuration, not get from geometry.root or from ESDs/AODs. More...
 
TGeoHMatrix * fPHOSMatrix [5]
 Geometry matrices with alignments. More...
 
Bool_t fRemoveBadChannels
 Check the channel status provided and remove clusters with bad channels. More...
 
TObjArrayfPHOSBadChannelMap
 Array of histograms with map of bad channels, PHOS. More...
 
Int_t fNCellsFromPHOSBorder
 Number of cells from PHOS border the cell with maximum amplitude has to be. More...
 
Int_t fNMaskCellColumns
 Number of masked columns. More...
 
Int_tfMaskCellColumns
 List of masked cells collumn index. More...
 
Bool_t fRecalibration
 Switch on or off the recalibration. More...
 
Bool_t fRunDependentCorrection
 Switch on or off the recalibration dependent on T. More...
 
TObjArrayfPHOSRecalibrationFactors
 Array of histograms with map of recalibration factors, PHOS. More...
 
AliEMCALRecoUtils * fEMCALRecoUtils
 EMCAL utils for cluster rereconstruction. More...
 
Bool_t fRecalculatePosition
 Recalculate cluster position. More...
 
Bool_t fCorrectELinearity
 Correct cluster energy linearity. More...
 
Bool_t fRecalculateMatching
 Recalculate cluster position. More...
 
Float_t fCutR
 dR cut on matching (PHOS). More...
 
Float_t fCutZ
 dZ cut on matching (EMCAL/PHOS). More...
 
Float_t fCutEta
 dEta cut on matching (EMCAL). More...
 
Float_t fCutPhi
 dPhi cut on matching (EMCAL). More...
 
Float_t fLocMaxCutE
 Local maxima cut must have more than this energy. More...
 
Float_t fLocMaxCutEDiff
 Local maxima cut, when aggregating cells, next can be a bit higher. More...
 
Bool_t fPlotCluster
 Plot cluster in splitting method. More...
 
Bool_t fOADBSet
 AODB parameters already set. More...
 
Bool_t fOADBForEMCAL
 Get calibration from OADB for EMCAL. More...
 
Bool_t fOADBForPHOS
 Get calibration from OADB for PHOS. More...
 
TString fOADBFilePathEMCAL
 Default path $ALICE_PHYSICS/OADB/EMCAL, if needed change. More...
 
TString fOADBFilePathPHOS
 Default path $ALICE_PHYSICS/OADB/PHOS, if needed change. More...
 
Bool_t fImportGeometryFromFile
 Import geometry settings in geometry.root file. More...
 
TString fImportGeometryFilePath
 Path fo geometry.root file. More...
 
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. More...
 
Int_t fFirstSuperModuleUsed
 Number of first supermodule to be used in analysis, to activate only certain range (DCal or EMCal) More...
 
Int_t fLastSuperModuleUsed
 Number of last supermodule to be used in analysis, to activate only certain range (DCal or EMCal) More...
 
Int_t fRunNumber
 Run number of the data, take it from data itself unless set by user. More...
 
Bool_t fMCECellClusFracCorrOn
 Correct or not the weight of cells in cluster. More...
 
Float_t fMCECellClusFracCorrParam [4]
 Parameters for the function correcting the weight of the cells in the cluster. More...
 

Detailed Description

Class with utils specific to calorimeter clusters/cells.

Class containing utility methods for calorimeters. It performs calibration, cluster splitting (EMCal), geometry initialization, OADB initialization, plus other goodies. For EMCal, it relys heavyly in AliEMCALRecoUtils.

More information can be found in this twiki.

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 44 of file AliCalorimeterUtils.h.

Constructor & Destructor Documentation

AliCalorimeterUtils::AliCalorimeterUtils ( )

Constructor. Initialize parameters.

Definition at line 54 of file AliCalorimeterUtils.cxx.

AliCalorimeterUtils::~AliCalorimeterUtils ( )
virtual

Definition at line 88 of file AliCalorimeterUtils.cxx.

AliCalorimeterUtils::AliCalorimeterUtils ( const AliCalorimeterUtils cu)
private

Copy constructor not implemented.

Member Function Documentation

void AliCalorimeterUtils::AccessGeometry ( AliVEvent *  inputEvent)

Set the calorimeters transformation, alignmnet matrices and init geometry at least once.

Definition at line 439 of file AliCalorimeterUtils.cxx.

Referenced by AliAnalysisTaskEmcalRun2QA::ExecOnce(), Get_RowCollumnID(), GetBestPeriodSplitting(), BadChannelAna::Init(), Plot2DCells(), AliAnaCaloTrackCorrMaker::ProcessEvent(), SummarizeRunByRun(), and Test_OADB().

void AliCalorimeterUtils::AccessOADB ( AliVEvent *  event)

Set the AODB calibration, bad channels etc. parameters at least once.

Definition at line 113 of file AliCalorimeterUtils.cxx.

Referenced by AliAnalysisTaskEmcalRun2QA::ExecOnce(), and AliAnaCaloTrackCorrMaker::ProcessEvent().

Bool_t AliCalorimeterUtils::AreNeighbours ( Int_t  calo,
Int_t  absId1,
Int_t  absId2 
) const

Decide if two cells are neighbours A neighbour is defined as being two cells which share a side or corner.

Definition at line 585 of file AliCalorimeterUtils.cxx.

Referenced by AliAnaInsideClusterInvariantMass::CheckLocalMaximaMCOrigin(), GetNumberOfLocalMaxima(), and SplitEnergy().

Bool_t AliCalorimeterUtils::CheckCellFiducialRegion ( AliVCluster *  cluster,
AliVCaloCells *  cells 
) const

Given the list of AbsId of the cluster, get the maximum cell and check if there are fNCellsFromBorder from the calorimeter border.

Definition at line 654 of file AliCalorimeterUtils.cxx.

Referenced by CheckCellFiducialRegion(), AliCaloTrackReader::FillInputPHOS(), and AliTrackComparisonESD::ProcessEMCAL().

Bool_t AliCalorimeterUtils::CheckCellFiducialRegion ( AliVCluster *  cluster,
AliVCaloCells *  cells,
AliVEvent *  ,
Int_t   
)
inline

Definition at line 207 of file AliCalorimeterUtils.h.

Bool_t AliCalorimeterUtils::ClusterContainsBadChannel ( Int_t  calorimeter,
UShort_t cellList,
Int_t  nCells 
)

Check that in the cluster cells, there is no bad channel of those stored in fEMCALBadChannelMap or fPHOSBadChannelMap

Definition at line 765 of file AliCalorimeterUtils.cxx.

Referenced by AliTrackComparisonESD::ProcessEMCAL().

Bool_t AliCalorimeterUtils::ClusterContainsBadChannel ( TString  ,
UShort_t ,
Int_t   
)
inline

Definition at line 180 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::CorrectClusterEnergy ( AliVCluster *  cl)

Correct cluster energy non linearity.

Definition at line 808 of file AliCalorimeterUtils.cxx.

Referenced by AliCaloTrackReader::FillInputEMCALAlgorithm(), and SplitEnergy().

TString AliCalorimeterUtils::EMCALGeometryName ( ) const
inline

Definition at line 105 of file AliCalorimeterUtils.h.

Float_t AliCalorimeterUtils::GetCutEta ( ) const
inline

Definition at line 353 of file AliCalorimeterUtils.h.

Float_t AliCalorimeterUtils::GetCutPhi ( ) const
inline

Definition at line 357 of file AliCalorimeterUtils.h.

Float_t AliCalorimeterUtils::GetCutR ( ) const
inline

Definition at line 349 of file AliCalorimeterUtils.h.

Float_t AliCalorimeterUtils::GetCutZ ( ) const
inline

Definition at line 345 of file AliCalorimeterUtils.h.

virtual Int_t AliCalorimeterUtils::GetDebug ( ) const
inlinevirtual

Definition at line 53 of file AliCalorimeterUtils.h.

Referenced by AliAnaCaloTrackCorrMaker::Init().

Float_t AliCalorimeterUtils::GetECross ( Int_t  absID,
AliVCaloCells *  cells,
Int_t  bc 
)
Returns
energy in cross axis around cell. For both calorimeters. For EMCal, same procedure as in AliEMCALRecoUtils.
Parameters
absIDcell absolute ID naumber
cellstotal list of cells in calo
bcbunch crossing number

Definition at line 822 of file AliCalorimeterUtils.cxx.

Referenced by AliAnaClusterShapeCorrelStudies::ClusterLoopHistograms(), AliAnaCalorimeterQA::ClusterLoopHistograms(), and AliAnaParticleIsolation::MakeAnalysisFillHistograms().

Float_t AliCalorimeterUtils::GetEMCALChannelRecalibrationFactor ( Int_t  iSM,
Int_t  iCol,
Int_t  iRow 
) const
inline

Definition at line 229 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), GetMaxEnergyCell(), and RecalibrateCellAmplitude().

TH2F* AliCalorimeterUtils::GetEMCALChannelRecalibrationFactors ( Int_t  iSM) const
inline

Definition at line 247 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

Int_t AliCalorimeterUtils::GetEMCALChannelStatus ( Int_t  iSM,
Int_t  iCol,
Int_t  iRow 
) const
inline
TH2I* AliCalorimeterUtils::GetEMCALChannelStatusMap ( Int_t  iSM) const
inline

Definition at line 173 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

Float_t AliCalorimeterUtils::GetEMCALChannelTimeRecalibrationFactor ( Int_t  bc,
Int_t  absID 
) const
inline

Definition at line 274 of file AliCalorimeterUtils.h.

TH1F* AliCalorimeterUtils::GetEMCALChannelTimeRecalibrationFactors ( Int_t  bc) const
inline

Definition at line 280 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), and GetEMCALChannelTimeRecalibrationFactors().

TH1C* AliCalorimeterUtils::GetEMCALL1PhaseInTimeRecalibrationForAllSM ( ) const
inline

Definition at line 294 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

Int_t AliCalorimeterUtils::GetEMCALL1PhaseInTimeRecalibrationForSM ( Int_t  iSM) const
inline

Definition at line 291 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::GetEMCALSubregion ( AliVCluster *  clus,
AliVCaloCells *  cells,
Int_t regEta,
Int_t regPhi 
) const

Select EMCal SM regions, depending on its location in a SM, behind frames, close to borders, etc. Current regions are valid for EMCal, rethink for DCal and 1/3 SMs

Parameters
cluscluster, access to highest energy tower
cellslist of cells, needed to find highest energy tower
regEtaeta sub-region index
regPhiphi sub-region index
Returns
integer with location

Definition at line 870 of file AliCalorimeterUtils.cxx.

Referenced by AliAnaPhoton::FillShowerShapeHistograms().

Bool_t AliCalorimeterUtils::GetFECCorrelatedCellAbsId ( Int_t  absId,
Int_t  absIdCorr[4] 
) const

Fill array with 4 possibly correlated channels absId

Parameters
absIdReference absId cell
absIdCorrList of cells correlated to absId, absId is included
Returns
true if 4 channels found

Definition at line 933 of file AliCalorimeterUtils.cxx.

Int_t AliCalorimeterUtils::GetFirstSuperModuleUsed ( ) const
inline
Int_t AliCalorimeterUtils::GetLastSuperModuleUsed ( ) const
inline
Float_t AliCalorimeterUtils::GetLocalMaximaCutE ( ) const
inline
Float_t AliCalorimeterUtils::GetLocalMaximaCutEDiff ( ) const
inline
void AliCalorimeterUtils::GetMatchedResiduals ( Int_t  index,
Float_t dR,
Float_t dZ 
)
inline

Definition at line 334 of file AliCalorimeterUtils.h.

AliVTrack * AliCalorimeterUtils::GetMatchedTrack ( AliVCluster *  cluster,
AliVEvent *  event,
Int_t  index = -1 
) const

Return the matched track to the cluster given its index. It is usually just the first match, default value. Since it is different for ESDs and AODs here it is a wrap method to do it.

Definition at line 1097 of file AliCalorimeterUtils.cxx.

Referenced by AliAnaCalorimeterQA::ClusterMatchedWithTrackHistograms(), AliAnaPi0EbE::FillSelectedClusterHistograms(), AliAnaInsideClusterInvariantMass::FillTrackMatchingHistograms(), AliAnaPhoton::FillTrackMatchingResidualHistograms(), and AliAnaElectron::MakeAnalysisFillAOD().

Float_t AliCalorimeterUtils::GetMCECellClusFracCorrection ( Float_t  eCell,
Float_t  eCluster 
) const
Int_t AliCalorimeterUtils::GetModuleNumber ( AliCaloTrackParticle particle,
AliVEvent *  inputEvent 
) const

Get the EMCAL/PHOS module number that corresponds to this particle.

Definition at line 1174 of file AliCalorimeterUtils.cxx.

Referenced by AliAnaCaloTrackCorrBaseClass::GetModuleNumber(), and AliAnaPhotonConvInCalo::MakeAnalysisFillHistograms().

Int_t AliCalorimeterUtils::GetModuleNumber ( AliVCluster *  cluster) const

Get the EMCAL/PHOS module number that corresponds to this cluster.

Definition at line 1225 of file AliCalorimeterUtils.cxx.

Int_t AliCalorimeterUtils::GetModuleNumberCellIndexes ( Int_t  absId,
Int_t  calo,
Int_t icol,
Int_t irow,
Int_t iRCU 
) const
Int_t AliCalorimeterUtils::GetModuleNumberCellIndexesAbsCaloMap ( Int_t  absId,
Int_t  calo,
Int_t icol,
Int_t irow,
Int_t iRCU,
Int_t icolAbs,
Int_t irowAbs 
) const

Same as GetModuleCellIndexes, but add an additional shift in col/row to have continuous cell distribution from supermodule to supermodule.

Definition at line 1343 of file AliCalorimeterUtils.cxx.

Referenced by AliAnalysisTaskEmcalRun2QA::DoCellLoop(), AliAnalysisTaskEmcalRun2QA::DoClusterLoop(), BadChannelAna::FlagAsBad(), Get_RowCollumnID(), AliAnaCaloTrackCorrBaseClass::GetModuleNumberCellIndexesAbsCaloMap(), Plot2DCells(), BadChannelAna::PlotFlaggedCells2D(), SummarizeRunByRun(), and Test_OADB().

Int_t AliCalorimeterUtils::GetNMaskCellColumns ( ) const
inline

Definition at line 183 of file AliCalorimeterUtils.h.

Referenced by AliCaloTrackReader::FillInputEMCALAlgorithm().

Int_t AliCalorimeterUtils::GetNumberOfCellsFromEMCALBorder ( ) const
inline

Definition at line 212 of file AliCalorimeterUtils.h.

Int_t AliCalorimeterUtils::GetNumberOfCellsFromPHOSBorder ( ) const
inline

Definition at line 210 of file AliCalorimeterUtils.h.

Int_t AliCalorimeterUtils::GetNumberOfLocalMaxima ( AliVCluster *  cluster,
AliVCaloCells *  cells,
Int_t absIdList,
Float_t maxEList 
)

Find the number of local maxima in cluster.

Definition at line 1405 of file AliCalorimeterUtils.cxx.

Int_t AliCalorimeterUtils::GetNumberOfSuperModulesUsed ( ) const
inline
TString AliCalorimeterUtils::GetPass ( )

Get passx from filename.

Definition at line 1555 of file AliCalorimeterUtils.cxx.

Referenced by AccessOADB().

Float_t AliCalorimeterUtils::GetPHOSChannelRecalibrationFactor ( Int_t  imod,
Int_t  iCol,
Int_t  iRow 
) const
inline

Definition at line 232 of file AliCalorimeterUtils.h.

Referenced by GetMaxEnergyCell(), and RecalibrateCellAmplitude().

TH2F* AliCalorimeterUtils::GetPHOSChannelRecalibrationFactors ( Int_t  imod) const
inline

Definition at line 248 of file AliCalorimeterUtils.h.

Int_t AliCalorimeterUtils::GetPHOSChannelStatus ( Int_t  imod,
Int_t  iCol,
Int_t  iRow 
) const
inline

Definition at line 159 of file AliCalorimeterUtils.h.

Referenced by ClusterContainsBadChannel().

TH2I* AliCalorimeterUtils::GetPHOSChannelStatusMap ( Int_t  imod) const
inline

Definition at line 174 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

AliPHOSGeoUtils* AliCalorimeterUtils::GetPHOSGeometry ( ) const
inline
Int_t AliCalorimeterUtils::GetRunNumber ( ) const
inline

Definition at line 392 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::InitEMCALGeometry ( )

Initialize EMCAL geometry if it did not exist previously.

Definition at line 1700 of file AliCalorimeterUtils.cxx.

Referenced by AccessGeometry(), and AliTrackComparisonESD::InitCaloUtil().

void AliCalorimeterUtils::InitParameters ( )
virtual

Initialize the parameters of the analysis.

Definition at line 1596 of file AliCalorimeterUtils.cxx.

Referenced by AliCalorimeterUtils().

void AliCalorimeterUtils::InitPHOSBadChannelStatusMap ( )

Init PHOS bad channels map.

Definition at line 1639 of file AliCalorimeterUtils.cxx.

Referenced by SetPHOSChannelStatus(), and SwitchOnBadChannelsRemoval().

void AliCalorimeterUtils::InitPHOSGeometry ( )

Initialize PHOS geometry if it did not exist previously.

Definition at line 1739 of file AliCalorimeterUtils.cxx.

Referenced by AccessGeometry().

void AliCalorimeterUtils::InitPHOSRecalibrationFactors ( )

Init PHOS recalibration factors.

Definition at line 1662 of file AliCalorimeterUtils.cxx.

Referenced by SetPHOSChannelRecalibrationFactor(), and SwitchOnRecalibration().

Bool_t AliCalorimeterUtils::IsAbsIDsFromTCard ( Int_t  absId1,
Int_t  absId2,
Int_t rowDiff,
Int_t colDiff 
) const

Check if 2 cells belong to the same TCard

Parameters
absId1Reference absId cell
absId2Cross checked cell absId
rowDiffDistance in rows
colDiffDistance in columns
Returns
true if belong to same TCard

Definition at line 983 of file AliCalorimeterUtils.cxx.

Bool_t AliCalorimeterUtils::IsBadChannelsRemovalSwitchedOn ( ) const
inline

Definition at line 143 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

Bool_t AliCalorimeterUtils::IsClusterSharedByTwoSuperModules ( const AliEMCALGeometry *  geom,
AliVCluster *  cluster 
)

Checks if all of the cells in the cluster belongs to the same SuperModule. EMCal (not DCal, except 1/3 SM and not PHOS) can share clusters at eta=0.

Definition at line 619 of file AliCalorimeterUtils.cxx.

Bool_t AliCalorimeterUtils::IsCorrectionOfClusterEnergyOn ( ) const
inline

Definition at line 305 of file AliCalorimeterUtils.h.

Referenced by AliCaloTrackReader::FillInputEMCALAlgorithm().

Bool_t AliCalorimeterUtils::IsDistanceToBadChannelRecalculated ( ) const
inline

Definition at line 150 of file AliCalorimeterUtils.h.

Bool_t AliCalorimeterUtils::IsEMCALGeoMatrixSet ( ) const
inline
Bool_t AliCalorimeterUtils::IsEMCALNoBorderAtEta0 ( ) const
inline

Definition at line 215 of file AliCalorimeterUtils.h.

Bool_t AliCalorimeterUtils::IsL1PhaseInTimeRecalibrationOn ( ) const
inline

Definition at line 287 of file AliCalorimeterUtils.h.

Referenced by Print(), and RecalibrateCellTimeL1Phase().

Bool_t AliCalorimeterUtils::IsMCECellClusFracCorrectionOn ( ) const
inline
Bool_t AliCalorimeterUtils::IsMCParticleInCalorimeterAcceptance ( Int_t  calo,
AliVParticle *  particle 
)
Bool_t AliCalorimeterUtils::IsMCParticleInCalorimeterAcceptance ( Int_t  calo,
TParticle *  particle 
)

Definition at line 1755 of file AliCalorimeterUtils.cxx.

Bool_t AliCalorimeterUtils::IsMCParticleInCalorimeterAcceptance ( Int_t  calo,
AliAODMCParticle *  particle 
)

Check that a MC AOD is in the calorimeter acceptance.

Definition at line 1793 of file AliCalorimeterUtils.cxx.

Bool_t AliCalorimeterUtils::IsMCParticleInCalorimeterAcceptance ( Int_t  calo,
Float_t  eta,
Float_t  theta,
Float_t  phi,
Int_t absID 
)

Definition at line 1877 of file AliCalorimeterUtils.cxx.

Bool_t AliCalorimeterUtils::IsPHOSGeoMatrixSet ( ) const
inline

Definition at line 114 of file AliCalorimeterUtils.h.

Referenced by IsMCParticleInCalorimeterAcceptance().

Bool_t AliCalorimeterUtils::IsRecalculationOfClusterPositionOn ( ) const
inline

Definition at line 310 of file AliCalorimeterUtils.h.

Bool_t AliCalorimeterUtils::IsRecalculationOfClusterTrackMatchingOn ( ) const
inline

Definition at line 343 of file AliCalorimeterUtils.h.

Referenced by GetMatchedTrack().

Bool_t AliCalorimeterUtils::IsTimeRecalibrationOn ( ) const
inline

Definition at line 270 of file AliCalorimeterUtils.h.

Referenced by Print(), and RecalibrateCellTime().

Bool_t AliCalorimeterUtils::MaskFrameCluster ( Int_t  iSM,
Int_t  ieta 
) const

Check if cell is in one of the regions where we have significant amount of material in front. Only EMCAL.

Definition at line 1920 of file AliCalorimeterUtils.cxx.

AliCalorimeterUtils& AliCalorimeterUtils::operator= ( const AliCalorimeterUtils cu)
private

Assignment operator not implemented.

TString AliCalorimeterUtils::PHOSGeometryName ( ) const
inline

Definition at line 111 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::Print ( const Option_t opt) const
virtual

Print some relevant parameters set for the analysis.

Definition at line 1939 of file AliCalorimeterUtils.cxx.

Referenced by AddTaskCalorimeterQA(), ConfigureCaloUtils(), AliTrackComparisonESD::InitCaloUtil(), and AliAnaCaloTrackCorrMaker::Print().

void AliCalorimeterUtils::RecalculateClusterDistanceToBadChannel ( AliVCaloCells *  cells,
AliVCluster *  clu 
)
inline

Definition at line 317 of file AliCalorimeterUtils.h.

Referenced by AliCaloTrackReader::FillInputEMCALAlgorithm().

void AliCalorimeterUtils::RecalculateClusterPID ( AliVCluster *  clu)
inline

Definition at line 320 of file AliCalorimeterUtils.h.

Referenced by AliCaloTrackReader::FillInputEMCALAlgorithm().

void AliCalorimeterUtils::RecalculateClusterPosition ( AliVCaloCells *  cells,
AliVCluster *  clu 
)

Recalculate EMCAL cluster position. The cluster new position is already modified.

Definition at line 2094 of file AliCalorimeterUtils.cxx.

Referenced by AliCaloTrackReader::FillInputEMCALAlgorithm().

void AliCalorimeterUtils::RecalculateClusterShowerShapeParameters ( AliVCaloCells *  cells,
AliVCluster *  clu 
)
inline

Definition at line 314 of file AliCalorimeterUtils.h.

Referenced by AliCaloTrackReader::FillInputEMCALAlgorithm().

void AliCalorimeterUtils::RecalculateClusterTrackMatching ( AliVEvent *  event,
TObjArray clusterArray = 0x0,
AliMCEvent *  mc = 0x0 
)

Recalculate track matching and set the new residuals in the cluster.

Parameters
eventpointer to input event
clusterArraylist of clusters
mcaccess to MC event

Definition at line 2107 of file AliCalorimeterUtils.cxx.

Referenced by AliCaloTrackReader::FillInputEMCAL().

void AliCalorimeterUtils::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.

Definition at line 1998 of file AliCalorimeterUtils.cxx.

Referenced by AliAnaCalorimeterQA::CellHistograms().

Float_t AliCalorimeterUtils::RecalibrateClusterEnergy ( AliVCluster *  cluster,
AliVCaloCells *  cells 
)
Float_t AliCalorimeterUtils::RecalibrateClusterEnergyWeightCell ( AliVCluster *  cluster,
AliVCaloCells *  cells,
Float_t  energyOrg 
)

Recalibrate the cluster energy, considering the recalibration map and the energy of the cells that compose the cluster. Also consider reweighting of cells energy.

Definition at line 2052 of file AliCalorimeterUtils.cxx.

Referenced by AliAnaInsideClusterInvariantMass::FillSSWeightHistograms(), GetNumberOfLocalMaxima(), and AliAnaInsideClusterInvariantMass::RecalculateClusterShowerShapeParametersWithCellCut().

void AliCalorimeterUtils::SetCutEta ( Float_t  e)
inline

Definition at line 354 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetCutPhi ( Float_t  p)
inline

Definition at line 358 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetCutR ( Float_t  r)
inline

Definition at line 350 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetCutZ ( Float_t  z)
inline

Definition at line 346 of file AliCalorimeterUtils.h.

virtual void AliCalorimeterUtils::SetDebug ( Int_t  d)
inlinevirtual

Definition at line 54 of file AliCalorimeterUtils.h.

Referenced by AddTaskCalorimeterQA(), and ConfigureCaloUtils().

void AliCalorimeterUtils::SetEMCALChannelRecalibrationFactor ( Int_t  iSM,
Int_t  iCol,
Int_t  iRow,
Double_t  c = 1 
)
inline

Definition at line 237 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

void AliCalorimeterUtils::SetEMCALChannelRecalibrationFactors ( Int_t  iSM,
TH2F h 
)
inline

Definition at line 244 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

void AliCalorimeterUtils::SetEMCALChannelRecalibrationFactors ( TObjArray map)
inline

Definition at line 250 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALChannelStatus ( Int_t  iSM,
Int_t  iCol,
Int_t  iRow,
Double_t  c = 1 
)
inline

Definition at line 163 of file AliCalorimeterUtils.h.

Referenced by AliTrackComparisonESD::InitCaloUtil().

void AliCalorimeterUtils::SetEMCALChannelStatusMap ( Int_t  iSM,
TH2I *  h 
)
inline

Definition at line 170 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

void AliCalorimeterUtils::SetEMCALChannelStatusMap ( TObjArray map)
inline

Definition at line 176 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALChannelTimeRecalibrationFactor ( Int_t  bc,
Int_t  absID,
Double_t  c = 0 
)
inline

Definition at line 277 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALChannelTimeRecalibrationFactors ( TObjArray map)
inline

Definition at line 281 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

void AliCalorimeterUtils::SetEMCALChannelTimeRecalibrationFactors ( Int_t  bc,
TH1F *  h 
)
inline

Definition at line 282 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALGeometryMatrixInSM ( TGeoHMatrix *  m,
Int_t  i 
)
inline

Definition at line 130 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALGeometryName ( TString  name)
inline

Definition at line 106 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALL1PhaseInTimeRecalibrationForAllSM ( TObjArray map)
inline

Definition at line 295 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

void AliCalorimeterUtils::SetEMCALL1PhaseInTimeRecalibrationForAllSM ( TH1C *  h)
inline

Definition at line 296 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALL1PhaseInTimeRecalibrationForSM ( Int_t  iSM,
Int_t  c = 0 
)
inline

Definition at line 292 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALOADBFilePath ( TString  path)
inline

Definition at line 375 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetEMCALRecoUtils ( AliEMCALRecoUtils *  ru)
inline

Definition at line 302 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetFirstSuperModuleUsed ( Int_t  first)
inline

Definition at line 385 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SetImportGeometryFromFile ( Bool_t  import,
TString  path = "" 
)
inline

Definition at line 118 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetLastSuperModuleUsed ( Int_t  last)
inline

Definition at line 387 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SetLocalMaximaCutE ( Float_t  cut)
inline
void AliCalorimeterUtils::SetLocalMaximaCutEDiff ( Float_t  c)
inline
void AliCalorimeterUtils::SetMaskCellColumn ( Int_t  ipos,
Int_t  icol 
)
inline

Definition at line 187 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetMCECellClusFracCorrectionParamters ( Int_t  i,
Float_t  param 
)
inline

Definition at line 94 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetNMaskCellColumns ( Int_t  n)
inline

Definition at line 184 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetNumberOfCellsFromEMCALBorder ( Int_t  n)
inline
void AliCalorimeterUtils::SetNumberOfCellsFromPHOSBorder ( Int_t  n)
inline

Definition at line 209 of file AliCalorimeterUtils.h.

Referenced by AddTaskCaloTrackCorrM(), and ConfigureCaloUtils().

void AliCalorimeterUtils::SetNumberOfSuperModulesUsed ( Int_t  nSM)
inline
void AliCalorimeterUtils::SetPHOSChannelRecalibrationFactor ( Int_t  imod,
Int_t  iCol,
Int_t  iRow,
Double_t  c = 1 
)
inline

Definition at line 240 of file AliCalorimeterUtils.h.

Referenced by InitPHOSRecalibrationFactors().

void AliCalorimeterUtils::SetPHOSChannelRecalibrationFactors ( Int_t  imod,
TH2F h 
)
inline

Definition at line 245 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetPHOSChannelRecalibrationFactors ( TObjArray map)
inline

Definition at line 251 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetPHOSChannelStatus ( Int_t  imod,
Int_t  iCol,
Int_t  iRow,
Double_t  c = 1 
)
inline

Definition at line 166 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetPHOSChannelStatusMap ( Int_t  imod,
TH2I *  h 
)
inline

Definition at line 171 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

void AliCalorimeterUtils::SetPHOSChannelStatusMap ( TObjArray map)
inline

Definition at line 177 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetPHOSGeometryMatrixInSM ( TGeoHMatrix *  m,
Int_t  i 
)
inline

Definition at line 134 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetPHOSGeometryName ( TString  name)
inline

Definition at line 112 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetPHOSOADBFilePath ( TString  path)
inline

Definition at line 376 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SetRunNumber ( Int_t  run)
inline
void AliCalorimeterUtils::SplitEnergy ( Int_t  absId1,
Int_t  absId2,
AliVCluster *  cluster,
AliVCaloCells *  cells,
AliAODCaloCluster *  cluster1,
AliAODCaloCluster *  cluster2,
Int_t  nMax,
Int_t  eventNumber = 0 
)

Split energy of cluster between the 2 local maxima, sum energy on 3x3, and if the 2 maxima are too close and have common cells, split the energy between the 2.

Parameters
absId1index of highest energy cell in the cluster.
absId2index of second highest energy cell in the cluster.
clusteroriginal cluster pointer.
cellslist of cells.
cluster1output sub-cluster.
cluster2output sub-cluster.
nMaxNumber of local maxima of original cluster.
eventNumberEvent number needed for debugging and plotting.

Posibility to plot the clusters and sub-clusters.

Definition at line 2195 of file AliCalorimeterUtils.cxx.

Referenced by AliCaloPID::GetIdentifiedParticleTypeFromClusterSplitting().

void AliCalorimeterUtils::SwitchOffBadChannelsRemoval ( )
inline

Definition at line 147 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffClusterPlot ( )
inline

Definition at line 91 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffCorrectClusterLinearity ( )
inline

Definition at line 307 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffDistToBadChannelRecalculation ( )
inline

Definition at line 152 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOffEMCALOADB ( )
inline

Definition at line 370 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffL1PhaseInTimeRecalibration ( )
inline

Definition at line 288 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOffLoadOwnEMCALGeometryMatrices ( )
inline

Definition at line 129 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffLoadOwnPHOSGeometryMatrices ( )
inline

Definition at line 133 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffMCECellClusFracCorrection ( )
inline

Definition at line 98 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOffNoFiducialBorderInEMCALEta0 ( )
inline

Definition at line 214 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOffPHOSOADB ( )
inline

Definition at line 373 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOffRecalculateClusterPosition ( )
inline

Definition at line 312 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOffRecalculateClusterTrackMatching ( )
inline

Definition at line 342 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffRecalibration ( )
inline

Definition at line 224 of file AliCalorimeterUtils.h.

Referenced by AddTaskCalorimeterQA(), and ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffRunDepCorrection ( )
inline

Definition at line 263 of file AliCalorimeterUtils.h.

Referenced by AddTaskCalorimeterQA(), and ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOffTimeRecalibration ( )
inline

Definition at line 271 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOnBadChannelsRemoval ( )
inline
void AliCalorimeterUtils::SwitchOnClusterPlot ( )
inline

Definition at line 90 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOnCorrectClusterLinearity ( )
inline

Definition at line 306 of file AliCalorimeterUtils.h.

Referenced by AddTaskCalorimeterQA(), and ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOnDistToBadChannelRecalculation ( )
inline

Definition at line 151 of file AliCalorimeterUtils.h.

Referenced by AccessOADB().

void AliCalorimeterUtils::SwitchOnEMCALOADB ( )
inline

Definition at line 369 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOnL1PhaseInTimeRecalibration ( )
inline

Definition at line 289 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOnLoadOwnEMCALGeometryMatrices ( )
inline

Definition at line 128 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOnLoadOwnPHOSGeometryMatrices ( )
inline

Definition at line 132 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOnMCECellClusFracCorrection ( )
inline

Definition at line 97 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOnNoFiducialBorderInEMCALEta0 ( )
inline

Definition at line 213 of file AliCalorimeterUtils.h.

Referenced by AliTrackComparisonESD::InitCaloUtil().

void AliCalorimeterUtils::SwitchOnPHOSOADB ( )
inline

Definition at line 372 of file AliCalorimeterUtils.h.

void AliCalorimeterUtils::SwitchOnRecalculateClusterPosition ( )
inline

Definition at line 311 of file AliCalorimeterUtils.h.

Referenced by AddTaskCalorimeterQA(), and ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOnRecalculateClusterTrackMatching ( )
inline

Definition at line 341 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOnRecalibration ( )
inline

Definition at line 222 of file AliCalorimeterUtils.h.

Referenced by AddTaskCalorimeterQA(), and ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOnRunDepCorrection ( )
inline

Definition at line 264 of file AliCalorimeterUtils.h.

Referenced by ConfigureCaloUtils().

void AliCalorimeterUtils::SwitchOnTimeRecalibration ( )
inline

Definition at line 272 of file AliCalorimeterUtils.h.

Member Data Documentation

Bool_t AliCalorimeterUtils::fCorrectELinearity
private

Correct cluster energy linearity.

Definition at line 439 of file AliCalorimeterUtils.h.

Referenced by IsCorrectionOfClusterEnergyOn(), Print(), SwitchOffCorrectClusterLinearity(), and SwitchOnCorrectClusterLinearity().

Float_t AliCalorimeterUtils::fCutEta
private

dEta cut on matching (EMCAL).

Definition at line 447 of file AliCalorimeterUtils.h.

Referenced by GetCutEta(), and SetCutEta().

Float_t AliCalorimeterUtils::fCutPhi
private

dPhi cut on matching (EMCAL).

Definition at line 449 of file AliCalorimeterUtils.h.

Referenced by GetCutPhi(), and SetCutPhi().

Float_t AliCalorimeterUtils::fCutR
private

dR cut on matching (PHOS).

Definition at line 443 of file AliCalorimeterUtils.h.

Referenced by GetCutR(), Print(), and SetCutR().

Float_t AliCalorimeterUtils::fCutZ
private

dZ cut on matching (EMCAL/PHOS).

Definition at line 445 of file AliCalorimeterUtils.h.

Referenced by GetCutZ(), Print(), and SetCutZ().

Int_t AliCalorimeterUtils::fDebug
private

Debugging level.

Definition at line 396 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), GetDebug(), and SetDebug().

Bool_t AliCalorimeterUtils::fEMCALGeoMatrixSet
private

Check if the transformation matrix is set for EMCAL.

Definition at line 406 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), InitParameters(), and IsEMCALGeoMatrixSet().

TString AliCalorimeterUtils::fEMCALGeoName
private

Name of geometry to use for EMCAL.

Definition at line 398 of file AliCalorimeterUtils.h.

Referenced by EMCALGeometryName(), InitEMCALGeometry(), InitParameters(), and SetEMCALGeometryName().

TGeoHMatrix* AliCalorimeterUtils::fEMCALMatrix[22]
private

Geometry matrices with alignments.

Definition at line 412 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), AliCalorimeterUtils(), and SetEMCALGeometryMatrixInSM().

AliEMCALRecoUtils* AliCalorimeterUtils::fEMCALRecoUtils
private

EMCAL utils for cluster rereconstruction.

Definition at line 435 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), CheckCellFiducialRegion(), ClusterContainsBadChannel(), CorrectClusterEnergy(), GetECross(), GetEMCALChannelRecalibrationFactor(), GetEMCALChannelRecalibrationFactors(), GetEMCALChannelStatus(), GetEMCALChannelStatusMap(), GetEMCALChannelTimeRecalibrationFactor(), GetEMCALChannelTimeRecalibrationFactors(), GetEMCALL1PhaseInTimeRecalibrationForAllSM(), GetEMCALL1PhaseInTimeRecalibrationForSM(), GetEMCALRecoUtils(), GetMatchedResiduals(), GetMatchedTrack(), GetNumberOfCellsFromEMCALBorder(), IsDistanceToBadChannelRecalculated(), IsEMCALNoBorderAtEta0(), IsL1PhaseInTimeRecalibrationOn(), IsTimeRecalibrationOn(), Print(), RecalculateClusterDistanceToBadChannel(), RecalculateClusterPID(), RecalculateClusterPosition(), RecalculateClusterShowerShapeParameters(), RecalculateClusterTrackMatching(), SetCutEta(), SetCutPhi(), SetCutR(), SetEMCALChannelRecalibrationFactor(), SetEMCALChannelRecalibrationFactors(), SetEMCALChannelStatus(), SetEMCALChannelStatusMap(), SetEMCALChannelTimeRecalibrationFactor(), SetEMCALChannelTimeRecalibrationFactors(), SetEMCALL1PhaseInTimeRecalibrationForAllSM(), SetEMCALL1PhaseInTimeRecalibrationForSM(), SetEMCALRecoUtils(), SetNumberOfCellsFromEMCALBorder(), SwitchOffBadChannelsRemoval(), SwitchOffDistToBadChannelRecalculation(), SwitchOffL1PhaseInTimeRecalibration(), SwitchOffNoFiducialBorderInEMCALEta0(), SwitchOffRecalibration(), SwitchOffTimeRecalibration(), SwitchOnBadChannelsRemoval(), SwitchOnDistToBadChannelRecalculation(), SwitchOnL1PhaseInTimeRecalibration(), SwitchOnNoFiducialBorderInEMCALEta0(), SwitchOnRecalibration(), SwitchOnTimeRecalibration(), and ~AliCalorimeterUtils().

Int_t AliCalorimeterUtils::fFirstSuperModuleUsed
private

Number of first supermodule to be used in analysis, to activate only certain range (DCal or EMCal)

Definition at line 472 of file AliCalorimeterUtils.h.

Referenced by GetFirstSuperModuleUsed(), and SetFirstSuperModuleUsed().

TString AliCalorimeterUtils::fImportGeometryFilePath
private

Path fo geometry.root file.

Definition at line 469 of file AliCalorimeterUtils.h.

Referenced by InitEMCALGeometry(), InitParameters(), and SetImportGeometryFromFile().

Bool_t AliCalorimeterUtils::fImportGeometryFromFile
private

Import geometry settings in geometry.root file.

Definition at line 467 of file AliCalorimeterUtils.h.

Referenced by InitEMCALGeometry(), InitParameters(), and SetImportGeometryFromFile().

Int_t AliCalorimeterUtils::fLastSuperModuleUsed
private

Number of last supermodule to be used in analysis, to activate only certain range (DCal or EMCal)

Definition at line 473 of file AliCalorimeterUtils.h.

Referenced by GetLastSuperModuleUsed(), and SetLastSuperModuleUsed().

Bool_t AliCalorimeterUtils::fLoadEMCALMatrices
private

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

Definition at line 410 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), SwitchOffLoadOwnEMCALGeometryMatrices(), and SwitchOnLoadOwnEMCALGeometryMatrices().

Bool_t AliCalorimeterUtils::fLoadPHOSMatrices
private

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

Definition at line 414 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), SwitchOffLoadOwnPHOSGeometryMatrices(), and SwitchOnLoadOwnPHOSGeometryMatrices().

Float_t AliCalorimeterUtils::fLocMaxCutE
private

Local maxima cut must have more than this energy.

Definition at line 451 of file AliCalorimeterUtils.h.

Referenced by GetLocalMaximaCutE(), GetNumberOfLocalMaxima(), InitParameters(), Print(), and SetLocalMaximaCutE().

Float_t AliCalorimeterUtils::fLocMaxCutEDiff
private

Local maxima cut, when aggregating cells, next can be a bit higher.

Definition at line 453 of file AliCalorimeterUtils.h.

Referenced by GetLocalMaximaCutEDiff(), GetNumberOfLocalMaxima(), InitParameters(), Print(), and SetLocalMaximaCutEDiff().

Int_t* AliCalorimeterUtils::fMaskCellColumns
private

List of masked cells collumn index.

Definition at line 427 of file AliCalorimeterUtils.h.

Referenced by MaskFrameCluster(), SetMaskCellColumn(), SetNMaskCellColumns(), and ~AliCalorimeterUtils().

Bool_t AliCalorimeterUtils::fMCECellClusFracCorrOn
private

Correct or not the weight of cells in cluster.

Definition at line 477 of file AliCalorimeterUtils.h.

Referenced by GetNumberOfLocalMaxima(), IsMCECellClusFracCorrectionOn(), SwitchOffMCECellClusFracCorrection(), and SwitchOnMCECellClusFracCorrection().

Float_t AliCalorimeterUtils::fMCECellClusFracCorrParam[4]
private

Parameters for the function correcting the weight of the cells in the cluster.

Definition at line 479 of file AliCalorimeterUtils.h.

Referenced by GetMCECellClusFracCorrection(), InitParameters(), and SetMCECellClusFracCorrectionParamters().

Int_t AliCalorimeterUtils::fNCellsFromPHOSBorder
private

Number of cells from PHOS border the cell with maximum amplitude has to be.

Definition at line 422 of file AliCalorimeterUtils.h.

Referenced by CheckCellFiducialRegion(), GetNumberOfCellsFromPHOSBorder(), InitParameters(), Print(), and SetNumberOfCellsFromPHOSBorder().

Int_t AliCalorimeterUtils::fNMaskCellColumns
private

Number of masked columns.

Definition at line 424 of file AliCalorimeterUtils.h.

Referenced by GetNMaskCellColumns(), MaskFrameCluster(), SetMaskCellColumn(), SetNMaskCellColumns(), and ~AliCalorimeterUtils().

Int_t AliCalorimeterUtils::fNSuperModulesUsed
private

Number of supermodules to be used in analysis, can be different than the real geo, to be used at initialization of histograms.

Definition at line 471 of file AliCalorimeterUtils.h.

Referenced by GetNumberOfSuperModulesUsed(), InitParameters(), and SetNumberOfSuperModulesUsed().

TString AliCalorimeterUtils::fOADBFilePathEMCAL
private

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

Definition at line 463 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), AccessOADB(), InitParameters(), and SetEMCALOADBFilePath().

TString AliCalorimeterUtils::fOADBFilePathPHOS
private

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

Definition at line 465 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), AccessOADB(), InitParameters(), and SetPHOSOADBFilePath().

Bool_t AliCalorimeterUtils::fOADBForEMCAL
private

Get calibration from OADB for EMCAL.

Definition at line 459 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), InitParameters(), SwitchOffEMCALOADB(), and SwitchOnEMCALOADB().

Bool_t AliCalorimeterUtils::fOADBForPHOS
private

Get calibration from OADB for PHOS.

Definition at line 461 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), InitParameters(), SwitchOffPHOSOADB(), and SwitchOnPHOSOADB().

Bool_t AliCalorimeterUtils::fOADBSet
private

AODB parameters already set.

Definition at line 457 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), and InitParameters().

TObjArray* AliCalorimeterUtils::fPHOSBadChannelMap
private
AliPHOSGeoUtils* AliCalorimeterUtils::fPHOSGeo
private
Bool_t AliCalorimeterUtils::fPHOSGeoMatrixSet
private

Check if the transformation matrix is set for PHOS.

Definition at line 408 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), InitParameters(), and IsPHOSGeoMatrixSet().

TString AliCalorimeterUtils::fPHOSGeoName
private

Name of geometry to use for PHOS.

Definition at line 400 of file AliCalorimeterUtils.h.

Referenced by InitParameters(), InitPHOSGeometry(), PHOSGeometryName(), and SetPHOSGeometryName().

TGeoHMatrix* AliCalorimeterUtils::fPHOSMatrix[5]
private

Geometry matrices with alignments.

Definition at line 416 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), AliCalorimeterUtils(), and SetPHOSGeometryMatrixInSM().

TObjArray* AliCalorimeterUtils::fPHOSRecalibrationFactors
private
Bool_t AliCalorimeterUtils::fPlotCluster
private

Plot cluster in splitting method.

Definition at line 455 of file AliCalorimeterUtils.h.

Referenced by SplitEnergy(), SwitchOffClusterPlot(), and SwitchOnClusterPlot().

Bool_t AliCalorimeterUtils::fRecalculateMatching
private
Bool_t AliCalorimeterUtils::fRecalculatePosition
private
Bool_t AliCalorimeterUtils::fRecalibration
private

Switch on or off the recalibration.

Definition at line 429 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), IsRecalibrationOn(), Print(), SwitchOffRecalibration(), and SwitchOnRecalibration().

Bool_t AliCalorimeterUtils::fRemoveBadChannels
private

Check the channel status provided and remove clusters with bad channels.

Definition at line 418 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), ClusterContainsBadChannel(), InitParameters(), IsBadChannelsRemovalSwitchedOn(), Print(), SwitchOffBadChannelsRemoval(), and SwitchOnBadChannelsRemoval().

Bool_t AliCalorimeterUtils::fRunDependentCorrection
private

Switch on or off the recalibration dependent on T.

Definition at line 431 of file AliCalorimeterUtils.h.

Referenced by AccessOADB(), Print(), SwitchOffRunDepCorrection(), and SwitchOnRunDepCorrection().

Int_t AliCalorimeterUtils::fRunNumber
private

Run number of the data, take it from data itself unless set by user.

Definition at line 475 of file AliCalorimeterUtils.h.

Referenced by AccessGeometry(), AccessOADB(), GetRunNumber(), InitEMCALGeometry(), InitPHOSGeometry(), and SetRunNumber().


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