ATLAS Offline Software
JetResponsePlots.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3  */
4 
5 #ifndef TOPEVENTSELECTIONTOOLS_JETRESPONSEPLOTS_H_
6 #define TOPEVENTSELECTIONTOOLS_JETRESPONSEPLOTS_H_
7 
12 #include "AsgTools/ToolHandle.h"
14 #include "AsgTools/AnaToolHandle.h"
15 
16 #include <string>
17 
18 class TFile;
19 
20 namespace EL {
21  class Worker;
22 }
23 
24 namespace top {
25  class TopConfig;
26 
32  public:
46  JetResponsePlots(const std::string& name,
47  TFile* outputFile,
48  const std::string& params,
49  std::shared_ptr<top::TopConfig> config,
50  EL::Worker* wk = nullptr);
51 
57  bool apply(const top::Event& event) const override;
58 
63  void FillHistograms(const double w_event,
64  const top::Event& event) const;
65 
71  std::string name() const override;
72  private:
73 
74  // Easy access to histograms.
75  std::shared_ptr<PlotManager> m_hists;
76 
77  // Nominal hash value
78  std::size_t m_nominalHashValue;
79 
80  // deltaR used for jet matching
81  float m_deltaR;
82  int m_bins;
83  float m_min;
84  float m_max;
85  std::vector<double> m_ptBinning;
86 
87  // shared pointed to instance of TopConfig
88  std::shared_ptr<top::TopConfig> m_config;
89 
90  //PMGTruthWeights
91  ToolHandle<PMGTools::IPMGTruthWeightTool> m_PMGTruthWeights;
92 
93  };
94 } // namespace top
95 
96 #endif // TOPEVENTSELECTIONTOOLS_JETRESPONSEPLOTS_H_
PlotManager.h
top::JetResponsePlots::m_PMGTruthWeights
ToolHandle< PMGTools::IPMGTruthWeightTool > m_PMGTruthWeights
Definition: JetResponsePlots.h:91
top
TopConfig A simple configuration that is NOT a singleton.
Definition: AnalysisTrackingHelper.cxx:58
top::JetResponsePlots::m_deltaR
float m_deltaR
Definition: JetResponsePlots.h:81
top::JetResponsePlots::m_hists
std::shared_ptr< PlotManager > m_hists
Definition: JetResponsePlots.h:75
top::JetResponsePlots::FillHistograms
void FillHistograms(const double w_event, const top::Event &event) const
Helper function to fill the histograms.
Definition: JetResponsePlots.cxx:109
top::JetResponsePlots::m_bins
int m_bins
Definition: JetResponsePlots.h:82
top::JetResponsePlots::m_config
std::shared_ptr< top::TopConfig > m_config
Definition: JetResponsePlots.h:88
PMGTruthWeightTool.h
top::JetResponsePlots::name
std::string name() const override
Return the name for the cutflow table.
Definition: JetResponsePlots.cxx:149
config
Definition: PhysicsAnalysis/AnalysisCommon/AssociationUtils/python/config.py:1
compareGeometries.outputFile
string outputFile
Definition: compareGeometries.py:25
ToolHandleArray.h
EL::Worker
Definition: Worker.h:25
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
top::JetResponsePlots::apply
bool apply(const top::Event &event) const override
Fill the histograms.
Definition: JetResponsePlots.cxx:90
EL
This module defines the arguments passed from the BATCH driver to the BATCH worker.
Definition: AlgorithmWorkerData.h:24
top::JetResponsePlots::m_ptBinning
std::vector< double > m_ptBinning
Definition: JetResponsePlots.h:85
IPMGTruthWeightTool.h
top::JetResponsePlots::JetResponsePlots
JetResponsePlots(const std::string &name, TFile *outputFile, const std::string &params, std::shared_ptr< top::TopConfig > config, EL::Worker *wk=nullptr)
Setup some example plots.
Definition: JetResponsePlots.cxx:24
AnaToolHandle.h
top::JetResponsePlots::m_min
float m_min
Definition: JetResponsePlots.h:83
top::EventSelectorBase
This should apply event-level cuts and perform simple plotting on top::Event objects.
Definition: EventSelectorBase.h:20
top::JetResponsePlots::m_max
float m_max
Definition: JetResponsePlots.h:84
top::JetResponsePlots::m_nominalHashValue
std::size_t m_nominalHashValue
Definition: JetResponsePlots.h:78
EventSelectorBase.h
top::Event
Very simple class to hold event data after reading from a file.
Definition: Event.h:49
ToolHandle.h
PowhegControl_ttFCNC_NLO.params
params
Definition: PowhegControl_ttFCNC_NLO.py:226
top::JetResponsePlots
An example of how to quickly make some plots at a certain point in the cutflow.
Definition: JetResponsePlots.h:31