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

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

#include <SelectionWriteAccessorBits.h>

Inheritance diagram for CP::SelectionWriteAccessorBits:
Collaboration diagram for CP::SelectionWriteAccessorBits:

Public Member Functions

 SelectionWriteAccessorBits (const std::string &name)
 
virtual void setBits (const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet *sys) const override
 set the selection decoration More...
 
virtual void setBool (const SG::AuxElement &element, bool selection, const CP::SystematicSet *sys) const override
 set the selection decoration More...
 
virtual std::string label () const override
 get the label of the accessor More...
 
virtual StatusCode fillSystematics (const ISystematicsSvc &svc, const CP::SystematicSet &fullAffecting, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName) override
 fill the systematic variations More...
 

Private Attributes

SG::AuxElement::Decorator< SelectionTypem_accessor
 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 SelectionWriteAccessorBits.h.

Constructor & Destructor Documentation

◆ SelectionWriteAccessorBits()

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

Definition at line 22 of file SelectionWriteAccessorBits.cxx.

25  {}

Member Function Documentation

◆ fillSystematics()

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

fill the systematic variations

Implements CP::ISelectionWriteAccessor.

Definition at line 60 of file SelectionWriteAccessorBits.cxx.

65  {
66  return StatusCode::SUCCESS;
67  }

◆ label()

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

get the label of the accessor

Implements CP::ISelectionWriteAccessor.

Definition at line 52 of file SelectionWriteAccessorBits.cxx.

54  {
55  return m_label;
56  }

◆ setBits()

void CP::SelectionWriteAccessorBits::setBits ( const SG::AuxElement element,
SelectionType  selection,
const CP::SystematicSet sys 
) const
overridevirtual

set the selection decoration

Implements CP::ISelectionWriteAccessor.

Definition at line 29 of file SelectionWriteAccessorBits.cxx.

33  {
34  m_accessor (element) = selection;
35  }

◆ setBool()

void CP::SelectionWriteAccessorBits::setBool ( const SG::AuxElement element,
bool  selection,
const CP::SystematicSet sys 
) const
overridevirtual

set the selection decoration

Implements CP::ISelectionWriteAccessor.

Definition at line 39 of file SelectionWriteAccessorBits.cxx.

43  {
44  if (selection)
45  m_accessor (element) = selectionAccept();
46  else
47  m_accessor (element) = selectionAccept() ^ 0x1;
48  }

Member Data Documentation

◆ m_accessor

SG::AuxElement::Decorator<SelectionType> CP::SelectionWriteAccessorBits::m_accessor
private

the underlying accessor

Definition at line 54 of file SelectionWriteAccessorBits.h.

◆ m_label

std::string CP::SelectionWriteAccessorBits::m_label
private

the label of the accessor

Definition at line 58 of file SelectionWriteAccessorBits.h.


The documentation for this class was generated from the following files:
CP::SelectionWriteAccessorBits::m_label
std::string m_label
the label of the accessor
Definition: SelectionWriteAccessorBits.h:58
selection
const std::string selection
Definition: fbtTestBasics.cxx:74
name
std::string name
Definition: Control/AthContainers/Root/debug.cxx:228
CP::selectionAccept
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
Definition: SelectionHelpers.h:35
CP::SelectionWriteAccessorBits::m_accessor
SG::AuxElement::Decorator< SelectionType > m_accessor
the underlying accessor
Definition: SelectionWriteAccessorBits.h:54