AliPhysics  f05a842 (f05a842)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskCLQA.h
Go to the documentation of this file.
1 #ifndef ALIANALYSISTASKCLQA_H
2 #define ALIANALYSISTASKCLQA_H
3 
4 class TClonesArray;
5 class TString;
6 class TH1;
7 class TH1F;
8 class TH2F;
9 class TH3F;
10 class TNtuple;
11 class TNtupleD;
12 class TTree;
13 
14 #include "AliAnalysisTaskEmcal.h"
15 
16 class AliNtupHetInfo;
17 class AliNtupCumInfo;
18 class AliNtupZdcInfo;
19 
21  public:
23  AliAnalysisTaskCLQA(const char *name);
24  virtual ~AliAnalysisTaskCLQA();
25 
26  void SetCentCL1In(TH1F *h) { fCentCL1In = h; }
27  void SetCentV0AIn(TH1F *h) { fCentV0AIn = h; }
31  void SetDoTracking(Bool_t b) { fDoTracking = b; }
33  void SetHetParams(Double_t Etmin);
34  void SetDoHet(Bool_t b) { fDoHet = b; }
35 
37 
38  protected:
41  Bool_t Run();
43  void RunHet(Double_t Etmin);
44 
45  Bool_t fDo2013VertexCut; // if true then use 2013 pA vertex check (only if 2013 pPb run)
46  Bool_t fDoTracking; // if true run tracking analysis
47  Bool_t fDoMuonTracking; // if true run muon tracking analysis
48  Bool_t fDoCumulants; // if true run cumulant analysis
49  Bool_t fDoCumNtuple; // if true save cumulant ntuple
50  Bool_t fDoHet; // if true run het analysis
51  Double_t fCumPtMin; // minimum pt for cumulants
52  Double_t fCumPtMax; // maximum pt for cumulants
53  Double_t fCumEtaMin; // minimum eta for cumulants
54  Double_t fCumEtaMax; // maximum eta for cumulants
55  Double_t fCumMmin; // minimum number of tracks for cumulants
56  Int_t fCumMbins; // number of bins for M
57  Double_t fHetEtmin; // minimum et cut for het
58  TH1F *fCentCL1In; // input for MC based CL1 centrality
59  TH1F *fCentV0AIn; // input for MC based V0A centrality
65  TH1 *fHists[1000];
66 
67  private:
69  Double_t rangeMin = -TMath::Pi()/2,
70  Double_t rangeMax = 3*TMath::Pi()/2) const;
71  AliAnalysisTaskCLQA(const AliAnalysisTaskCLQA&); // not implemented
72  AliAnalysisTaskCLQA &operator=(const AliAnalysisTaskCLQA&); // not implemented
73 
74  ClassDef(AliAnalysisTaskCLQA, 7) // Constantin's Task
75 };
76 
78  public:
79  AliNtupHetInfo() : fTrig(0), fRun(0), fVz(0), fIsFEC(0), fIsVSel(0), fIsP(0)
80  {;}
81  virtual ~AliNtupHetInfo() {;}
82 
83  public:
84  UInt_t fTrig; // trigger bits
85  Int_t fRun; // run number
86  Double32_t fVz; //[-32,32,8] vertex z
87  Bool_t fIsFEC; // is first event in chunk
88  Bool_t fIsVSel; // is vertex selected
89  Bool_t fIsP; // is SPD pileup
90 
91  ClassDef(AliNtupHetInfo,3) // High energy cluster info
92 };
93 
95  public:
96  AliNtupCumInfo() : fTrig(0), fRun(0), fVz(0), fIsFEC(0), fIsVSel(0), fIsP(0),
97  fMall(0), fMall2(0), fPtMaxall(0), fMPtall(0),
98  fMPt2all(0), fMPtall2(0), fTSall(0),
99  fM(0), fQ2abs(0), fQ4abs(0), fQ42re(0), fCos2phi(0), fSin2phi(0),
100  fPtMax(0), fMPt(0), fMPt2(0), fTS(0), fMV0M(0),
101  fCl1(0), fV0M(0), fV0MEq(0), fV0A(0), fV0AEq(0), fZNA(0) {;}
102  virtual ~AliNtupCumInfo() {;}
103 
104  public:
105  UInt_t fTrig; // trigger selection
106  Int_t fRun; // run number
107  Double_t fVz; // vertex z
108  Bool_t fIsFEC; // is first event in chunk
109  Bool_t fIsVSel; // is vertex selected
110  Bool_t fIsP; // is SPD pileup
111  Int_t fMall; // multiplicity (tracks in eta range)
112  Int_t fMall2; // multiplicity (tracks above 1 GeV/c in eta range)
113  Double32_t fPtMaxall; //[0,0,16] maximum pT
114  Double32_t fMPtall; //[0,0,16] mean pT
115  Double32_t fMPt2all; //[0,0,16] mean pT2
116  Double32_t fMPtall2; //[0,0,16] mean pT truncated above 1 GeV/c
117  Double32_t fTSall; //[0,0,16] transverse sphericity
118  Int_t fM; // multiplicity (tracks in pT range)
119  Double32_t fQ2abs; // Q2 absolute
120  Double32_t fQ4abs; // Q4 absolute
121  Double32_t fQ42re; // Re(Q2Q*Q*)
122  Double32_t fCos2phi; // Cos(2phi)
123  Double32_t fSin2phi; // Sin(2phi)
124  Double32_t fPtMax; //[0,0,16] maximum pT
125  Double32_t fMPt; //[0,0,16] mean pT
126  Double32_t fMPt2; //[0,0,16] mean pT2
127  Double32_t fTS; //[0,0,16] transverse sphericity
128  Double32_t fMV0M; // V0M amplitude
129  Double32_t fCl1; //[0,0,16] class CL1
130  Double32_t fV0M; //[0,0,16] class V0M
131  Double32_t fV0MEq; //[0,0,16] class V0M Eq
132  Double32_t fV0A; //[0,0,16] class V0A
133  Double32_t fV0AEq; //[0,0,16] class V0A Eq
134  Double32_t fZNA; //[0,0,16] class ZNA
135 
136  ClassDef(AliNtupCumInfo,3) // Cumulant storage class
137 };
138 
140  public:
141  AliNtupZdcInfo() : fZna0(0), fZna1(0), fZna2(0), fZna3(0), fZna4(0) {;}
142  virtual ~AliNtupZdcInfo() {;}
143 
144  public:
145  Double32_t fZna0; // ZNA energy 0
146  Double32_t fZna1; // ZNA energy 1
147  Double32_t fZna2; // ZNA energy 2
148  Double32_t fZna3; // ZNA energy 3
149  Double32_t fZna4; // ZNA energy 4
150 
151  ClassDef(AliNtupZdcInfo,1) // ZDC storage class
152 };
153 #endif
void RunHet(Double_t Etmin)
double Double_t
Definition: External.C:58
Definition: External.C:260
Definition: External.C:236
void SetHetParams(Double_t Etmin)
Base task in the EMCAL framework.
Double_t DeltaPhi(Double_t phia, Double_t phib, Double_t rangeMin=-TMath::Pi()/2, Double_t rangeMax=3 *TMath::Pi()/2) const
pointers to histograms
AliNtupZdcInfo * fNtupZdcInfo
object holding cumulant results
virtual ~AliNtupHetInfo()
void SetDo2013VertexCut(Bool_t b)
const Double_t etamin
void SetDoTracking(Bool_t b)
int Int_t
Definition: External.C:63
unsigned int UInt_t
Definition: External.C:33
void SetCumParams(Double_t Mmin, Double_t ptmin, Double_t ptmax, Double_t etamin, Double_t etamax)
const Double_t ptmax
void SetCentCL1In(TH1F *h)
AliAnalysisTaskCLQA & operator=(const AliAnalysisTaskCLQA &)
const Double_t ptmin
void SetCentV0AIn(TH1F *h)
AliNtupHetInfo * fNtupHetInfo
ntuple for het analysis
TH1 * fHists[1000]
object holding het info
const Double_t etamax
void SetDoMuonTracking(Bool_t b)
bool Bool_t
Definition: External.C:53
AliNtupCumInfo * fNtupCumInfo
ntuple for cumulant analysis
Definition: External.C:196
void RunCumulants(Double_t Mmin, Double_t ptmin, Double_t ptmax, Double_t etamin, Double_t etamax)
void SetDoCumulants(Bool_t b)
TTree * fNtupHet
object holding zdc info