]>
Commit | Line | Data |
---|---|---|
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> | |
9de105b3 | 13 | class AliESDVertex; |
9416c923 | 14 | |
15 | /** | |
16 | * Task to copy header from ESD to AOD | |
17 | * | |
bd6f5206 | 18 | * @ingroup pwglf_forward_scripts_tasks |
19 | * @ingroup pwglf_forward_aod | |
9416c923 | 20 | */ |
21 | class AliCopyHeaderTask : public AliAnalysisTaskSE | |
22 | { | |
23 | public: | |
290052e7 | 24 | /** |
25 | * Constructor | |
26 | * | |
27 | * @param name Name | |
28 | */ | |
9416c923 | 29 | AliCopyHeaderTask(const char* name="header") |
30 | : AliAnalysisTaskSE(name) | |
5934a3e3 | 31 | { |
77f97e3f | 32 | fBranchNames = "ESD:AliESDHeader.,AliESDRun."; |
5934a3e3 | 33 | } |
290052e7 | 34 | /** |
35 | * Copy constructor | |
36 | * | |
37 | * @param other Object to copy from | |
38 | */ | |
9416c923 | 39 | AliCopyHeaderTask(const AliCopyHeaderTask& other) |
40 | : AliAnalysisTaskSE(other) | |
41 | {} | |
290052e7 | 42 | /** |
43 | * Destructor | |
44 | */ | |
9416c923 | 45 | virtual ~AliCopyHeaderTask() {} |
290052e7 | 46 | /** |
47 | * Assignmen operator | |
48 | * | |
49 | * @param other Object to assing from | |
50 | * | |
51 | * @return Reference to this object | |
52 | */ | |
9416c923 | 53 | AliCopyHeaderTask& operator=(const AliCopyHeaderTask& other) |
54 | { | |
55 | AliAnalysisTaskSE::operator=(other); | |
56 | return *this; | |
57 | } | |
58 | /** | |
59 | * @{ | |
60 | * @name Implementation of interface methods | |
61 | */ | |
62 | virtual void UserCreateOutputObjects() {} | |
63 | virtual void Init() {} | |
64 | virtual void LocalInit() {Init();} | |
65 | virtual void UserExec(Option_t *option); | |
66 | virtual void Terminate(Option_t *option); | |
67 | /* @} */ | |
9de105b3 | 68 | protected: |
69 | /** | |
70 | * Copy an ESD primary vertex to the AOD | |
71 | * | |
72 | * @param aod Where to copy to | |
73 | * @param vtx Vertex (if any) to copy to | |
74 | * @param type Type of vertex | |
75 | */ | |
76 | void CopyVertex(AliAODEvent& aod, const AliESDVertex* vtx, Int_t type); | |
9416c923 | 77 | |
290052e7 | 78 | ClassDef(AliCopyHeaderTask,1); // Task to copy header from ESD to AOD |
9416c923 | 79 | }; |
80 | ||
81 | #endif | |
82 | /* | |
83 | * Local Variables: | |
84 | * mode: C++ | |
85 | * End: | |
86 | */ |