AliPhysics  58f3d52 (58f3d52)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliNanoAODArrayMaker.h
Go to the documentation of this file.
1 
9 #ifndef ALIANALYSISTASKARRAYMAKER_H
10 #define ALIANALYSISTASKARRAYMAKER_H
11 
12 class AliNanoAODTrack;
13 class TClonesArray;
14 class TString;
15 
16 #include "AliAnalysisTaskSE.h"
17 
19  public:
21  AliNanoAODArrayMaker(const char *name);
22  virtual ~AliNanoAODArrayMaker() {}
23 
24  virtual void UserCreateOutputObjects();
25  virtual void UserExec(Option_t *option);
26  virtual void Terminate(Option_t *);
27 
28  void SetOutputArrayName(const char* name) {fOutputArrayName = name;}
29  void SetOutputArrayPythiaName(const char* name) {fOutputArrayPythiaName = name;}
30  void SetOutputArrayDataName(const char* name) {fOutputArrayDataName = name;}
31 
32  void GetAODTrack(AliAODTrack* newTrack, AliNanoAODTrack* track, Int_t index = -1);
33 
34  private:
37  TClonesArray* fOutputArray;
38 
40  TClonesArray* fPythiaArray;
41 
43  TClonesArray* fDataArray;
44 
46 
47  AliNanoAODArrayMaker(const AliNanoAODArrayMaker&); // not implemented
48  AliNanoAODArrayMaker& operator=(const AliNanoAODArrayMaker&); // not implemented
49 
50 
51  ClassDef(AliNanoAODArrayMaker, 1); // example of analysis
52 };
53 
54 #endif
TClonesArray * fDataArray
name of the output array with data particles
TClonesArray * fOutputArray
name of the output array with all particles
void SetOutputArrayName(const char *name)
void SetOutputArrayDataName(const char *name)
TClonesArray * fPythiaArray
name of the output array with pythia particles
void GetAODTrack(AliAODTrack *newTrack, AliNanoAODTrack *track, Int_t index=-1)
int Int_t
Definition: External.C:63
void SetOutputArrayPythiaName(const char *name)
TString fOutputArrayName
describes if this is the first event loop
virtual void UserCreateOutputObjects()
AliNanoAODArrayMaker & operator=(const AliNanoAODArrayMaker &)
const char Option_t
Definition: External.C:48
virtual void UserExec(Option_t *option)
bool Bool_t
Definition: External.C:53
creates input arrays for the analysis from NanoAODs
virtual void Terminate(Option_t *)