ATLAS Offline Software
TextInputMCJES.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2024 CERN for the benefit of the ATLAS collaboration
3 */
4 
5 #ifndef JETTOOLHELPERS_TEXTINPUTMCJES_H
6 #define JETTOOLHELPERS_TEXTINPUTMCJES_H
7 
8 #include "TH1.h"
9 #include "AsgTools/AsgTool.h"
10 #include "AsgTools/ToolHandle.h"
11 
14 namespace JetHelper {
15 
18 
20 {
22 
23  public:
25  TextInputMCJES(const std::string& name);
27  virtual StatusCode initialize() override;
29  virtual float getValue(const xAOD::Jet& jet, const JetContext& event) const override;
30  using IVarTool::getValue;
31 
32  private:
34  ToolHandle<IVarTool> m_vartool1{this, "varTool1", "VarTool", "InputVariable instance E" };
36  ToolHandle<IVarTool> m_vartool2{this, "varTool2", "VarTool", "InputVariable instance eta" };
37 
38 };
39 } // namespace JetHelper
40 #endif
JetHelper::TextInputMCJES::m_vartool1
ToolHandle< IVarTool > m_vartool1
interface for xAOD::jet variable to be defined by user, this must correspond to jet E in currect vers...
Definition: TextInputMCJES.h:34
JetHelper::JetContext
Class JetContext Designed to read AOD information related to the event, N vertices,...
Definition: JetContext.h:24
JetHelper::IInputVariable::getValue
virtual float getValue(const xAOD::Jet &jet, const JetContext &jc) const =0
MCJESInputBase.h
JetHelper
A tool interface class for tools implementing the IInputVariable interface.
Definition: IInputVariable.h:18
IVarTool.h
JetHelper::TextInputMCJES::m_vartool2
ToolHandle< IVarTool > m_vartool2
interface for xAOD::jet variable to be defined by user, this must correspond to jet Eta in currect ve...
Definition: TextInputMCJES.h:36
jet
Definition: JetCalibTools_PlotJESFactors.cxx:23
JetHelper::TextInputMCJES
Class TextInputMCJES User interface to read text files containing MCJES calibration factors.
Definition: TextInputMCJES.h:20
event
POOL::TEvent event(POOL::TEvent::kClassAccess)
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
JetHelper::IVarTool
Definition: IVarTool.h:23
JetHelper::TextInputMCJES::TextInputMCJES
TextInputMCJES(const std::string &name)
Constructor for standalone usage.
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:192
JetHelper::TextInputMCJES::initialize
virtual StatusCode initialize() override
Function initialising the tool.
xAOD::Jet_v1
Class describing a jet.
Definition: Jet_v1.h:57
JetHelper::TextInputMCJES::getValue
virtual float getValue(const xAOD::Jet &jet, const JetContext &event) const override
return value of histogram at jet variable
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition: AsgToolMacros.h:68
JetHelper::MCJESInputBase
Class MCJESInputBase This class implement common function used by Text file input
Definition: MCJESInputBase.h:26
ToolHandle.h
AsgTool.h