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, ISysObjectHandleBase &objectHandle) 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 23 of file SelectionReadAccessorChar.cxx.

26 {}
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,
ISysObjectHandleBase & objectHandle )
overridevirtual

fill the systematic variations

Implements CP::ISelectionReadAccessor.

Definition at line 76 of file SelectionReadAccessorChar.cxx.

80 {
81 using namespace msgSelectionHelpers;
82
83 ANA_CHECK (objectHandle.addDecorationDependency (svc, m_label, false));
84 return StatusCode::SUCCESS;
85 }
#define ANA_CHECK(EXP)
check whether the given expression was successful

◆ 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 30 of file SelectionReadAccessorChar.cxx.

33 {
34 if (m_constAccessor (element))
35 return selectionAccept();
36 else
37 return 0;
38 }
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 42 of file SelectionReadAccessorChar.cxx.

45 {
46 return m_constAccessor (element);
47 }

◆ 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 67 of file SelectionReadAccessorChar.cxx.

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

◆ isBool()

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

whether this accessor returns a simple boolean

Implements CP::ISelectionReadAccessor.

Definition at line 59 of file SelectionReadAccessorChar.cxx.

61 {
62 return true;
63 }

◆ label()

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

get the label of the accessor

Implements CP::ISelectionReadAccessor.

Definition at line 51 of file SelectionReadAccessorChar.cxx.

53 {
54 return m_label;
55 }

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: