ana::SelectionData Class Reference

this class manages all the selection data for a single correction or selection tool. More...

#include <SelectionData.h>

List of all members.

Classes

struct  CutInfo
 the information for each cut
struct  SelectionInfo
 the information for the different selection steps

Public Member Functions

void testInvariant () const
 test the invariant of this object
 SelectionData ()
 standard constructor
void registerCut (SelectionStep step, const std::string &name, SelectionCut &cut)
 add a cut with the given name and selection step
std::size_t size () const
 the number of cuts configured
StatusCode initialize (const InternalConfiguration &configuration, const std::string &workingPoint)
 initialize this object
bool isInitialized () const
 whether initialize() has been called successfully
StatusCode prepare (SG::AuxElement *particle)
 prepare for the given particle
bool needSelectionTool ()
 whether we can get information by running the associated selection tool
SelectionChoice getCut (std::size_t cut)
 get the given variable to the given choice
void setCut (std::size_t cut, SelectionChoice choice)
 set the given variable to the given choice
void apply ()
 set the decorations on the associated particle

Detailed Description

this class manages all the selection data for a single correction or selection tool.


Constructor & Destructor Documentation

ana::SelectionData::SelectionData (  ) 

standard constructor

Guarantee
strong
Failures
out of memory I

Member Function Documentation

void ana::SelectionData::apply (  ) 

set the decorations on the associated particle

Guarantee
basic
Failures
xAOD errors
Precondition:
isInitialized()
SelectionChoice ana::SelectionData::getCut ( std::size_t  cut  ) 

get the given variable to the given choice

Guarantee
no-fail
Precondition:
isInitialized()
cut < size()
StatusCode ana::SelectionData::initialize ( const InternalConfiguration configuration,
const std::string &  workingPoint 
)

initialize this object

Guarantee
basic
Failures
out of memory II
Precondition:
!isInitialized()
Postcondition:
isInitialized()
bool ana::SelectionData::isInitialized (  )  const

whether initialize() has been called successfully

Guarantee
no-fail
bool ana::SelectionData::needSelectionTool (  ) 

whether we can get information by running the associated selection tool

this is mostly meant to optimize away selection tools on objects that have already been rejected

Guarantee
no-fail
Precondition:
isInitialized()
StatusCode ana::SelectionData::prepare ( SG::AuxElement particle  ) 

prepare for the given particle

Guarantee
basic
Failures
xAOD errors
Precondition:
isInitialized()
void ana::SelectionData::registerCut ( SelectionStep  step,
const std::string &  name,
SelectionCut cut 
)

add a cut with the given name and selection step

Guarantee
strong
Failures
out of memory II
Precondition:
!isInitialized()
void ana::SelectionData::setCut ( std::size_t  cut,
SelectionChoice  choice 
)

set the given variable to the given choice

Guarantee
no-fail
Precondition:
isInitialized()
cut < size()
std::size_t ana::SelectionData::size (  )  const

the number of cuts configured

Guarantee
no-fail
void ana::SelectionData::testInvariant (  )  const

test the invariant of this object

Guarantee
no-fail

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