AliPhysics  32e057f (32e057f)
AliEmcalCorrectionComponent Class Reference

Base class for correction components in the EMCal correction framework. More...

#include <AliEmcalCorrectionComponent.h>

Inheritance diagram for AliEmcalCorrectionComponent:

Public Member Functions

 AliEmcalCorrectionComponent ()
 AliEmcalCorrectionComponent (const char *name)
virtual ~AliEmcalCorrectionComponent ()
virtual Bool_t Initialize ()
virtual void UserCreateOutputObjects ()
virtual void ExecOnce ()
virtual Bool_t Run ()
virtual Bool_t UserNotify ()
virtual Bool_t CheckIfRunChanged ()
void GetEtaPhiDiff (const AliVTrack *t, const AliVCluster *v, Double_t &phidiff, Double_t &etadiff)
void UpdateCells ()
void GetPass ()
void FillCellQA (TH1F *h)
Int_t InitBadChannels ()
AliParticleContainerAddParticleContainer (const char *n)
AliTrackContainerAddTrackContainer (const char *n)
AliMCParticleContainerAddMCParticleContainer (const char *n)
AliClusterContainerAddClusterContainer (const char *n)
void AdoptParticleContainer (AliParticleContainer *cont)
void AdoptTrackContainer (AliTrackContainer *cont)
void AdoptMCParticleContainer (AliMCParticleContainer *cont)
void AdoptClusterContainer (AliClusterContainer *cont)
AliParticleContainerGetParticleContainer (Int_t i=0) const
AliParticleContainerGetParticleContainer (const char *name) const
AliClusterContainerGetClusterContainer (Int_t i=0) const
AliClusterContainerGetClusterContainer (const char *name) const
AliMCParticleContainerGetMCParticleContainer (Int_t i=0) const
AliMCParticleContainerGetMCParticleContainer (const char *name) const
AliTrackContainerGetTrackContainer (Int_t i=0) const
AliTrackContainerGetTrackContainer (const char *name) const
void RemoveParticleContainer (Int_t i=0)
void RemoveClusterContainer (Int_t i=0)
AliEMCALRecoUtils * GetRecoUtils () const
AliVCaloCells * GetCaloCells () const
TListGetOutputList () const
void SetCaloCells (AliVCaloCells *cells)
void SetRecoUtils (AliEMCALRecoUtils *ru)
void SetInputEvent (AliVEvent *event)
void SetMCEvent (AliMCEvent *mcevent)
void SetUsingInputEvent (bool b=true)
void SetEMCALGeometry (AliEMCALGeometry *geometry)
void SetCentralityBin (Int_t bin)
void SetCentrality (Double_t cent)
void SetNcentralityBins (Int_t n)
void SetVertex (Double_t *vertex)
void SetIsESD (Bool_t isESD)
void SetYAMLConfiguration (PWG::Tools::AliYAMLConfiguration config)
 Set YAML Configuration. More...
template<typename T >
bool GetProperty (std::string propertyName, T &property, bool requiredProperty=true, std::string correctionName="")
 Retrieve property. More...

Protected Attributes

PWG::Tools::AliYAMLConfiguration fYAMLConfig
 Contains the YAML configuration used to configure the component. More...
Bool_t fCreateHisto
 Flag to make some basic histograms. More...
Int_t fRun
 ! Run number More...
TString fFilepass
 Input data pass number. More...
Bool_t fGetPassFromFileName
 Get fFilepass from file name. More...
AliEmcalCorrectionEventManager fEventManager
 Minimal task which inherits from AliAnalysisTaskSE and manages access to the event. More...
Bool_t fEsdMode
 flag for ESD More...
AliMCEvent * fMCEvent
 ! MC More...
Double_t fCent
 ! Event centrality More...
Int_t fNcentBins
 How many centrality bins (this member copied from AliAnalysisTaskEmcal) More...
Int_t fCentBin
 ! Event centrality bin More...
Int_t fNbins
 No. of pt bins. More...
Double_t fMinBinPt
 Min pt in histograms. More...
Double_t fMaxBinPt
 Max pt in histograms. More...
Double_t fVertex [3]
 ! Event vertex More...
AliEMCALGeometry * fGeom
 ! Geometry object More...
Int_t fMinMCLabel
 Minimum MC label value for the tracks/clusters being considered MC particles. More...
TObjArray fClusterCollArray
 Cluster collection array. More...
TObjArray fParticleCollArray
 Particle/track collection array. More...
AliVCaloCells * fCaloCells
 ! Pointer to CaloCells More...
