AliPhysics  59e0e03 (59e0e03)
AliAnalysisTaskChargedJetsHadronToy.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKCHARGEDJETSHADRONTOY_H
2 #define ALIANALYSISTASKCHARGEDJETSHADRONTOY_H
3 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
4  * See cxx source for full Copyright notice */
5 
6 class TClonesArray;
7 class TString;
8 class TRandom3;
9 class TTree;
10 
11 // Toy model to create an event containing tracks
13 public:
14 
16  AliAnalysisTaskChargedJetsHadronToy(const char* name);
18 
20  void Terminate(Option_t *);
21 
22  // ### SETTERS/GETTERS
31 
32  void SetInputArrayName(const char* val) {fInputArrayName = val;}
33  void SetOutputArrayName(const char* val) {fOutputArrayName = val;}
34 
35  void SetUseMixedEvent(const char* baseFolder) {fMixedEvent_BaseFolder = baseFolder; fUseMixedEvent = kTRUE;}
36  void SetMixedEventTreeName(const char* val) {fMixedEvent_TreeName = val;}
38 
39 protected:
40  // ### Settings
41  TH1* fDistributionMultiplicity; // histogram for multiplicity distribution
42  TH1* fDistributionPt; // histogram for Pt distribution
43  TH1* fDistributionEtaPhi; // histogram for eta/phi distribution
44  Int_t fMinCentrality; // minimum centrality
45  Int_t fMaxCentrality; // maximum centrality
46 
51 
52  // ### Mixed event settings
53  Bool_t fUseMixedEvent; // ME: use mixed event (instead of toy)
54 
57  Int_t fMixedEvent_CurrentFileID; // ME: open file ID
58  TString fMixedEvent_BaseFolder; // ME: base folder from which we copy the files from
59  TString fMixedEvent_TreeName; // ME: name of tree from file
60  Int_t fMixedEvent_CurrentEventID; // ME: current event in tree
61  Int_t fMixedEvent_NumTotalFiles; // ME: number total files
62 
63  Int_t fBuffer_NumTracks; // number tracks in event
68 
69  // ### Input/output settings+arrays
70  TString fInputArrayName; // Name of the TClonesArray that will be loaded
71  TString fOutputArrayName; // Name of the TClonesArray that will be loaded
72  TClonesArray* fInputArray;
73  TClonesArray* fOutputArray;
74 
75  // ### Misc
76  TRandom3* fRandom;
81 
82  Bool_t Run();
83  void AssembleEvent();
84  void CreateQAPlots();
87  void ExecOnce();
88 
89  void FillHistogram(const char * key, Double_t x);
90  void FillHistogram(const char * key, Double_t x, Double_t y);
91  void FillHistogram(const char * key, Double_t x, Double_t y, Double_t add);
92  template <class T> T* AddHistogram1D(const char* name = "CustomHistogram", const char* title = "NO_TITLE", const char* options = "", Int_t xBins = 100, Double_t xMin = 0.0, Double_t xMax = 20.0, const char* xTitle = "x axis", const char* yTitle = "y axis");
93  template <class T> T* AddHistogram2D(const char* name = "CustomHistogram", const char* title = "NO_TITLE", const char* options = "", Int_t xBins = 100, Double_t xMin = 0.0, Double_t xMax = 20.0, Int_t yBins = 100, Double_t yMin = 0.0, Double_t yMax = 20.0, const char* xTitle = "x axis", const char* yTitle = "y axis", const char* zTitle = "z axis");
94 
95 private:
98 
100  ClassDef(AliAnalysisTaskChargedJetsHadronToy, 2); // Toy model
102 };
103 
104 #endif
TH2 * fDistributionV5
Distribution for v4 in bins of pt and centrality.
TH2 * fDistributionV3
Distribution for v2 in bins of pt and centrality.
double Double_t
Definition: External.C:58
Double_t fRandomPsi4
eventwise calculated psi 3
Float_t * fBuffer_TrackPhi
buffer for track pt array
const char * title
Definition: MakeQAPdf.C:27
Short_t * fBuffer_TrackCharge
buffer for track eta array
TClonesArray * fOutputArray
input array containing tracks from events
Bool_t fUseMixedEvent
Distribution for v5 in bins of pt and centrality.
T * AddHistogram1D(const char *name="CustomHistogram", const char *title="NO_TITLE", const char *options="", Int_t xBins=100, Double_t xMin=0.0, Double_t xMax=20.0, const char *xTitle="x axis", const char *yTitle="y axis")
UShort_t T(UShort_t m, UShort_t t)
Definition: RingBits.C:60
TRandom3 * fRandom
input array containing tracks from events
int Int_t
Definition: External.C:63
TString fInputArrayName
buffer for track charge array
float Float_t
Definition: External.C:68
TH2 * fDistributionV4
Distribution for v3 in bins of pt and centrality.
Double_t fRandomPsi5
eventwise calculated psi 4
short Short_t
Definition: External.C:23
Definition: External.C:220
Double_t fRandomPsi3
eventwise centrality value
Base task in the EMCAL jet framework.
TFile * fMixedEvent_CurrentFile
ME: The tree of the mixed event.
T * AddHistogram2D(const char *name="CustomHistogram", const char *title="NO_TITLE", const char *options="", Int_t xBins=100, Double_t xMin=0.0, Double_t xMax=20.0, Int_t yBins=100, Double_t yMin=0.0, Double_t yMax=20.0, const char *xTitle="x axis", const char *yTitle="y axis", const char *zTitle="z axis")
const char Option_t
Definition: External.C:48
bool Bool_t
Definition: External.C:53
Double_t yMin
Definition: External.C:196
Double_t yMax
void ExecOnce()
Perform steps needed to initialize the analysis.
Float_t * fBuffer_TrackEta
buffer for track phi array
AliAnalysisTaskChargedJetsHadronToy & operator=(const AliAnalysisTaskChargedJetsHadronToy &)