AliPhysics  41af4b0 (41af4b0)
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 
48 
52 
55  };
56 
58  AliAnalysisTaskEmcalJetQA(const char *name);
60 
62 
63  void SetCellEnergyCut(Float_t cut) { fCellEnergyCut = cut ; }
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 ; }
72  void SetPtBin(Float_t w, Float_t max) { fPtBinWidth = w; fMaxPt = max ; }
73  void SetIsEmbedded(Bool_t i) { fIsEmbedded = i ; }
74 
75  static AliAnalysisTaskEmcalJetQA* AddTaskEmcalJetQA(TString ntracks = "usedefault", TString nclusters = "usedefault", TString ncells = "usedefault", TString subdir = "", TString suffix = "");
76  static void AddTaskEmcalJetQA_QAtrain(Int_t runnumber);
77 protected:
78 
79  void ExecOnce() ;
81  void FillEventQAHisto(const EventQA_t& eventQA);
83  Int_t DoCellLoop() ;
84  void DoTrackLoop() ;
85  void DoClusterLoop() ;
86  Double_t GetFcross(AliVCluster *cluster, AliVCaloCells *cells) ;
87 
102 
105  AliVVZERO *fVZERO;
112 
113 private:
114  AliAnalysisTaskEmcalJetQA(const AliAnalysisTaskEmcalJetQA&); // not implemented
116 
118  ClassDef(AliAnalysisTaskEmcalJetQA, 4)
120 };
121 #endif
Float_t fMaxPt
Histogram pt limit.
double Double_t
Definition: External.C:58
void FillEventQAHisto(const EventQA_t &eventQA)
Double_t fCent3
!Event centrality with method 3
Bool_t fSeparateEMCalDCal
Separate EMCal from DCal in QA plots.
Definition: External.C:244
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
Int_t fNTotClusters[3]
!Total number of accepted clusters in current event (DCal/EMCal)
Bool_t fIsEmbedded
Embedded data present.
Int_t fMaxCellsInCluster
Maximum number (approx) of cells in a cluster.
Bool_t fParticleLevel
Set particle level analysis.
static AliAnalysisTaskEmcalJetQA * AddTaskEmcalJetQA(TString ntracks="usedefault", TString nclusters="usedefault", TString ncells="usedefault", TString subdir="", TString suffix="")
static void AddTaskEmcalJetQA_QAtrain(Int_t runnumber)
THistManager fHistManager
Histogram manager.
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
Int_t fDoV0QA
Add V0 QA histograms.
Base task in the EMCAL framework (lighter version of AliAnalysisTaskEmcal)
TString fCentMethod2
Centrality method 2.
AliTLorentzVector fLeadingCluster[3]
!Leading cluster in current event (EMCal/DCal)
Int_t fDoEPQA
Add event plane QA histograms.
Definition: External.C:220
Container class for histograms.
Definition: THistManager.h:99
Double_t fCent2
!Event centrality with method 2
Float_t fPtBinWidth
Histogram pt bin width.
Float_t fCellEnergyCut
Energy cell cut.
bool Bool_t
Definition: External.C:53
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
Definition: External.C:196