AliEMCALRecoUtils * fRecoUtils
 Pointer to RecoUtils. More...
 ! List of output histograms More...
TString fBasePath
 Base folder path to get root files. More...

Private Member Functions

 AliEmcalCorrectionComponent (const AliEmcalCorrectionComponent &)
AliEmcalCorrectionComponentoperator= (const AliEmcalCorrectionComponent &)

Detailed Description

Base class for correction components in the EMCal correction framework.

Base class for all correction components in the EMCal Correction Framework. Each correction component corresponds to a correction needed for the EMCal. Creation, configuration, and execution of all of the components is handled by AliEmcalCorrectionTask. Each new component is automatically registered through the AliEmcalCorrectionComponentFactory class, and is thus automatically available to execute. Components are configured through a set of YAML configuration files stored in AliYAMLConfiguration. For more information about the steering, see AliEmcalCorrectionTask.

Raymond Ehlers, Yale University
James Mulligan, Yale University
Jul 8, 2016

Definition at line 43 of file AliEmcalCorrectionComponent.h.

Constructor & Destructor Documentation

AliEmcalCorrectionComponent::AliEmcalCorrectionComponent ( )

Default constructor

Definition at line 29 of file AliEmcalCorrectionComponent.cxx.

AliEmcalCorrectionComponent::AliEmcalCorrectionComponent ( const char *  name)

Standard constructor

Definition at line 63 of file AliEmcalCorrectionComponent.cxx.

AliEmcalCorrectionComponent::~AliEmcalCorrectionComponent ( )


Definition at line 96 of file AliEmcalCorrectionComponent.cxx.

AliEmcalCorrectionComponent::AliEmcalCorrectionComponent ( const AliEmcalCorrectionComponent )

Member Function Documentation

AliClusterContainer* AliEmcalCorrectionComponent::AddClusterContainer ( const char *  n)

Definition at line 67 of file AliEmcalCorrectionComponent.h.

AliMCParticleContainer* AliEmcalCorrectionComponent::AddMCParticleContainer ( const char *  n)

Definition at line 66 of file AliEmcalCorrectionComponent.h.

AliParticleContainer* AliEmcalCorrectionComponent::AddParticleContainer ( const char *  n)

Definition at line 64 of file AliEmcalCorrectionComponent.h.

AliTrackContainer* AliEmcalCorrectionComponent::AddTrackContainer ( const char *  n)

Definition at line 65 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::AdoptClusterContainer ( AliClusterContainer cont)
void AliEmcalCorrectionComponent::AdoptMCParticleContainer ( AliMCParticleContainer cont)

Definition at line 70 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::AdoptParticleContainer ( AliParticleContainer cont)
void AliEmcalCorrectionComponent::AdoptTrackContainer ( AliTrackContainer cont)

Definition at line 69 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::ExecOnce ( )

Execute once for the first event to initialize the analysis. Similar to ExecOnce() in AliAnalysisTaskEmcal

Reimplemented in AliEmcalCorrectionClusterTrackMatcher, AliEmcalCorrectionClusterHadronicCorrection, and AliEmcalCorrectionCellCombineCollections.

Definition at line 137 of file AliEmcalCorrectionComponent.cxx.

void AliEmcalCorrectionComponent::FillCellQA ( TH1F *  h)
AliVCaloCells* AliEmcalCorrectionComponent::GetCaloCells ( ) const
AliClusterContainer* AliEmcalCorrectionComponent::GetClusterContainer ( Int_t  i = 0) const

Definition at line 74 of file AliEmcalCorrectionComponent.h.

Referenced by AliEmcalCorrectionClusterizer::Run().

AliClusterContainer* AliEmcalCorrectionComponent::GetClusterContainer ( const char *  name) const

