AliPhysics  9b6b435 (9b6b435)
AliEmcalCorrectionCellEnergyVariation Class Reference

Cell energy variation component in the EMCal correction framework. More...

#include <AliEmcalCorrectionCellEnergyVariation.h>

Inheritance diagram for AliEmcalCorrectionCellEnergyVariation:

Public Member Functions

 AliEmcalCorrectionCellEnergyVariation ()
 
virtual ~AliEmcalCorrectionCellEnergyVariation ()
 
Bool_t Initialize ()
 
void UserCreateOutputObjects ()
 
void ExecOnce ()
 
Bool_t Run ()
 
- Public Member Functions inherited from AliEmcalCorrectionComponent
 AliEmcalCorrectionComponent ()
 
 AliEmcalCorrectionComponent (const char *name)
 
virtual ~AliEmcalCorrectionComponent ()
 
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)
 
AliEMCALRecoUtilsGetRecoUtils () 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 SetCustomBadChannels (TString customBC)
 
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 Member Functions

void LoadEnergyScaleFunction (const std::string &path, const std::string &name)
 

Protected Attributes

Double_t fMinCellE
 Min cell E to perform scaling on. More...
 
Double_t fMaxCellE
 Max cell E to perform scaling on. More...
 
Double_t fEnergyScaleFactorConstant
 Constant factor to scale cell energy by. More...
 
TF1 * fEnergyScaleFunction
 Function describing factor to scale cell energy by, as a function of cell E. More...
 
- Protected Attributes inherited from AliEmcalCorrectionComponent
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...
 
AliEMCALRecoUtilsfRecoUtils
 Pointer to RecoUtils. More...
 
TListfOutput
 ! List of output histograms More...
 
TString fBasePath
 Base folder path to get root files. More...
 
TString fCustomBadChannelFilePath
 Custom path to bad channel map OADB file. More...
 

Private Member Functions

 AliEmcalCorrectionCellEnergyVariation (const AliEmcalCorrectionCellEnergyVariation &)
 
AliEmcalCorrectionCellEnergyVariationoperator= (const AliEmcalCorrectionCellEnergyVariation &)
 

Static Private Attributes

static RegisterCorrectionComponent< AliEmcalCorrectionCellEnergyVariationreg
 

Detailed Description

Cell energy variation component in the EMCal correction framework.

This component allows the EMCal cell energy to be scaled by a constant factor or as a function of cell E. The shifted energy is written in place.

This component is necessary when embedding MC into data, in order that the energy scale in MC matches that in data (without relying on the MC non-linearity correction to correct the energy scale).

Author
James Mulligan james.nosp@m..mul.nosp@m.ligan.nosp@m.@ber.nosp@m.keley.nosp@m..edu, UC Berkeley
Date
Dec 19 2018

Definition at line 23 of file AliEmcalCorrectionCellEnergyVariation.h.

Constructor & Destructor Documentation

AliEmcalCorrectionCellEnergyVariation::AliEmcalCorrectionCellEnergyVariation ( )

Default constructor

Definition at line 19 of file AliEmcalCorrectionCellEnergyVariation.cxx.

AliEmcalCorrectionCellEnergyVariation::~AliEmcalCorrectionCellEnergyVariation ( )
virtual

Destructor

Definition at line 31 of file AliEmcalCorrectionCellEnergyVariation.cxx.

AliEmcalCorrectionCellEnergyVariation::AliEmcalCorrectionCellEnergyVariation ( const AliEmcalCorrectionCellEnergyVariation )
private

Member Function Documentation

void AliEmcalCorrectionCellEnergyVariation::ExecOnce ( )
virtual

Called before the first event to initialize the correction.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 71 of file AliEmcalCorrectionCellEnergyVariation.cxx.

Bool_t AliEmcalCorrectionCellEnergyVariation::Initialize ( )
virtual

Initialize and configure the component.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 38 of file AliEmcalCorrectionCellEnergyVariation.cxx.

void AliEmcalCorrectionCellEnergyVariation::LoadEnergyScaleFunction ( const std::string &  path,
const std::string &  name 
)
protected

Load the energy scale function TF1 from a file into the member fEnergyScaleFunction

Parameters
pathPath to the file containing the TF1
nameName of the TF1

Definition at line 132 of file AliEmcalCorrectionCellEnergyVariation.cxx.

Referenced by Initialize().

AliEmcalCorrectionCellEnergyVariation& AliEmcalCorrectionCellEnergyVariation::operator= ( const AliEmcalCorrectionCellEnergyVariation )
private
Bool_t AliEmcalCorrectionCellEnergyVariation::Run ( )
virtual

Called for each event to process the event data.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 89 of file AliEmcalCorrectionCellEnergyVariation.cxx.

void AliEmcalCorrectionCellEnergyVariation::UserCreateOutputObjects ( )
virtual

Create run-independent objects for output. Called before running over events.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 63 of file AliEmcalCorrectionCellEnergyVariation.cxx.

Member Data Documentation

Double_t AliEmcalCorrectionCellEnergyVariation::fEnergyScaleFactorConstant
protected

Constant factor to scale cell energy by.

Definition at line 41 of file AliEmcalCorrectionCellEnergyVariation.h.

Referenced by ExecOnce(), and Initialize().

TF1* AliEmcalCorrectionCellEnergyVariation::fEnergyScaleFunction
protected

Function describing factor to scale cell energy by, as a function of cell E.

Definition at line 42 of file AliEmcalCorrectionCellEnergyVariation.h.

Referenced by ExecOnce(), LoadEnergyScaleFunction(), and Run().

Double_t AliEmcalCorrectionCellEnergyVariation::fMaxCellE
protected

Max cell E to perform scaling on.

Definition at line 40 of file AliEmcalCorrectionCellEnergyVariation.h.

Referenced by ExecOnce(), Initialize(), and Run().

Double_t AliEmcalCorrectionCellEnergyVariation::fMinCellE
protected

Min cell E to perform scaling on.

Definition at line 39 of file AliEmcalCorrectionCellEnergyVariation.h.

Referenced by ExecOnce(), Initialize(), and Run().

RegisterCorrectionComponent< AliEmcalCorrectionCellEnergyVariation > AliEmcalCorrectionCellEnergyVariation::reg
staticprivate

Definition at line 49 of file AliEmcalCorrectionCellEnergyVariation.h.


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