]> git.uio.no Git - u/mrichter/AliRoot.git/blame - PWGLF/FORWARD/analysis2/AliCopyHeaderTask.h
Merge branch 'master' of https://git.cern.ch/reps/AliRoot
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliCopyHeaderTask.h
CommitLineData
9416c923 1#ifndef ALICOPYHEADERTASK_H
2#define ALICOPYHEADERTASK_H
3/**
4 * @file AliCopyHeaderTask.h
5 * @author Christian Holm Christensen <cholm@dalsgaard.hehi.nbi.dk>
6 * @date Tue Jul 12 10:56:38 2011
7 *
8 * @brief A task to copy the ESD header to AOD
9 *
bd6f5206 10 * @ingroup pwglf_forward_tasks
9416c923 11 */
12#include <AliAnalysisTaskSE.h>
13
14/**
15 * Task to copy header from ESD to AOD
16 *
bd6f5206 17 * @ingroup pwglf_forward_scripts_tasks
18 * @ingroup pwglf_forward_aod
9416c923 19 */
20class AliCopyHeaderTask : public AliAnalysisTaskSE
21{
22public:
290052e7 23 /**
24 * Constructor
25 *
26 * @param name Name
27 */
9416c923 28 AliCopyHeaderTask(const char* name="header")
29 : AliAnalysisTaskSE(name)
5934a3e3 30 {
77f97e3f 31 fBranchNames = "ESD:AliESDHeader.,AliESDRun.";
5934a3e3 32 }
290052e7 33 /**
34 * Copy constructor
35 *
36 * @param other Object to copy from
37 */
9416c923 38 AliCopyHeaderTask(const AliCopyHeaderTask& other)
39 : AliAnalysisTaskSE(other)
40 {}
290052e7 41 /**
42 * Destructor
43 */
9416c923 44 virtual ~AliCopyHeaderTask() {}
290052e7 45 /**
46 * Assignmen operator
47 *
48 * @param other Object to assing from
49 *
50 * @return Reference to this object
51 */
9416c923 52 AliCopyHeaderTask& operator=(const AliCopyHeaderTask& other)
53 {
54 AliAnalysisTaskSE::operator=(other);
55 return *this;
56 }
57 /**
58 * @{
59 * @name Implementation of interface methods
60 */
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);
66 /* @} */
67
290052e7 68 ClassDef(AliCopyHeaderTask,1); // Task to copy header from ESD to AOD
9416c923 69};
70
71#endif
72/*
73 * Local Variables:
74 * mode: C++
75 * End:
76 */