ATLAS Offline Software
JetCaloVariables.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
3 */
4 
12 #ifndef JETUTIL_JETCALOVARIABLES_H
13 #define JETUTIL_JETCALOVARIABLES_H
14 
15 //#include "GaudiKernel/ToolHandle.h"
16 //#include "GaudiKernel/ServiceHandle.h"
17 
18 //#include "JetEvent/Jet.h"
19 
20 class TFile;
21 class TH1;
22 class TH2;
23 
25  public:
26  JetCaloVariables(const std::string& m_JetContainerName);
28 
29 
30  /* Rcone is calculated by using all cells with positive energy inside jet */
31  static double compute_RCone(const Jet* jet);
32 
33  /* energy fraction of the energetic cells inside jet. Only 2 energetic cells in
34  * had. calorimeter and 32 energetic cells in em calorimeeter are used here. */
35  static double compute_RatioLeadingCells(const Jet* jet);
36 
37  /* compute LLR obtained with jet EM fraction*/
38  double compute_LLREmFraction(const Jet* jet);
39 
40  /* compute LLR obtained with Jet Rcone and Ratio_{LeadingCells}
41  * NOTE: we did 2-dim pdf for Rcone and Ratio_{LeadingCells} because of
42  * the strong correlation between them. */
44 
45  static double compute_jetTime(const Jet* jet);
46 
47  /* 1-dim pdf obtained with jet EM fraction. 2-dim pdf obtained with jet Rcone and Ratio_{LeadingCells}.
48  * Such pdfs are done in different bins of jet pt: 20-40GeV, 40-80GeV, 80-160GeV and >160GeV.
49  * NOTE: Only pdfs for Cone4H1TopoJets and AntiKt4H1TopoJets are provided. */
51 
52  private:
53 
54  std::vector<TH1*> cosmicPdf_EMFraction;
55  std::vector<TH1*> dijetPdf_EMFraction;
56  std::vector<TH2*> cosmicPdf_RconeANDRatio;
57  std::vector<TH2*> dijetPdf_RconeANDRatio;
58  std::vector<double> ptbin_pdf;
59  TFile *filePDF;
60  std::string JetContainerName;
61 
62 };
63 #endif
Jet
Basic data class defines behavior for all Jet objects The Jet class is the principal data class for...
Definition: Reconstruction/Jet/JetEvent/JetEvent/Jet.h:47
JetCaloVariables::JetCaloVariables
JetCaloVariables(const std::string &m_JetContainerName)
JetCaloVariables::cosmicPdf_EMFraction
std::vector< TH1 * > cosmicPdf_EMFraction
Definition: JetCaloVariables.h:54
JetCaloVariables::ptbin_pdf
std::vector< double > ptbin_pdf
Definition: JetCaloVariables.h:58
JetCaloVariables::compute_LLRRconeANDRatio
double compute_LLRRconeANDRatio(const Jet *jet)
JetCaloVariables
Definition: JetCaloVariables.h:24
JetCaloVariables::compute_RCone
static double compute_RCone(const Jet *jet)
JetCaloVariables::filePDF
TFile * filePDF
Definition: JetCaloVariables.h:59
JetCaloVariables::compute_RatioLeadingCells
static double compute_RatioLeadingCells(const Jet *jet)
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetCaloVariables::getpdf
StatusCode getpdf()
JetCaloVariables::dijetPdf_RconeANDRatio
std::vector< TH2 * > dijetPdf_RconeANDRatio
Definition: JetCaloVariables.h:57
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetCaloVariables::dijetPdf_EMFraction
std::vector< TH1 * > dijetPdf_EMFraction
Definition: JetCaloVariables.h:55
JetCaloVariables::compute_LLREmFraction
double compute_LLREmFraction(const Jet *jet)
JetCaloVariables::compute_jetTime
static double compute_jetTime(const Jet *jet)
JetCaloVariables::JetContainerName
std::string JetContainerName
Definition: JetCaloVariables.h:60
JetCaloVariables::cosmicPdf_RconeANDRatio
std::vector< TH2 * > cosmicPdf_RconeANDRatio
Definition: JetCaloVariables.h:56
JetCaloVariables::~JetCaloVariables
~JetCaloVariables()