1 #ifndef ALIEMCALCORRECTIONTASK_H
2 #define ALIEMCALCORRECTIONTASK_H
6 #if !(defined(__CINT__) || defined(__MAKECINT__))
7 #include <yaml-cpp/yaml.h>
10 #include "AliAnalysisTaskSE.h"
16 class AliEMCALGeometry;
128 void CopyClusters(TClonesArray *orig, TClonesArray *dest);
136 #if !(defined(__CINT__) || defined(__MAKECINT__))
Int_t fNcentBins
how many centrality bins
Steering task for the EMCal correction frameworkThis class is the steering class for the cell and clu...
AliEMCALGeometry * fGeom
!emcal geometry
void InitializeConfiguration()
AliTrackContainer * AddTrackContainer(const char *n)
AliTrackContainer * GetTrackContainer(const char *name) const
AliClusterContainer * GetClusterContainer(Int_t i=0) const
std::vector< AliEmcalCorrectionComponent * > fCorrectionComponents
! Contains the correction components
void CopyBranchesToNewObjects()
Container with name, TClonesArray and cuts for particles.
void RetrieveExecutionOrder(std::vector< std::string > &componentsToAdd)
AliVCaloCells * fCaloCellsFromInputEvent
! pointer to calo cells from the input event
void AdoptClusterContainer(AliClusterContainer *cont)
void SetupConfigurationFilePath(std::string &filename, bool userFile=false)
void UserExec(Option_t *option)
YAML::Node fUserConfiguration
void SetDefaultConfigurationFilename(std::string name)
Double_t fMaxCent
max centrality for event selection
Double_t fVertex[3]
!event vertex
AliEmcalCorrectionTask & operator=(const AliEmcalCorrectionTask &)
TList * fOutput
! Output for histograms
bool fConfigurationInitialized
True if the YAML files are initialized.
void RemoveClusterContainer(Int_t i=0)
static bool doesFileExist(const std::string &filename)
Container for particles within the EMCAL framework.
void SetUserConfigurationFilename(std::string name)
bool fCreateNewObjectBranches
Create new branches for cells and clusters.
AliTrackContainer * GetTrackContainer(Int_t i=0) const
AliMCParticleContainer * GetMCParticleContainer(const char *name) const
bool fEventInitialized
If the event is initialized properly.
TString fCentEst
name of V0 centrality estimator
void CreateNewObjectBranches()
std::string fUserConfigurationFilename
! User YAML configruation filename
const std::vector< AliEmcalCorrectionComponent * > & CorrectionComponents()
std::string fDefaultConfigurationString
Store the default YAML configuration as a string so that it can be streamed.
TString fRunPeriod
Run period (passed by user)
Double_t fCent
! Event centrality
void ExecOnceComponents()
void SetUseNewCentralityEstimation(Bool_t b)
BeamType
Switch for the beam type.
AliMCParticleContainer * AddMCParticleContainer(const char *n)
void InitializeComponents()
AliVCaloCells * fCaloCells
! pointer to calo cells
std::string fCreatedTrackBranchName
Name of created track branch.
bool WriteConfigurationFile(std::string filename, bool userConfig=false)
Bool_t fNeedEmcalGeom
whether or not the task needs the emcal geometry
std::string fCreatedClusterBranchName
Name of created cluster branch.
Bool_t fUseNewCentralityEstimation
Use new centrality estimation (for 2015 data)
void CopyClusters(TClonesArray *orig, TClonesArray *dest)
std::string fDefaultConfigurationFilename
! Default YAML configuration filename
void CleanupCreatedBranches()
void UserCreateOutputObjects()
TObjArray fParticleCollArray
particle/track collection array
TObjArray fClusterCollArray
cluster collection array
AliMCParticleContainer * GetMCParticleContainer(Int_t i=0) const
void SetForceBeamType(BeamType f)
const TString & GetRunPeriod() const
virtual ~AliEmcalCorrectionTask()
void AdoptTrackContainer(AliTrackContainer *cont)
AliParticleContainer * GetParticleContainer(Int_t i=0) const
void SetCaloCellsName(const char *name)
void AdoptParticleContainer(AliParticleContainer *cont)
BeamType fBeamType
!event beam type
TString fCaloCellsName
name of calo cell collection
YAML::Node fDefaultConfiguration
User YAML Configuration.
Int_t fNVertCont
!event vertex number of contributors
void RemoveParticleContainer(Int_t i=0)
Int_t fCentBin
! Event centrality bin
void AdoptMCParticleContainer(AliMCParticleContainer *cont)
Double_t fMinCent
min centrality for event selection
void SetRunPeriod(const char *runPeriod)
AliClusterContainer * AddClusterContainer(const char *n)
Bool_t RetrieveEventObjects()
AliParticleContainer * AddParticleContainer(const char *n)
Container structure for EMCAL clusters.
Container for MC-true particles within the EMCAL framework.
std::string fUserConfigurationString
Default YAML Configuration.
void SetCreateNewObjectBranches(bool flag)
BeamType fForceBeamType
forced beam type