12 ValueRetriever(
const std::string &n) : acc(
n) {}
13 virtual float value(
const xAOD::Jet& j)
const override {
return acc(j);}
19 VecValueRetriever(
const std::string &n,
int ind) : acc(
n), index(ind) {}
20 virtual float value(
const xAOD::Jet& j)
const override {
return acc(j)[index];}
53 return StatusCode::FAILURE;
61 return StatusCode::FAILURE;
64 return StatusCode::SUCCESS;
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T, V, H > &t)
int keep(const xAOD::Jet &jet) const
Method to select.
virtual ~JetSelectorAttributeRunII()
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
SelValueRetriever * m_vretriever
if the attribute is a vector we'll use the value at this index. else it is ignored.
JetSelectorAttributeRunII(const std::string &t)
SG::Accessor< T, ALLOC > Accessor
Jet_v1 Jet
Definition of the current "jet version".
SelValueRetriever retrieves the value on which this tool select jets.