1 #ifndef ALIEMCALCOPYCOLLECTION_H
2 #define ALIEMCALCOPYCOLLECTION_H
6 #include "AliAnalysisTaskSE.h"
51 const char * collectionToCopyName =
"",
52 const char * newCollectionName =
"",
53 bool isEmbedding =
false);
59 void CopyClusters(TClonesArray *orig, TClonesArray *dest);
bool GetIsEmbedding() const
void SetInputObjectType(const AliEmcalCorrectionTask::InputObject_t inputObjectType)
void UserExec(Option_t *option)
Copies cell, cluster, or track collections for use in the EMCal framework.Often, it is necessary to c...
AliVEvent * fEvent
! Points to the event to copy from and store the new bracnh in
bool fIsEmbedding
Denotes whether the collection is embedded (and therefore should be copied and stored in the external...
void SetCollectionToCopyName(const std::string collectionToCopyName)
AliEmcalCorrectionTask::InputObject_t GetInputObjectType() const
void UserCreateOutputObjects()
void CopyClusters(TClonesArray *orig, TClonesArray *dest)
void CreateNewObjectBranch()
bool fIsEsd
! Denotes whether the input is ESD
virtual ~AliEmcalCopyCollection()
static AliEmcalCopyCollection * AddTaskEmcalCopyCollection(AliEmcalCorrectionTask::InputObject_t inputObjectType=AliEmcalCorrectionTask::kNoDefinedInputObject, const char *collectionToCopyName="", const char *newCollectionName="", bool isEmbedding=false)
std::string GetNewCollectionName() const
AliEmcalCorrectionTask::InputObject_t fInputObjectType
Type of collection to copy.
std::string fNewCollectionName
Name of the collection bracnh where it will be copied.
void SetNewCollectionName(const std::string newCollectionName)
void SetIsEmbedding(bool isEmbedding)
void CopyBranchToNewObject()
bool fEventInitialized
! Denotes whether the event is initialized
std::string fCollectionToCopyName
Name of the collection branch to copy.
std::string GetCollectionToCopyName() const
InputObject_t
Type of input object to be created