AliPhysics  5403132 (5403132)
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 
10 // Toy model to create an event containing tracks
11 
13 public:
15  AliAnalysisTaskChargedJetsHadronToy(const char* name);
17 
19  void Terminate(Option_t *);
20 
21  // ### SETTERS/GETTERS
30 
31  void SetInputArrayName(const char* val) {fInputArrayName = val;}
32  void SetOutputArrayName(const char* val) {fOutputArrayName = val;}
33 
34 protected:
35  // ### Settings
36  TH1* fDistributionMultiplicity; // histogram for multiplicity distribution
37  TH1* fDistributionPt; // histogram for Pt distribution
38  TH1* fDistributionEtaPhi; // histogram for eta/phi distribution
39  Int_t fMinCentrality; // minimum centrality
40  Int_t fMaxCentrality; // maximum centrality
41 
46 
47  // ### Input/output settings+arrays
48  TString fInputArrayName; // Name of the TClonesArray that will be loaded
49  TString fOutputArrayName; // Name of the TClonesArray that will be loaded
50  TClonesArray* fInputArray;
51  TClonesArray* fOutputArray;
52 
53  // ### Misc
54  TRandom3* fRandom;
59 
60  Bool_t Run();
61  void AssembleEvent();
62  void CreateQAPlots();
64  void ExecOnce();
65 
66  void FillHistogram(const char * key, Double_t x);
67  void FillHistogram(const char * key, Double_t x, Double_t y);
68  void FillHistogram(const char * key, Double_t x, Double_t y, Double_t add);
69  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");
70  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");
71 
72 private:
75 
77  ClassDef(AliAnalysisTaskChargedJetsHadronToy, 2); // Toy model
79 };
80 
81 #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
const char * title
Definition: MakeQAPdf.C:27
TClonesArray * fOutputArray
input array containing tracks from events
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
Distribution for v5 in bins of pt and centrality.
TH2 * fDistributionV4
Distribution for v3 in bins of pt and centrality.
Double_t fRandomPsi5
eventwise calculated psi 4
Definition: External.C:220
Double_t fRandomPsi3
eventwise centrality value
Base task in the EMCAL jet framework.
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.
AliAnalysisTaskChargedJetsHadronToy & operator=(const AliAnalysisTaskChargedJetsHadronToy &)