ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
CP::SelectionReadAccessorBits Class Referencefinal

the SelectionAccesor for standard CP algorithm selection decorations encoded as bits More...

#include <SelectionReadAccessorBits.h>

Inheritance diagram for CP::SelectionReadAccessorBits:
Collaboration diagram for CP::SelectionReadAccessorBits:

Public Member Functions

 SelectionReadAccessorBits (const std::string &name)
 
virtual SelectionType getBits (const SG::AuxElement &element, const CP::SystematicSet *sys) const override
 get the selection decoration More...
 
virtual bool getBool (const SG::AuxElement &element, const CP::SystematicSet *sys) const override
 get the selection decoration More...
 
virtual std::string label () const override
 get the label of the accessor More...
 
virtual bool isBool () const override
 whether this accessor returns a simple boolean More...
 
virtual CP::SystematicSet getInputAffecting (const ISystematicsSvc &svc, const std::string &objectName) const override
 get the systematics when reading from the decoration More...
 
virtual StatusCode fillSystematics (const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName) override
 fill the systematic variations More...
 

Private Attributes

SG::AuxElement::ConstAccessor< SelectionTypem_constAccessor
 the underlying accessor More...
 
std::string m_label
 the label of the accessor More...
 

Detailed Description

the SelectionAccesor for standard CP algorithm selection decorations encoded as bits

Definition at line 18 of file SelectionReadAccessorBits.h.

Constructor & Destructor Documentation

◆ SelectionReadAccessorBits()

CP::SelectionReadAccessorBits::SelectionReadAccessorBits ( const std::string &  name)

Definition at line 22 of file SelectionReadAccessorBits.cxx.

25  {}

Member Function Documentation

◆ fillSystematics()

StatusCode CP::SelectionReadAccessorBits::fillSystematics ( const ISystematicsSvc svc,
const std::vector< CP::SystematicSet > &  sysList,
const std::string &  objectName 
)
overridevirtual

fill the systematic variations

Implements CP::ISelectionReadAccessor.

Definition at line 72 of file SelectionReadAccessorBits.cxx.

76  {
77  return StatusCode::SUCCESS;
78  }

◆ getBits()

SelectionType CP::SelectionReadAccessorBits::getBits ( const SG::AuxElement element,
const CP::SystematicSet sys 
) const
overridevirtual

get the selection decoration

Implements CP::ISelectionReadAccessor.

Definition at line 29 of file SelectionReadAccessorBits.cxx.

32  {
33  return m_constAccessor (element);
34  }

◆ getBool()

bool CP::SelectionReadAccessorBits::getBool ( const SG::AuxElement element,
const CP::SystematicSet sys 
) const
overridevirtual

get the selection decoration

Implements CP::ISelectionReadAccessor.

Definition at line 38 of file SelectionReadAccessorBits.cxx.

41  {
42  return m_constAccessor (element) == selectionAccept();
43  }

◆ getInputAffecting()

CP::SystematicSet CP::SelectionReadAccessorBits::getInputAffecting ( const ISystematicsSvc svc,
const std::string &  objectName 
) const
overridevirtual

get the systematics when reading from the decoration

Implements CP::ISelectionReadAccessor.

Definition at line 63 of file SelectionReadAccessorBits.cxx.

66  {
67  return CP::SystematicSet ();
68  }

◆ isBool()

bool CP::SelectionReadAccessorBits::isBool ( ) const
overridevirtual

whether this accessor returns a simple boolean

Implements CP::ISelectionReadAccessor.

Definition at line 47 of file SelectionReadAccessorBits.cxx.

49  {
50  return false;
51  }

◆ label()

std::string CP::SelectionReadAccessorBits::label ( ) const
overridevirtual

get the label of the accessor

Implements CP::ISelectionReadAccessor.

Definition at line 55 of file SelectionReadAccessorBits.cxx.

57  {
58  return m_label;
59  }

Member Data Documentation

◆ m_constAccessor

SG::AuxElement::ConstAccessor<SelectionType> CP::SelectionReadAccessorBits::m_constAccessor
private

the underlying accessor

Definition at line 61 of file SelectionReadAccessorBits.h.

◆ m_label

std::string CP::SelectionReadAccessorBits::m_label
private

the label of the accessor

Definition at line 65 of file SelectionReadAccessorBits.h.


The documentation for this class was generated from the following files:
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CP::SelectionReadAccessorBits::m_label
std::string m_label
the label of the accessor
Definition: SelectionReadAccessorBits.h:65
CP::selectionAccept
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
Definition: SelectionHelpers.h:35
CP::SelectionReadAccessorBits::m_constAccessor
SG::AuxElement::ConstAccessor< SelectionType > m_constAccessor
the underlying accessor
Definition: SelectionReadAccessorBits.h:61