AliPhysics  86c65ee (86c65ee)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskPWGJEQA.h
Go to the documentation of this file.
1 
11 #ifndef ALIANALYSISTASKPWGJEQA_H
12 #define ALIANALYSISTASKPWGJEQA_H
13 
14 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
15  * See cxx source for full Copyright notice */
16 
17 class TH1;
18 class TH2;
19 class TH3;
20 class THnSparse;
21 class AliPHOSGeometry;
22 
23 #include "THistManager.h"
24 #include "AliTLorentzVector.h"
25 //#include "AliAnalysisTaskEmcalJetLight.h"
27 
35 
36 public:
37 
38  struct EventQA_t {
39  EventQA_t() : fCent(0), fNTracks(0), fMaxTrack() { fNClusters[0] = 0; fNClusters[1] = 0; fNClusters[2] = 0;}
45  };
46 
47  enum ClusterType {
48  kNA = -1,
49  kEMCal = 0,
50  kDCal = 1,
51  kPHOS = 2
52  };
53 
55  AliAnalysisTaskPWGJEQA(const char *name);
56  virtual ~AliAnalysisTaskPWGJEQA();
57 
59 
60  void SetCellEnergyCut(Float_t cut) { fCellEnergyCut = cut ; }
62  void SetPtBin(Float_t w, Float_t max) { fPtBinWidth = w; fMaxPt = max ; }
63  void SetGeneratorLevelName(const char* name) { fGeneratorLevelName = name ; }
64  void SetDetectorLevelName(const char* name) { fDetectorLevelName = name ; }
65 
66  void SetDoTrackQA(Bool_t b) { fDoTrackQA = b; }
67  void SetDoEmcalQA(Bool_t b) { fDoEmcalQA = b; }
68  void SetDoJetQA(Bool_t b) { fDoJetQA = b; }
69  void SetDoEventQA(Bool_t b) { fDoEventQA = b; }
71  void SetIsPtHard(Bool_t b) {fIsPtHard = b; }
72 
73 protected:
74 
75  void ExecOnce() ;
78  Bool_t UserNotify() ;
79 
81  void AllocateCellHistograms() ;
83  void AllocateJetHistograms() ;
85 
86  void FillTrackHistograms() ;
87  void FillCellHistograms() ;
88  void FillClusterHistograms() ;
89  void FillJetHistograms() ;
90  void FillEventQAHistograms() ;
91 
92  void GenerateHistoBins() ;
96  void FillDetectorLevelTHnSparse(Double_t cent, Double_t trackEta, Double_t trackPhi, Double_t trackPt,
97  Double_t sigma1OverPt, Byte_t trackType);
98  void FillGeneratorLevelTHnSparse(Double_t cent, Double_t partEta, Double_t partPhi, Double_t partPt, Byte_t findable);
99  void FillMatchedParticlesTHnSparse(Double_t cent, Double_t partEta, Double_t partPhi, Double_t partPt,
100  Double_t trackEta, Double_t trackPhi, Double_t trackPt, Byte_t trackType);
101 
118 
119  // Service fields (non-streamed)
138  AliPHOSGeometry* fPHOSGeo; ;
139 
140  // Histograms
141  THnSparse* fTracks ;
142  THnSparse* fParticlesPhysPrim ;
143  THnSparse* fParticlesMatched ;
144 
146 
147 private:
148  AliAnalysisTaskPWGJEQA(const AliAnalysisTaskPWGJEQA&); // not implemented
149  AliAnalysisTaskPWGJEQA &operator=(const AliAnalysisTaskPWGJEQA&); // not implemented
150 
152  ClassDef(AliAnalysisTaskPWGJEQA, 2);
154 };
155 #endif
Bool_t fDoEmcalQA
Set whether to enable cell/cluster QA.
Double_t * fEtaHistBins
number of eta bins
Double_t * fPtResHistBins
number of pt res bins
void SetRejectOutlierEvents(Bool_t b)
Bool_t fDoEventQA
Set whether to enable event QA.
double Double_t
Definition: External.C:58
Int_t fN1OverPtResHistBins
1/pt res bins
Float_t fPtBinWidth
Histogram pt bin width.
Definition: External.C:244
Int_t fNPtResHistBins
pt relative difference bins
AliTrackContainer * fDetectorLevel
generator level container
Container with name, TClonesArray and cuts for particles.
Declaration of class AliTLorentzVector.
AliAnalysisTaskPWGJEQA()
Default constructor for ROOT I/O purposes.
THnSparse * fTracks
! phos geometry
THistManager fHistManager
primary particles matched to detector level tracks
Bool_t fRejectOutlierEvents
flag to reject pythia pt-hard jet outlier events
Int_t fNTotClusters[3]
!Total number of accepted clusters in current event (DCal/EMCal)
TString fDetectorLevelName
detector level container name
Bool_t fDoTrackQA
Set whether to enable track QA.
void SetCellEnergyCut(Float_t cut)
THnSparse * fParticlesPhysPrim
all tracks
Double_t * fPtHistBins
number of pt bins
int Int_t
Definition: External.C:63
float Float_t
Definition: External.C:68
AliAnalysisTaskPWGJEQA & operator=(const AliAnalysisTaskPWGJEQA &)
AliPHOSGeometry * fPHOSGeo
integer bins
void FillDetectorLevelTHnSparse(Double_t cent, Double_t trackEta, Double_t trackPhi, Double_t trackPt, Double_t sigma1OverPt, Byte_t trackType)
Bool_t fSeparateEMCalDCal
Separate EMCal from DCal in QA plots.
Int_t fNTotTracks
!Total number of accepted tracks in current event
Float_t fCellEnergyCut
Energy cell cut.
Double_t * fPtRelDiffHistBins
number of pt relative difference bins
Int_t fNPtHistBins
detector level container
void SetGeneratorLevelName(const char *name)
Int_t fNIntegerHistBins
number of 1/pt res bins
Double_t * f1OverPtResHistBins
pt res bins
Double_t * fIntegerHistBins
number of integer bins
void SetDetectorLevelName(const char *name)
void FillMatchedParticlesTHnSparse(Double_t cent, Double_t partEta, Double_t partPhi, Double_t partPt, Double_t trackEta, Double_t trackPhi, Double_t trackPt, Byte_t trackType)
void FillGeneratorLevelTHnSparse(Double_t cent, Double_t partEta, Double_t partPhi, Double_t partPt, Byte_t findable)
AliTLorentzVector fLeadingTrack
!Leading track in current event
Definition: External.C:220
void GenerateHistoBins()
Generate histogram binning arrays for track histograms.
This is a task used to do basic PWGJE QA on tracks, clusters, and jets. Based on code from Salvatore ...
void SetPtBin(Float_t w, Float_t max)
Base task in the EMCAL jet framework.
Container class for histograms.
Definition: THistManager.h:43
Bool_t fIsPtHard
flag to enable pt-hard histos and make available outlier cut
Bool_t fDoJetQA
Set whether to enable jet QA.
TString fGeneratorLevelName
generator level container name
Float_t fMaxPt
Histogram pt limit.
AliMCParticleContainer * fGeneratorLevel
bool Bool_t
Definition: External.C:53
Double_t * fCentHistBins
number of cent bins
THnSparse * fParticlesMatched
all physical primary particles
Container for MC-true particles within the EMCAL framework.
Definition: External.C:196
Double_t * fPhiHistBins
number of phi bins
AliTLorentzVector fLeadingCluster[3]
!Leading cluster in current event (EMCal/DCal)