Definition at line 75 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::GetEtaPhiDiff ( const AliVTrack *  t,
const AliVCluster *  v,
Double_t phidiff,
Double_t etadiff 

Calculate \(\phi\) and \(\eta\) difference between a track (t) and a cluster (c). The position of the track is obtained on the EMCAL surface

[in]tTrack to check
[in]vCluster to check
[out]phidiffDistance in \(\phi\) between cluster and track
[out]etadiffDistance in \(\eta\) between cluster and track

Definition at line 173 of file AliEmcalCorrectionComponent.cxx.

Referenced by AliEmcalCorrectionClusterHadronicCorrection::ApplyHadCorrOneTrack(), AliEmcalCorrectionClusterHadronicCorrection::DoMatchedTracksLoop(), AliEmcalCorrectionClusterTrackMatcher::DoMatching(), and AliEmcalCorrectionClusterTrackMatcher::UpdateClusters().

AliMCParticleContainer* AliEmcalCorrectionComponent::GetMCParticleContainer ( Int_t  i = 0) const

Definition at line 76 of file AliEmcalCorrectionComponent.h.

AliMCParticleContainer* AliEmcalCorrectionComponent::GetMCParticleContainer ( const char *  name) const

Definition at line 77 of file AliEmcalCorrectionComponent.h.

TList* AliEmcalCorrectionComponent::GetOutputList ( ) const

Definition at line 84 of file AliEmcalCorrectionComponent.h.

AliParticleContainer* AliEmcalCorrectionComponent::GetParticleContainer ( Int_t  i = 0) const
AliParticleContainer* AliEmcalCorrectionComponent::GetParticleContainer ( const char *  name) const

Definition at line 73 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::GetPass ( )

Get pass from filename. Sets pass in fFilepass.

Definition at line 235 of file AliEmcalCorrectionComponent.cxx.

Referenced by Run().

template<typename T >
bool AliEmcalCorrectionComponent::GetProperty ( std::string  propertyName,
T property,
bool  requiredProperty = true,
std::string  correctionName = "" 

Retrieve property.

Get the requested property from the YAML configuration. This function is generally used by AliEmcalCorrectionComponent derived tasks as a wrapper around the more complicated functions to retrieve properties.

[in]propertyNameName of the property to retrieve
[out]propertyContainers the retrieved property
[in]requiredPropertyTrue if the property is required
[in]correctionNameName of the correction from where the property should be retrieved
True if the property was set successfully

Definition at line 159 of file AliEmcalCorrectionComponent.h.

Referenced by AliEmcalCorrectionPHOSCorrections::Initialize(), AliEmcalCorrectionCellBadChannel::Initialize(), AliEmcalCorrectionCellTimeCalib::Initialize(), AliEmcalCorrectionCellEnergy::Initialize(), AliEmcalCorrectionClusterExotics::Initialize(), AliEmcalCorrectionClusterNonLinearity::Initialize(), AliEmcalCorrectionCellCombineCollections::Initialize(), AliEmcalCorrectionClusterHadronicCorrection::Initialize(), AliEmcalCorrectionClusterizer::Initialize(), AliEmcalCorrectionClusterTrackMatcher::Initialize(), and SetYAMLConfiguration().

AliEMCALRecoUtils* AliEmcalCorrectionComponent::GetRecoUtils ( ) const

Definition at line 82 of file AliEmcalCorrectionComponent.h.

Referenced by AliCaloPhotonCuts::InitializeEMCAL().

AliTrackContainer* AliEmcalCorrectionComponent::GetTrackContainer ( Int_t  i = 0) const

Definition at line 78 of file AliEmcalCorrectionComponent.h.

AliTrackContainer* AliEmcalCorrectionComponent::GetTrackContainer ( const char *  name) const

Definition at line 79 of file AliEmcalCorrectionComponent.h.

Int_t AliEmcalCorrectionComponent::InitBadChannels ( )
AliEmcalCorrectionComponent& AliEmcalCorrectionComponent::operator= ( const AliEmcalCorrectionComponent )
void AliEmcalCorrectionComponent::RemoveClusterContainer ( Int_t  i = 0)

Definition at line 81 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::RemoveParticleContainer ( Int_t  i = 0)

Definition at line 80 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetCaloCells ( AliVCaloCells *  cells)
void AliEmcalCorrectionComponent::SetCentrality ( Double_t  cent)

Definition at line 101 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetCentralityBin ( Int_t  bin)

Definition at line 100 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetEMCALGeometry ( AliEMCALGeometry *  geometry)

Definition at line 99 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetInputEvent ( AliVEvent *  event)

Definition at line 89 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetIsESD ( Bool_t  isESD)
void AliEmcalCorrectionComponent::SetMCEvent ( AliMCEvent *  mcevent)

Definition at line 90 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetNcentralityBins ( Int_t  n)

Definition at line 102 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetRecoUtils ( AliEMCALRecoUtils *  ru)

Definition at line 87 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetUsingInputEvent ( bool  b = true)

If we are using standard input event then the embedded event should not be used! We store whether the embedding event should be used, so we invert the bool here. Then, if it is only set when we see the standard input event, then any single input with the standard input event will be enough to disable the embedded event.

Definition at line 97 of file AliEmcalCorrectionComponent.h.

Referenced by AliEmcalCorrectionTask::AddContainersToComponent(), and AliEmcalCorrectionPHOSCorrections::Initialize().

void AliEmcalCorrectionComponent::SetVertex ( Double_t vertex)

Definition at line 103 of file AliEmcalCorrectionComponent.h.

void AliEmcalCorrectionComponent::SetYAMLConfiguration ( PWG::Tools::AliYAMLConfiguration  config)

Set YAML Configuration.

Definition at line 107 of file AliEmcalCorrectionComponent.h.

Referenced by AliEmcalCorrectionTask::InitializeComponents().

void AliEmcalCorrectionComponent::UpdateCells ( )

Remove bad cells from the cell list Recalibrate energy and time cells

Definition at line 196 of file AliEmcalCorrectionComponent.cxx.

Referenced by AliEmcalCorrectionCellBadChannel::Run(), AliEmcalCorrectionCellTimeCalib::Run(), and AliEmcalCorrectionCellEnergy::Run().

Bool_t AliEmcalCorrectionComponent::UserNotify ( )

Notifying the user that the input data file has changed and performing steps needed to be done.

Definition at line 160 of file AliEmcalCorrectionComponent.cxx.

Member Data Documentation

Bool_t AliEmcalCorrectionComponent::fCreateHisto

Flag to make some basic histograms.

Definition at line 113 of file AliEmcalCorrectionComponent.h.

Referenced by AliEmcalCorrectionClusterHadronicCorrection::ApplyHadCorrAllTracks(), AliEmcalCorrectionClusterHadronicCorrection::ApplyHadCorrOneTrack(), AliEmcalCorrectionClusterHadronicCorrection::DoMatchedTracksLoop(), AliEmcalCorrectionClusterTrackMatcher::DoMatching(), AliEmcalCorrectionCellEnergy::Initialize(), AliEmcalCorrectionCellBadChannel::Initialize(), AliEmcalCorrectionCellTimeCalib::Initialize(), AliEmcalCorrectionClusterExotics::Initialize(), AliEmcalCorrectionClusterNonLinearity::Initialize(), AliEmcalCorrectionClusterHadronicCorrection::Initialize(), AliEmcalCorrectionClusterTrackMatcher::Initialize(), AliEmcalCorrectionCellEnergy::Run(), AliEmcalCorrectionCellTimeCalib::Run(), AliEmcalCorrectionCellBadChannel::Run(), AliEmcalCorrectionClusterExotics::Run(), AliEmcalCorrectionClusterNonLinearity::Run(), AliEmcalCorrectionClusterHadronicCorrection::Run(), AliEmcalCorrectionClusterizer::Run(), AliEmcalCorrectionCellTimeCalib::UserCreateOutputObjects(), AliEmcalCorrectionCellBadChannel::UserCreateOutputObjects(), AliEmcalCorrectionCellEnergy::UserCreateOutputObjects(), AliEmcalCorrectionClusterExotics::UserCreateOutputObjects(), AliEmcalCorrectionClusterNonLinearity::UserCreateOutputObjects(), AliEmcalCorrectionClusterHadronicCorrection::UserCreateOutputObjects(), AliEmcalCorrectionClusterizer::UserCreateOutputObjects(), and AliEmcalCorrectionClusterTrackMatcher::UserCreateOutputObjects().

Bool_t AliEmcalCorrectionComponent::fGetPassFromFileName

Get fFilepass from file name.

Definition at line 116 of file AliEmcalCorrectionComponent.h.

Referenced by Initialize(), and Run().

Double_t AliEmcalCorrectionComponent::fMaxBinPt

Max pt in histograms.

Definition at line 125 of file AliEmcalCorrectionComponent.h.

Referenced by AliEmcalCorrectionClusterHadronicCorrection::UserCreateOutputObjects().

Double_t AliEmcalCorrectionComponent::fMinBinPt

Min pt in histograms.

Definition at line 124 of file AliEmcalCorrectionComponent.h.

Referenced by AliEmcalCorrectionClusterHadronicCorrection::UserCreateOutputObjects().

Int_t AliEmcalCorrectionComponent::fMinMCLabel

Minimum MC label value for the tracks/clusters being considered MC particles.

Definition at line 128 of file AliEmcalCorrectionComponent.h.

Referenced by AliEmcalCorrectionClusterHadronicCorrection::DoMatchedTracksLoop().

Int_t AliEmcalCorrectionComponent::fNbins
Double_t AliEmcalCorrectionComponent::fVertex[3]
PWG::Tools::AliYAMLConfiguration AliEmcalCorrectionComponent::fYAMLConfig

Contains the YAML configuration used to configure the component.

Definition at line 112 of file AliEmcalCorrectionComponent.h.

Referenced by GetProperty(), Initialize(), and SetYAMLConfiguration().

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