ATLAS Offline Software
Public Member Functions | Private Attributes | List of all members
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 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< char > m_constAccessor
 the underlying accessor More...
 
std::string m_label
 the label of the accessor More...
 

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  {}

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  }

◆ 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::AuxElement::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:
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::SelectionReadAccessorChar::m_constAccessor
SG::AuxElement::ConstAccessor< char > m_constAccessor
the underlying accessor
Definition: SelectionReadAccessorChar.h:61
CP::selectionAccept
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
Definition: SelectionHelpers.h:35
CP::SelectionReadAccessorChar::m_label
std::string m_label
the label of the accessor
Definition: SelectionReadAccessorChar.h:65