ATLAS Offline Software
Reconstruction
Jet
JetToolHelpers
JetToolHelpers
HistoInput1D.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_HISTOINPUT1D_H
6
#define JETTOOLHELPERS_HISTOINPUT1D_H
7
8
#include "TH1.h"
9
#include "
AsgTools/AsgTool.h
"
10
#include "
AsgTools/ToolHandle.h
"
11
12
#include "
JetToolHelpers/HistoInputBase.h
"
13
#include "
JetAnalysisInterfaces/IVarTool.h
"
14
namespace
JetHelper
{
15
18
19
class
HistoInput1D
:
public
HistoInputBase
20
{
21
ASG_TOOL_CLASS
(
HistoInput1D
,
IVarTool
)
22
23
public
:
25
HistoInput1D
(
const
std::string&
name
);
27
virtual
StatusCode
initialize
()
override
;
28
30
virtual
float
getValue
(
const
xAOD::Jet
&
jet
,
const
JetContext
&
event
)
const override
;
31
using
IVarTool::getValue
;
32
34
virtual
bool
runUnitTests
()
const
;
35
36
private
:
38
ToolHandle<IVarTool>
m_vartool
{
this
,
"varTool1"
,
"VarTool"
,
"InputVariable instance"
};
39
};
40
}
// namespace JetHelper
41
#endif
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
HistoInputBase.h
JetHelper
class IJetCalibStep
Definition:
IInputVariable.h:18
IVarTool.h
JetHelper::HistoInputBase
Class HistoInputBase This class implement common function used by HistoInput1D and HistoInput2D
Definition:
HistoInputBase.h:22
JetHelper::HistoInput1D::m_vartool
ToolHandle< IVarTool > m_vartool
interface to read xAOD::jet variable to be defined by user
Definition:
HistoInput1D.h:38
jet
Definition:
JetCalibTools_PlotJESFactors.cxx:23
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::HistoInput1D::initialize
virtual StatusCode initialize() override
Function initialising the tool.
name
std::string name
Definition:
Control/AthContainers/Root/debug.cxx:221
JetHelper::HistoInput1D::runUnitTests
virtual bool runUnitTests() const
standalone test, no implemented yet
JetHelper::HistoInput1D::getValue
virtual float getValue(const xAOD::Jet &jet, const JetContext &event) const override
return value of histogram at jet variable
xAOD::Jet_v1
Class describing a jet.
Definition:
Jet_v1.h:57
ASG_TOOL_CLASS
#define ASG_TOOL_CLASS(CLASSNAME, INT1)
Definition:
AsgToolMacros.h:68
JetHelper::HistoInput1D::HistoInput1D
HistoInput1D(const std::string &name)
Constructor for standalone usage.
ToolHandle.h
AsgTool.h
JetHelper::HistoInput1D
Class HistoInput1D User interface to read 1D histograms
Definition:
HistoInput1D.h:20
Generated on Thu Nov 7 2024 21:16:18 for ATLAS Offline Software by
1.8.18