10 #ifndef XAOD_STANDALONE
13 const std::string&
type,
14 const std::string& myname,
15 const IInterface* parent)
27 :
asg::AsgTool(myname)
41 ATH_MSG_DEBUG(
"Applying " << m_name <<
" == " << m_equal <<
" selection");
42 m_equalCutIndex = m_accept.addCut(
"equal",
"Exact equality cut");
46 ATH_MSG_DEBUG(
"Applying " << m_name <<
" >= " << m_min <<
" selection");
47 m_minCutIndex = m_accept.addCut(
"min",
"Minimum cut");
51 ATH_MSG_DEBUG(
"Applying " << m_name <<
" < " << m_max <<
" selection");
52 m_maxCutIndex = m_accept.addCut(
"max",
"Maximum cut");
56 m_accessor = std::make_unique<SG::ConstAccessor<T>>(m_name);
58 return StatusCode::SUCCESS;
74 ATH_MSG_ERROR(
"Particle is not derived from AuxElement, cannot read decoration. Cut considered as failed.");
86 const T value = (*m_accessor)(*aux);
103 #ifndef XAOD_STANDALONE
105 const std::string&
type,
106 const std::string& myname,
107 const IInterface* parent)
112 const std::string&
type,
113 const std::string& myname,
114 const IInterface* parent)
124 : AsgNumDecorationSelectionTool<
uint8_t>(myname)
#define ATH_MSG_WARNING(x)
Base class for elements of a container that can have aux data.
Class providing the definition of the 4-vector interface.
Select isolated Photons, Electrons and Muons.