ATLAS Offline Software
Loading...
Searching...
No Matches
CP::SelectionReadAccessorChar Class Referencefinal

the SelectionAccesor for OR tool selection decorations More...

#include <SelectionReadAccessorChar.h>

Inheritance diagram for CP::SelectionReadAccessorChar:
Collaboration diagram for CP::SelectionReadAccessorChar:

Public Member Functions

 SelectionReadAccessorChar (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< charm_constAccessor
 the underlying accessor
std::string m_label
 the label of the accessor

Detailed Description

the SelectionAccesor for OR tool selection decorations

Definition at line 18 of file SelectionReadAccessorChar.h.

Constructor & Destructor Documentation

◆ SelectionReadAccessorChar()

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

Definition at line 22 of file SelectionReadAccessorChar.cxx.

25 {}
std::string m_label
the label of the accessor
SG::ConstAccessor< char > m_constAccessor
the underlying accessor

Member Function Documentation

◆ fillSystematics()

StatusCode CP::SelectionReadAccessorChar::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 75 of file SelectionReadAccessorChar.cxx.

79 {
80 return StatusCode::SUCCESS;
81 }

◆ getBits()

SelectionType CP::SelectionReadAccessorChar::getBits ( const SG::AuxElement & element,
const CP::SystematicSet * sys ) const
overridevirtual

get the selection decoration

Implements CP::ISelectionReadAccessor.

Definition at line 29 of file SelectionReadAccessorChar.cxx.

32 {
33 if (m_constAccessor (element))
34 return selectionAccept();
35 else
36 return 0;
37 }
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected

◆ getBool()

bool CP::SelectionReadAccessorChar::getBool ( const SG::AuxElement & element,
const CP::SystematicSet * sys ) const
overridevirtual

get the selection decoration

Implements CP::ISelectionReadAccessor.

Definition at line 41 of file SelectionReadAccessorChar.cxx.

44 {
45 return m_constAccessor (element);
46 }

◆ getInputAffecting()

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

get the systematics when reading from the decoration

Implements CP::ISelectionReadAccessor.

Definition at line 66 of file SelectionReadAccessorChar.cxx.

69 {
70 return CP::SystematicSet ();
71 }

◆ isBool()

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

whether this accessor returns a simple boolean

Implements CP::ISelectionReadAccessor.

Definition at line 58 of file SelectionReadAccessorChar.cxx.

60 {
61 return true;
62 }

◆ label()

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

get the label of the accessor

Implements CP::ISelectionReadAccessor.

Definition at line 50 of file SelectionReadAccessorChar.cxx.

52 {
53 return m_label;
54 }

Member Data Documentation

◆ m_constAccessor

SG::ConstAccessor<char> CP::SelectionReadAccessorChar::m_constAccessor
private

the underlying accessor

Definition at line 61 of file SelectionReadAccessorChar.h.

◆ m_label

std::string CP::SelectionReadAccessorChar::m_label
private

the label of the accessor

Definition at line 65 of file SelectionReadAccessorChar.h.


The documentation for this class was generated from the following files: