]> git.uio.no Git - u/mrichter/AliRoot.git/blob - PWGLF/FORWARD/analysis2/AliCopyHeaderTask.h
Merge branch 'workdir'
[u/mrichter/AliRoot.git] / PWGLF / FORWARD / analysis2 / AliCopyHeaderTask.h
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  * 
10  * @ingroup pwglf_forward_tasks 
11  */
12 #include <AliAnalysisTaskSE.h>
13
14 /**
15  * Task to copy header from ESD to AOD 
16  * 
17  * @ingroup pwglf_forward_scripts_tasks
18  * @ingroup pwglf_forward_aod
19  */
20 class AliCopyHeaderTask : public AliAnalysisTaskSE
21 {
22 public:
23   /** 
24    * Constructor
25    * 
26    * @param name Name
27    */
28   AliCopyHeaderTask(const char* name="header") 
29     : AliAnalysisTaskSE(name)
30   {
31     fBranchNames = "ESD:AliESDHeader.,AliESDRun.";
32   }
33   /** 
34    * Copy constructor 
35    * 
36    * @param other Object to copy from 
37    */
38   AliCopyHeaderTask(const AliCopyHeaderTask& other) 
39     : AliAnalysisTaskSE(other)
40   {}
41   /** 
42    * Destructor
43    */
44   virtual ~AliCopyHeaderTask() {}
45   /** 
46    * Assignmen operator 
47    * 
48    * @param other Object to assing from 
49    * 
50    * @return Reference to this object 
51    */
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
68   ClassDef(AliCopyHeaderTask,1); // Task to copy header from ESD to AOD
69 };
70
71 #endif
72 /* 
73  * Local Variables:
74  *  mode: C++ 
75  * End:
76  */