a IJetSelector implementation which select according to an attribute More...
#include <JetAttributeSelector.h>
Classes | |
class | SelValueRetriever |
Public Member Functions | |
JetAttributeSelector (const std::string &t) | |
virtual StatusCode | initialize () |
virtual int | keep (const xAOD::Jet &jet) const |
Protected Member Functions | |
SelValueRetriever * | buildValueRetriever (const std::string &type, const std::string &name, int index) |
Protected Attributes | |
float | m_min |
float | m_max |
std::string | m_attName |
std::string | m_attType |
int | m_vectorAttIndex |
SelValueRetriever * | m_vretriever |
if the attribute is a vector we'll use the value at this index. else it is ignored. |
a IJetSelector implementation which select according to an attribute
This implementation select jets for which an attribute is in a given range. Properties : "Attribute" (string) the attribute name "AttributeType" (string) the attribute type (supported : "float", "int", "vector<float>", "vector<int>") "VectorIndex" (int) when the type is a vector, only the value of vector at this index will be considered. default= 0. "CutMin" (float) the min value. Defaults to -stdnumeric_limits<float>::max() so that unset is equivalent to no minimun value. "CutMax" (float) the max value. Defaults to +stdnumeric_limits<float>::max() so that unset is equivalent to no maximum value.
StatusCode JetAttributeSelector::initialize | ( | void | ) | [virtual] |
Dummy implementation of the initialisation function
It's here to allow the dual-use tools to skip defining an initialisation function. Since many are doing so...
Reimplemented from asg::AsgTool.
Reimplemented in JetAttributeRatioSelector.
int JetAttributeSelector::keep | ( | const xAOD::Jet & | jet | ) | const [virtual] |
Method to select. Returns true if jet is selected.
Implements IJetSelector.
Reimplemented in JetAbsAttributeSelector, and JetAttributeRatioSelector.