ATLAS Offline Software
Loading...
Searching...
No Matches
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
virtual bool getBool (const SG::AuxElement &element, const CP::SystematicSet *sys) const override
 get the selection decoration
virtual std::string label () const override
 get the label of the accessor
virtual bool isBool () const override
 whether this accessor returns a simple boolean
virtual CP::SystematicSet getInputAffecting (const ISystematicsSvc &svc, const std::string &objectName) const override
 get the systematics when reading from the decoration
virtual StatusCode fillSystematics (const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName) override
 fill the systematic variations

Private Attributes

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

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 {}
std::string m_label
the label of the accessor
SG::ConstAccessor< SelectionType > m_constAccessor
the underlying accessor

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 }
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected

◆ 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::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: