|
ATLAS Offline Software
|
Go to the documentation of this file.
12 ValueRetriever(
const std::string &
n) :
acc(
n) {}
30 , m_min(-std::numeric_limits<
float>::
max())
31 , m_max( std::numeric_limits<
float>::
max())
53 if(
type==
"float") retriever = new ::ValueRetriever<float>(
name);
54 else if(
type==
"int") retriever = new ::ValueRetriever<int>(
name);
55 else if(
type==
"vector<float>") retriever = new ::VecValueRetriever<float>(
name,
index);
56 else if(
type==
"vector<int>") retriever = new ::VecValueRetriever<int>(
name,
index);
68 return StatusCode::FAILURE;
74 return StatusCode::FAILURE;
77 return StatusCode::SUCCESS;
96 , m_vectorAttIndex2(0)
97 , m_vretriever2(NULL) {
111 return StatusCode::FAILURE;
115 return StatusCode::SUCCESS;
122 if(
v2 == 0.)
return false;
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
Helper class to provide type-safe access to aux data.
Gaudi::Details::PropertyBase & declareProperty(Gaudi::Property< T > &t)
JetAttributeRatioSelector(const std::string &t)
SelValueRetriever * m_vretriever
if the attribute is a vector we'll use the value at this index. else it is ignored.
virtual ~JetAttributeSelector()
virtual float value(const xAOD::Jet &j) const =0
virtual StatusCode initialize()
Dummy implementation of the initialisation function.
virtual int keep(const xAOD::Jet &jet) const
Method to select.
::StatusCode StatusCode
StatusCode definition for legacy code.
JetAbsAttributeSelector(const std::string &t)
JetAttributeSelector(const std::string &t)
a IJetSelector implementation which select according to an attribute
define simple IJetSelector based on jet attributes
SelValueRetriever * m_vretriever2
if the attribute is a vector we'll use the value at this index. else it is ignored.
SelValueRetriever * buildValueRetriever(const std::string &type, const std::string &name, int index)
virtual int keep(const xAOD::Jet &jet) const
Method to select.
virtual int keep(const xAOD::Jet &jet) const
Method to select.