AliPhysics  96f6795 (96f6795)
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
AliAnalysisTaskEmcalDijetImbalance.h
Go to the documentation of this file.
1 #ifndef AliAnalysisTaskEmcalDijetImbalance_H
2 #define AliAnalysisTaskEmcalDijetImbalance_H
3 
14 /* Copyright(c) 1998-2016, ALICE Experiment at CERN, All rights reserved. *
15  * See cxx source for full Copyright notice */
16 
17 class AliPHOSGeometry;
18 
19 #include "THistManager.h"
20 
21 #include "AliEventCuts.h"
23 #include "AliEmcalEmbeddingQA.h"
24 
26  public:
27 
28  // Struct to store all relevant info of a di-jet pair
29  struct Dijet_t {
31  assJet(0), assJetPt(0), assJetPhi(0), assJetEta(0), isAccepted(kFALSE), deltaPhi(0), deltaEta(0), AJ(0), xJ(0), kTy(0) {}
32 
34 
39 
44 
46 
52 
54  assJet=0; assJetPt=0; assJetPhi=0; assJetEta=0; isAccepted=kFALSE; deltaPhi=0; deltaEta=0; AJ=0; xJ=0; kTy=0;}
55  };
56 
57  enum ClusterType {
58  kNA = -1,
59  kEMCal = 0,
60  kDCal = 1,
61  kPHOS = 2
62  };
63 
65  AliAnalysisTaskEmcalDijetImbalance(const char *name) ;
67 
69  void LoadBackgroundScalingHistogram(const char* path = "alien:///alice/cern.ch/user/j/jmulliga/scaleFactorEMCalLHC15o.root", const char* name1 = "hEtaPhiSFCorrection", const char* name2 = "hEtaPhiJetPtCorrection");
70 
71  // Setters
73  void SetMaxPt(Double_t d) { fMaxPt = d; }
79  void SetDoGeometricalMatching(Bool_t b, Double_t r, Double_t trackThresh, Double_t clusThresh)
90  void SetNEtaBins(Int_t n) { fNEtaBins = n; }
91  void SetNPhiBins(Int_t n) { fNPhiBins = n; }
97 
98  protected:
99  void ExecOnce() ;
101  Bool_t Run() ;
103  void RunChanged(Int_t run) ;
104 
105  // Analysis and plotting functions
106  void GenerateHistoBins() ;
107  void AllocateJetHistograms() ;
112  void AllocateCaloHistograms() ;
114  void FindDijet(AliJetContainer* jetCont, Int_t leadingHadronCutBin);
115  void ComputeBackground(AliJetContainer* jetCont) ;
116  void DoMomentumBalance(TString histname) ;
117  void DoGeometricalMatching() ;
118  void DoTriggerSimulation() ;
119  void FindMatchingDijet(AliJetContainer* jetCont) ;
120  void FillJetHistograms() ;
123  void FillMomentumBalanceHistograms(TString histname, Double_t deltaPhi, Double_t trackPt, Double_t balancePt);
125  void FillCaloHistograms() ;
126  void FillTriggerSimHistograms() ;
127 
128  // Utility functions
132  Double_t GetDeltaR(AliTLorentzVector* part, Double_t etaRef, Double_t phiRef);
134  Double_t GetFcross(AliVCluster *cluster, AliVCaloCells *cells);
135 
136  // Analysis parameters
150 
151  // Analysis configuration and plotting options
167 
168  // Plotting parameters
174 
175  // Event selection
177  AliEventCuts fEventCuts;
180 
181  // Trigger parameters
186 
187  // Embedding parameters
189 
190  // Phos geometry (only needed for cluster studies)
191  AliPHOSGeometry* fPHOSGeo;
192 
193  // Hist manager
195 
196  private:
199 
203 };
204 #endif
AliEmcalJet * GetLeadingJet(AliJetContainer *jetCont)
Int_t fNPhiBins
Number of phi bins in DCal region (for background/correction)
Int_t fNPtHistBins
! number of variable pt bins
double Double_t
Definition: External.C:58
Bool_t fUseManualEventCuts
Flag to use manual event cuts.
Bool_t fUseAliEventCuts
Flag to use AliEventCuts (otherwise AliAnalysisTaskEmcal will be used)
Int_t fNEtaBins
Number of eta bins in DCal region (for background/correction)
Bool_t fPlotJetHistograms
Set whether to enable inclusive jet histograms.
TList * fEventCutList
! Output list for event cut histograms
TH2D * fGapJetScalingWeights
Histogram storing eta-phi weights scaling jets near the gap region.
Double_t fDijetLeadingHadronPt
leading hadron pT threshold for leading jet in dijet
void SetDoGeometricalMatching(Bool_t b, Double_t r, Double_t trackThresh, Double_t clusThresh)
Bool_t fkEMCEJE
! flag telling whether the event is "triggered" or not in "simulation"
Double_t fMedianEMCal
! median patch energy in EMCal, per event
Double_t fMedianDCal
! median patch energy in DCal, per event
Double_t fMinAssJetPt
subleading jet min pT in a dijet pair, for it to be accepted
QA Class for EMCal Embedding Framework.
Bool_t fDoMomentumBalance
Set whether to enable momentum balance study.
void FindDijet(AliJetContainer *jetCont, Int_t leadingHadronCutBin)
Bool_t fPlotDijetImbalanceHistograms
Set whether to enable dijet imbalance histograms.
AliEventCuts fEventCuts
event selection utility
Bool_t fPlotClusWithoutNonLinCorr
If true, use pre-nonlincorr energy in cluster thnsparse.
Dijet_t fDijet
! dijet candidate (per event)
int Int_t
Definition: External.C:63
Double_t GetDeltaR(AliEmcalJet *jet1, AliEmcalJet *jet2)
float Float_t
Definition: External.C:68
Double_t fClusterConstituentThreshold
constituent threshold for matching study
Bool_t fDoTriggerSimulation
Set whether to perform a simple trigger simulation.
Definition: External.C:228
Double_t fDeltaPhiMin
minimum delta phi between di-jets
Double_t fMBUpscaleFactor
! inverse of downscale factor, for MB trigger
Bool_t fComputeBackground
Set whether to enable study of background.
void LoadBackgroundScalingHistogram(const char *path="alien:///alice/cern.ch/user/j/jmulliga/scaleFactorEMCalLHC15o.root", const char *name1="hEtaPhiSFCorrection", const char *name2="hEtaPhiJetPtCorrection")
Double_t GetJetPt(AliJetContainer *jetCont, AliEmcalJet *jet)
Double_t GetFcross(AliVCluster *cluster, AliVCaloCells *cells)
void FillMomentumBalanceHistograms(TString histname, Double_t deltaPhi, Double_t trackPt, Double_t balancePt)
Bool_t fComputeMBDownscaling
Set whether to compute and plot MB downscaling factors.
AliAnalysisTaskEmcalDijetImbalance & operator=(const AliAnalysisTaskEmcalDijetImbalance &)
Bool_t fLoadBackgroundScalingWeights
Flag to load eta-phi weights for full-jet background scale factors.
Bool_t fPlotClusterTHnSparse
Set whether to plot cluster thnsparse in calo studies.
Base task in the EMCAL jet framework.
Bool_t fDoGeometricalMatching
Set whether to enable constituent study with geometrical matching.
Represent a jet reconstructed using the EMCal jet framework.
Definition: AliEmcalJet.h:44
Container class for histograms.
Definition: THistManager.h:99
Bool_t fPlotClustersInJets
Set whether to plot histogram of clusters within jets.
Dijet_t fMatchingDijet
! low-threshold matching dijet, for matching study
TH2D * fBackgroundScalingWeights
Histogram storing eta-phi weights for full-jet background scale factors.
AliEmcalEmbeddingQA fEmbeddingQA
! QA hists for embedding (will only be added if embedding)
bool Bool_t
Definition: External.C:53
Bool_t fPlotExotics
Set whether to plot exotic cluster study.
Double_t fTrackConstituentThreshold
constituent threshold for matching study
Double_t fMinTrigJetPt
leading jet min pT in a dijet pair
Bool_t fPlotNeutralJets
Set whether to plot neutral jet histo.
Container for jet within the EMCAL jet framework.
Bool_t fPlotDijetCandHistograms
Set whether to enable dijet pair histograms.
Bool_t fDoCaloStudy
Set whether to perform calorimeter detector study.