AliPhysics  a6017e1 (a6017e1)
AliEmcalCorrectionClusterEnergyVariation Class Reference

Cluster energy variation component in the EMCal correction framework, for EMCal systematics. More...

#include <AliEmcalCorrectionClusterEnergyVariation.h>

Inheritance diagram for AliEmcalCorrectionClusterEnergyVariation:

Public Member Functions

 AliEmcalCorrectionClusterEnergyVariation ()
 
virtual ~AliEmcalCorrectionClusterEnergyVariation ()
 
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 Attributes

Double_t fEnergyScaleShift
 Fraction of cluster energy to shift (positive means upward shift) More...
 
Double_t fSmearingWidth
 Width of Gaussian used to smear cluster energy. More...
 
TRandom3 fRandom
 ! Random number generator for cluster energy smearing 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

 AliEmcalCorrectionClusterEnergyVariation (const AliEmcalCorrectionClusterEnergyVariation &)
 
AliEmcalCorrectionClusterEnergyVariationoperator= (const AliEmcalCorrectionClusterEnergyVariation &)
 

Static Private Attributes

static RegisterCorrectionComponent< AliEmcalCorrectionClusterEnergyVariationreg
 

Detailed Description

Cluster energy variation component in the EMCal correction framework, for EMCal systematics.

This component allows the cluster energy to be scaled by a constant factor and smeared by a random value drawn from a Gaussian with specified width. Note that you must configure the input cluster container (in the YAML file) with the desired default cluster energy type (nonlincorr, hadcorr, etc) to be shifted/smeared. The shifted/smeared energy is written into the user-defined cluster energy field AliVCluster::kUserDefEnergy1, which can then be retrieved in later tasks through AliVCluster::GetUserDefEnergy() or through the usual cluster container machinery (see http://alidoc.cern.ch/AliPhysics/master/READMEcontainers.html#emcalContainerClusterEnergyCorrections).

Author
James Mulligan james.nosp@m..mul.nosp@m.ligan.nosp@m.@yal.nosp@m.e.edu, Yale University
Date
Oct 30 2018

Definition at line 24 of file AliEmcalCorrectionClusterEnergyVariation.h.

Constructor & Destructor Documentation

AliEmcalCorrectionClusterEnergyVariation::AliEmcalCorrectionClusterEnergyVariation ( )

Default constructor

Definition at line 18 of file AliEmcalCorrectionClusterEnergyVariation.cxx.

AliEmcalCorrectionClusterEnergyVariation::~AliEmcalCorrectionClusterEnergyVariation ( )
virtual

Destructor

Definition at line 29 of file AliEmcalCorrectionClusterEnergyVariation.cxx.

AliEmcalCorrectionClusterEnergyVariation::AliEmcalCorrectionClusterEnergyVariation ( const AliEmcalCorrectionClusterEnergyVariation )
private

Member Function Documentation

void AliEmcalCorrectionClusterEnergyVariation::ExecOnce ( )
virtual

Called before the first event to initialize the correction.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 58 of file AliEmcalCorrectionClusterEnergyVariation.cxx.

Bool_t AliEmcalCorrectionClusterEnergyVariation::Initialize ( )
virtual

Initialize and configure the component.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 36 of file AliEmcalCorrectionClusterEnergyVariation.cxx.

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

Called for each event to process the event data.

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 66 of file AliEmcalCorrectionClusterEnergyVariation.cxx.

void AliEmcalCorrectionClusterEnergyVariation::UserCreateOutputObjects ( )
virtual

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

Reimplemented from AliEmcalCorrectionComponent.

Definition at line 50 of file AliEmcalCorrectionClusterEnergyVariation.cxx.

Member Data Documentation

Double_t AliEmcalCorrectionClusterEnergyVariation::fEnergyScaleShift
protected

Fraction of cluster energy to shift (positive means upward shift)

Definition at line 36 of file AliEmcalCorrectionClusterEnergyVariation.h.

Referenced by Initialize(), and Run().

TRandom3 AliEmcalCorrectionClusterEnergyVariation::fRandom
protected

! Random number generator for cluster energy smearing

Definition at line 39 of file AliEmcalCorrectionClusterEnergyVariation.h.

Referenced by ExecOnce(), and Run().

Double_t AliEmcalCorrectionClusterEnergyVariation::fSmearingWidth
protected

Width of Gaussian used to smear cluster energy.

Definition at line 37 of file AliEmcalCorrectionClusterEnergyVariation.h.

Referenced by Initialize(), and Run().

RegisterCorrectionComponent< AliEmcalCorrectionClusterEnergyVariation > AliEmcalCorrectionClusterEnergyVariation::reg
staticprivate

Definition at line 46 of file AliEmcalCorrectionClusterEnergyVariation.h.


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