5#ifndef JETTOOLHELPERS_INPUTVARIABLE_H
6#define JETTOOLHELPERS_INPUTVARIABLE_H
33 const std::string& name,
34 const std::string&
type,
41 const std::string& name,
83 if (event.isAvailable(
m_name)) {
84 return event.getValue<T>(
m_name);
86 throw std::runtime_error(
"Value " +
m_name +
" is not available");
98 throw std::runtime_error(
"Value " +
m_name +
" is not available");
Base class for elements of a container that can have aux data.
InputVariableJetContext(const std::string &name)
virtual float getValue(const xAOD::Jet &, const JetContext &event) const
return the value of the variable choose by the user
Class JetContext Designed to read AOD information related to the event, N vertices,...
SG::ConstAccessor< T, ALLOC > ConstAccessor
Jet_v1 Jet
Definition of the current "jet version".