1 #ifndef ALICOPYHEADERTASK_H
2 #define ALICOPYHEADERTASK_H
4 * @file AliCopyHeaderTask.h
5 * @author Christian Holm Christensen <cholm@dalsgaard.hehi.nbi.dk>
6 * @date Tue Jul 12 10:56:38 2011
8 * @brief A task to copy the ESD header to AOD
10 * @ingroup pwglf_forward_tasks
12 #include <AliAnalysisTaskSE.h>
15 * Task to copy header from ESD to AOD
17 * @ingroup pwglf_forward_scripts_tasks
18 * @ingroup pwglf_forward_aod
20 class AliCopyHeaderTask : public AliAnalysisTaskSE
28 AliCopyHeaderTask(const char* name="header")
29 : AliAnalysisTaskSE(name)
31 fBranchNames = "ESD:AliESDHeader.;AliESDRun.";
36 * @param other Object to copy from
38 AliCopyHeaderTask(const AliCopyHeaderTask& other)
39 : AliAnalysisTaskSE(other)
44 virtual ~AliCopyHeaderTask() {}
48 * @param other Object to assing from
50 * @return Reference to this object
52 AliCopyHeaderTask& operator=(const AliCopyHeaderTask& other)
54 AliAnalysisTaskSE::operator=(other);
59 * @name Implementation of interface methods
61 virtual void UserCreateOutputObjects() {}
62 virtual void Init() {}
63 virtual void LocalInit() {Init();}
64 virtual void UserExec(Option_t *option);
65 virtual void Terminate(Option_t *option);
68 ClassDef(AliCopyHeaderTask,1); // Task to copy header from ESD to AOD