AliPhysics  8bb951a (8bb951a)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalJetQA.h
Go to the documentation of this file.
1 
12 #ifndef ALIANALYSISTASKEMCALJETQA_H
13 #define ALIANALYSISTASKEMCALJETQA_H
14 
15 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
16  * See cxx source for full Copyright notice */
17 
18 class TH1;
19 class TH2;
20 class TH3;
21 class THnSparse;
22 class AliVVZERO;
23 
24 #include "THistManager.h"
25 #include "AliTLorentzVector.h"
26 #include "AliAnalysisTaskEmcal.h"
27 
36 
37 public:
38 
39  struct EventQA_t {
40  EventQA_t() : fCent(0), fCent2(0), fCent3(0), fV0A(0), fV0C(0), fEP(0), fNTracks(0), fNCells(0), fMaxTrack() { fNClusters[0] = 0; fNClusters[1] = 0; }
41 
42  Float_t fCent;
43  Float_t fCent2;
44  Float_t fCent3;
45  Float_t fV0A;
46  Float_t fV0C;
47  Float_t fEP;
48 
49  Int_t fNTracks;
50  Int_t fNClusters[2];
51  Int_t fNCells;
52 
53  AliTLorentzVector fMaxTrack;
54  AliTLorentzVector fMaxCluster[2];
55  };
56 
58  AliAnalysisTaskEmcalJetQA(const char *name);
60 
62 
63  void SetCellEnergyCut(Float_t cut) { fCellEnergyCut = cut ; }
64  void SetParticleLevel(Bool_t s) { fParticleLevel = s ; }
65  void SetMC(Bool_t m) { fIsMC = m ; }
66  void SetAdditionalCentEst(const char* meth2, const char* meth3="") { fCentMethod2 = meth2; fCentMethod3 = meth3; }
67  void SetDoV0QA(Int_t b) { fDoV0QA = b ; }
68  void SetDoEPQA(Int_t b) { fDoEPQA = b ; }
69  void SetMaxCellsInCluster(Int_t b) { fMaxCellsInCluster = b ; }
71  void SetSeparateEMCalDCal(Bool_t b) { fSeparateEMCalDCal = b ; }
72 
73 protected:
74 
75  void ExecOnce() ;
76  Bool_t FillHistograms() ;
77  void FillEventQAHisto(const EventQA_t& eventQA);
78  Bool_t RetrieveEventObjects() ;
79  Int_t DoCellLoop() ;
80  void DoTrackLoop() ;
81  void DoClusterLoop() ;
82  Double_t GetFcross(AliVCluster *cluster, AliVCaloCells *cells) ;
83 
84  Float_t fCellEnergyCut;
85  Bool_t fParticleLevel;
86  Bool_t fIsMC;
87  TString fCentMethod2;
88  TString fCentMethod3;
89  Int_t fDoV0QA;
90  Int_t fDoEPQA;
94  Double_t fCent2;
95  Double_t fCent3;
96  AliVVZERO *fVZERO;
97  Double_t fV0ATotMult;
98  Double_t fV0CTotMult;
99  Int_t fNTotClusters[2];
100  AliVCluster *fLeadingCluster[2];
101  Int_t fNTotTracks;
102  AliTLorentzVector fLeadingTrack;
103 
104  THistManager fHistManager;
105 
106 private:
107  AliAnalysisTaskEmcalJetQA(const AliAnalysisTaskEmcalJetQA&); // not implemented
109 
111  ClassDef(AliAnalysisTaskEmcalJetQA, 1)
113 };
114 #endif
AliVCluster * fLeadingCluster[2]
Leading cluster in current event (EMCal/DCal)
void FillEventQAHisto(const EventQA_t &eventQA)
Double_t fCent3
Event centrality with method 3.
Bool_t fSeparateEMCalDCal
Separate EMCal from DCal in QA plots.
TString fCentMethod3
Centrality method 3.
Int_t fNTotTracks
Total number of accepted tracks in current event.
Base task in the EMCAL framework.
Double_t GetFcross(AliVCluster *cluster, AliVCaloCells *cells)
Implementation of a task to perform basic QA on tracks and clusters.
Int_t fDoLeadingObjectPosition
Add axis for leading object position (eta-phi)
Double_t fV0CTotMult
Event V0C total multiplicity.
Int_t fMaxCellsInCluster
Maximum number (approx) of cells in a cluster.
Bool_t fParticleLevel
Set particle level analysis.
THistManager fHistManager
Histogram manager.
Int_t fDoV0QA
Add V0 QA histograms.
TString fCentMethod2
Centrality method 2.
Int_t fDoEPQA
Add event plane QA histograms.
Int_t fNTotClusters[2]
Total number of accepted clusters in current event (DCal/EMCal)
Double_t fCent2
Event centrality with method 2.
Float_t fCellEnergyCut
Energy cell cut.
AliAnalysisTaskEmcalJetQA & operator=(const AliAnalysisTaskEmcalJetQA &)
void SetAdditionalCentEst(const char *meth2, const char *meth3="")
AliTLorentzVector fLeadingTrack
Leading track in current event.
Double_t fV0ATotMult
Event V0A total multiplicity.
AliVVZERO * fVZERO
Event V0 object.