JetAttributeSelector Class Reference

a IJetSelector implementation which select according to an attribute More...

#include <JetAttributeSelector.h>

Inheritance diagram for JetAttributeSelector:
asg::AsgTool IJetSelector asg::IAsgTool asg::IAsgTool JetAbsAttributeSelector JetAttributeRatioSelector

List of all members.

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

SelValueRetrieverbuildValueRetriever (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
SelValueRetrieverm_vretriever
 if the attribute is a vector we'll use the value at this index. else it is ignored.

Detailed Description

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.


Member Function Documentation

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.


The documentation for this class was generated from the following files:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on 15 Apr 2017 for RootCore Packages by  doxygen 1.6.1