AliPhysics  ced2227 (ced2227)
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 class TRandom3;
16 
17 #include "AliAnalysisTaskSE.h"
18 
20  public:
22  AliNanoAODArrayMaker(const char *name);
23  virtual ~AliNanoAODArrayMaker() {}
24 
25  virtual void UserCreateOutputObjects();
26  virtual void UserExec(Option_t *option);
27  virtual void Terminate(Option_t *);
28 
29  void SetOutputArrayName(const char* name) {fOutputArrayName = name;}
30  void SetOutputArrayPythiaName(const char* name) {fOutputArrayPythiaName = name;}
31  void SetOutputArrayDataName(const char* name) {fOutputArrayDataName = name;}
32 
35 
36  void GetAODTrack(AliAODTrack* newTrack, AliNanoAODTrack* track, Int_t index = -1);
37 
38  private:
41  TClonesArray* fOutputArray;
42 
44  TClonesArray* fPythiaArray;
45 
47  TClonesArray* fDataArray;
48 
51  TRandom3* fRandom;
52 
54 
55  AliNanoAODArrayMaker(const AliNanoAODArrayMaker&); // not implemented
56  AliNanoAODArrayMaker& operator=(const AliNanoAODArrayMaker&); // not implemented
57 
58 
59  ClassDef(AliNanoAODArrayMaker, 2); // NanoAOD array maker for embedded tracks
60 };
61 
62 #endif
TClonesArray * fDataArray
name of the output array with data particles
double Double_t
Definition: External.C:58
TClonesArray * fOutputArray
name of the output array with all particles
void SetOutputArrayName(const char *name)
void SetOutputArrayDataName(const char *name)
void SetTrackEfficiencyData(Double_t val)
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
TRandom3 * fRandom
artificial tracking efficiency modification for data particles
void SetOutputArrayPythiaName(const char *name)
TString fOutputArrayName
describes if this is the first event loop
void SetTrackEfficiencyPythia(Double_t val)
Double_t fTrackEffData
artificial tracking efficiency modification for PYTHIA particles
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 *)