AliPhysics  9c66e61 (9c66e61)
AliCopyHeaderTask.h
Go to the documentation of this file.
1 #ifndef ALICOPYHEADERTASK_H
2 #define ALICOPYHEADERTASK_H
3 
12 #include <AliAnalysisTaskSE.h>
13 class AliESDVertex;
14 class AliMultSelection;
15 
23 {
24 public:
30  AliCopyHeaderTask(const char* name="header")
31  : AliAnalysisTaskSE(name),
32  fCalculateRefMult(true),
33  fCopyCentrality(true),
34  fCopyTracklets(false),
35  fCopyV0(false),
36  fCopyAD(false),
37  fCopyZDC(false),
39  {
40  fBranchNames = "ESD:AliESDHeader.,AliESDRun.";
41  }
51  virtual ~AliCopyHeaderTask() {}
69  virtual void UserCreateOutputObjects();
74  virtual void Init() {}
78  virtual void LocalInit() {Init();}
84  virtual void UserExec(Option_t *option);
90  virtual void Terminate(Option_t *option);
91  /* @} */
92  virtual void SetCopyOptions(const TString& what);
101  virtual void SetCalculateRefMult(Bool_t calc=true) { fCalculateRefMult=calc;}
108  virtual void SetCopyCentrality(Bool_t copy=true) { fCopyCentrality = copy; }
114  virtual void SetCopyTracklets(Bool_t copy=true) { fCopyTracklets = copy; }
120  virtual void SetCopyV0(Bool_t copy) { fCopyV0 = copy; }
126  virtual void SetCopyAD(Bool_t copy) { fCopyAD = copy; }
132  virtual void SetCopyZDC(Bool_t copy) { fCopyZDC = copy; }
138  virtual Bool_t Connect();
139 protected:
147  void CopyVertex(AliAODEvent& aod, const AliESDVertex* vtx, Int_t type);
148 
149  Bool_t fCalculateRefMult; // Whether to calculate reference multiplicity
150  Bool_t fCopyCentrality; // Whether to copy centrality information
151  Bool_t fCopyTracklets; // Whether to copy tracklets
152  Bool_t fCopyV0; // Whether to copy V0 data
153  Bool_t fCopyAD; // Whether to copy AD data
154  Bool_t fCopyZDC; // Whether to copy ZDC data
155  AliMultSelection* fMultSelection;
156 
157  ClassDef(AliCopyHeaderTask,3); // Task to copy header from ESD to AOD
158 };
159 
160 #endif
161 /*
162  * Local Variables:
163  * mode: C++
164  * End:
165  */
virtual void UserCreateOutputObjects()
virtual void SetCopyV0(Bool_t copy)
virtual void SetCopyOptions(const TString &what)
virtual void SetCopyCentrality(Bool_t copy=true)
virtual void SetCopyAD(Bool_t copy)
void CopyVertex(AliAODEvent &aod, const AliESDVertex *vtx, Int_t type)
virtual void UserExec(Option_t *option)
int Int_t
Definition: External.C:63
AliCopyHeaderTask(const char *name="header")
virtual void SetCopyZDC(Bool_t copy)
virtual void SetCalculateRefMult(Bool_t calc=true)
virtual void LocalInit()
virtual void Init()
virtual ~AliCopyHeaderTask()
virtual void Terminate(Option_t *option)
AliCopyHeaderTask & operator=(const AliCopyHeaderTask &other)
virtual void SetCopyTracklets(Bool_t copy=true)
AliMultSelection * fMultSelection
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
virtual Bool_t Connect()