AliPhysics  7f4dd97 (7f4dd97)
 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"
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 
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  void SetPtBin(Float_t w, Float_t max) { fPtBinWidth = w; fMaxPt = max ; }
73  void SetIsEmbedded(Bool_t i) { fIsEmbedded = i ; }
74 
75 protected:
76 
77  void ExecOnce() ;
78  Bool_t FillHistograms() ;
79  void FillEventQAHisto(const EventQA_t& eventQA);
80  Bool_t RetrieveEventObjects() ;
81  Int_t DoCellLoop() ;
82  void DoTrackLoop() ;
83  void DoClusterLoop() ;
84  Double_t GetFcross(AliVCluster *cluster, AliVCaloCells *cells) ;
85 
86  Float_t fCellEnergyCut;
87  Bool_t fParticleLevel;
88  Bool_t fIsMC;
89  TString fCentMethod2;
90  TString fCentMethod3;
91  Int_t fDoV0QA;
92  Int_t fDoEPQA;
95  Float_t fPtBinWidth;
96  Float_t fMaxPt;
98  Bool_t fIsEmbedded;
99  Double_t fCent2;
100  Double_t fCent3;
101  AliVVZERO *fVZERO;
102  Double_t fV0ATotMult;
103  Double_t fV0CTotMult;
104  Int_t fNTotClusters[2];
106  Int_t fNTotTracks;
108 
110 
111 private:
112  AliAnalysisTaskEmcalJetQA(const AliAnalysisTaskEmcalJetQA&); // not implemented
114 
116  ClassDef(AliAnalysisTaskEmcalJetQA, 2)
118 };
119 #endif
Float_t fMaxPt
Histogram pt limit.
void FillEventQAHisto(const EventQA_t &eventQA)
Double_t fCent3
!Event centrality with method 3
Bool_t fSeparateEMCalDCal
Separate EMCal from DCal in QA plots.
AliTLorentzVector fLeadingCluster[2]
!Leading cluster in current event (EMCal/DCal)
TString fCentMethod3
Centrality method 3.
Int_t fNTotTracks
!Total number of accepted tracks in current event
Double_t GetFcross(AliVCluster *cluster, AliVCaloCells *cells)
Declaration of class AliTLorentzVector.
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
Bool_t fIsEmbedded
Embedded data present.
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.
Base task in the EMCAL framework (lighter version of AliAnalysisTaskEmcal)
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)
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
Double_t fCent2
!Event centrality with method 2
Float_t fPtBinWidth
Histogram pt bin width.
Float_t fCellEnergyCut
Energy cell cut.
AliAnalysisTaskEmcalJetQA & operator=(const AliAnalysisTaskEmcalJetQA &)
void SetAdditionalCentEst(const char *meth2, const char *meth3="")
void SetPtBin(Float_t w, Float_t max)
AliTLorentzVector fLeadingTrack
!Leading track in current event
Double_t fV0ATotMult
!Event V0A total multiplicity
AliVVZERO * fVZERO
!Event V0 object