AliPhysics  e59a9ba (e59a9ba)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalRun2QA.h
Go to the documentation of this file.
1 
12 #ifndef AliAnalysisTaskEmcalRun2QA_H
13 #define AliAnalysisTaskEmcalRun2QA_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 #include "AliCalorimeterUtils.h"
28 
37 
38 public:
39 
40  struct EventQA_t {
41  EventQA_t() : fCent(0), fCent2(0), fCent3(0), fV0A(0), fV0C(0), fEP(0), fNCells(0), fMaxTrack() { fNClusters[0] = 0; fNClusters[1] = 0; }
42 
43  Float_t fCent;
44  Float_t fCent2;
45  Float_t fCent3;
46  Float_t fV0A;
47  Float_t fV0C;
48  Float_t fEP;
49 
50  Int_t fNClusters[2];
51  Int_t fNCells;
52 
55  };
56 
58  AliAnalysisTaskEmcalRun2QA(const char *name);
60  void InitConstants();
61 
63 
64  void SetCellEnergyCut(Float_t cut) { fCellEnergyCut = cut ; }
65  void SetParticleLevel(Bool_t s) { fParticleLevel = s ; }
66  void SetMC(Bool_t m) { fIsMC = m ; }
67  void SetAdditionalCentEst(const char* meth2, const char* meth3="") { fCentMethod2 = meth2; fCentMethod3 = meth3; }
68  void SetDoV0QA(Int_t b) { fDoV0QA = b ; }
69  void SetDoEPQA(Int_t b) { fDoEPQA = b ; }
70  void SetMaxCellsInCluster(Int_t b) { fMaxCellsInCluster = b ; }
72  void SetSeparateEMCalDCal(Bool_t b) { fSeparateEMCalDCal = b ; }
73  void SetPtBin(Float_t w, Float_t max) { fPtBinWidth = w; fMaxPt = max ; }
74  void SetIsEmbedded(Bool_t i) { fIsEmbedded = i ; }
75 
76 protected:
77 
78  void ExecOnce() ;
79  Bool_t FillHistograms() ;
80  void FillEventQAHisto(const EventQA_t& eventQA);
81  Bool_t RetrieveEventObjects() ;
82  Int_t DoCellLoop() ;
83  void DoClusterLoop() ;
84 
85  //Lists and histograms
96 
97  // Analysis helper classes access pointers
98  // AliEMCALGeometry object fGeom is defined in base class
101  Int_t fNMaxColsAbs;
102  Int_t fNMaxRowsAbs;
103 
104  Bool_t fDebug;
105  Float_t fRtoD;
106  Float_t fCellEnergyCut;
107  Bool_t fParticleLevel;
108  Bool_t fIsMC;
109  TString fCentMethod2;
110  TString fCentMethod3;
111  Int_t fDoV0QA;
112  Int_t fDoEPQA;
115  Float_t fPtBinWidth;
116  Float_t fMaxPt;
118  Bool_t fIsEmbedded;
119  Double_t fCent2;
120  Double_t fCent3;
121  AliVVZERO *fVZERO;
122  Double_t fV0ATotMult;
123  Double_t fV0CTotMult;
124  Int_t fNTotClusters[2];
127 
129 
130 private:
131  AliAnalysisTaskEmcalRun2QA(const AliAnalysisTaskEmcalRun2QA&); // not implemented
133 
135  ClassDef(AliAnalysisTaskEmcalRun2QA, 2)
137 };
138 #endif
Float_t fPtBinWidth
Histogram pt bin width.
THistManager fHistManager
Histogram manager.
TList * fOutputList_Cell
Output list for Event QA histograms.
AliCalorimeterUtils * fCaloUtils
Cells in cluster per supermodule.
Int_t fNTotClusters[2]
!Total number of accepted clusters in current event (DCal/EMCal)
Bool_t fParticleLevel
Set particle level analysis.
Double_t fV0CTotMult
!Event V0C total multiplicity
TH2 ** fHistClusterEtaPhi
Cluster QA histogram.
Int_t fDoLeadingObjectPosition
Add axis for leading object position (eta-phi)
Float_t fMaxPt
Histogram pt limit.
TH2 ** fHistCellIDvsE
Output list for Cluster QA histograms.
Int_t fNMaxRowsAbs
Number of rows in one supermodule.
Declaration of class AliTLorentzVector.
AliVVZERO * fVZERO
!Event V0 object
TH2 ** fHistCellEtaPhi
Cell QA histogram.
Int_t fMaxCellsInCluster
Maximum number (approx) of cells in a cluster.
Int_t fDoV0QA
Add V0 QA histograms.
Float_t fCellEnergyCut
Energy cell cut.
Double_t fCent2
!Event centrality with method 2
TH1 ** fHistNrCellsInCluster
Cluster QA histogram.
Base task in the EMCAL framework (lighter version of AliAnalysisTaskEmcal)
Double_t fV0ATotMult
!Event V0A total multiplicity
Implementation of a task to perform basic QA on EMCal and DCal clusters and cells.
Int_t fNMaxColsAbs
Number of columns in one supermodule.
AliTLorentzVector fLeadingCluster[2]
!Leading cluster in current event (EMCal/DCal)
Float_t fRtoD
Transformation of rad to deg.
void SetAdditionalCentEst(const char *meth2, const char *meth3="")
TString fCentMethod2
Centrality method 2.
TH2 ** fHistClusterIDvsELow
Cluster QA histogram.
Bool_t fIsEmbedded
Embedded data present.
AliAnalysisTaskEmcalRun2QA & operator=(const AliAnalysisTaskEmcalRun2QA &)
void SetPtBin(Float_t w, Float_t max)
Container class for histograms for the high- charged particle analysis.
Definition: THistManager.h:43
AliTLorentzVector fLeadingTrack
!Leading track in current event
Double_t fCent3
!Event centrality with method 3
TH2 ** fHistClusterIDvsE
Cell QA histogram.
Int_t fNumOfSuperMod
Number of supermodules.
TH2 ** fHistCellIDvsELow
Cell QA histogram.
TList * fOutputList_Cluster
Output list for Cell QA histograms.
TString fCentMethod3
Centrality method 3.
Class with utils specific to calorimeter clusters/cells.
Bool_t fSeparateEMCalDCal
Separate EMCal from DCal in QA plots.
Bool_t fDebug
Prints out some extra information.
Int_t fDoEPQA
Add event plane QA histograms.
void FillEventQAHisto(const EventQA_t &eventQA)