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

the SelectionAccesor for OR tool selection decorations More...

#include <SelectionWriteAccessorChar.h>

Inheritance diagram for CP::SelectionWriteAccessorChar:
Collaboration diagram for CP::SelectionWriteAccessorChar:

Public Member Functions

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

Private Attributes

SG::Decorator< charm_accessor
 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 SelectionWriteAccessorChar.h.

Constructor & Destructor Documentation

◆ SelectionWriteAccessorChar()

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

Definition at line 23 of file SelectionWriteAccessorChar.cxx.

26 {}
SG::Decorator< char > m_accessor
the underlying accessor
std::string m_label
the label of the accessor

Member Function Documentation

◆ fillSystematics()

StatusCode CP::SelectionWriteAccessorChar::fillSystematics ( const ISystematicsSvc & svc,
const CP::SystematicSet & fullAffecting,
const std::vector< CP::SystematicSet > & sysList,
ISysObjectHandleBase & objectHandle )
overridevirtual

fill the systematic variations

Implements CP::ISelectionWriteAccessor.

Definition at line 61 of file SelectionWriteAccessorChar.cxx.

66 {
67 using namespace msgSelectionHelpers;
68
69 ANA_CHECK (svc.setDecorSystematics (objectHandle.getNamePattern(), m_label, fullAffecting));
70 ANA_CHECK (objectHandle.addDecorationDependency (svc, m_label, true));
71 return StatusCode::SUCCESS;
72 }
#define ANA_CHECK(EXP)
check whether the given expression was successful
AthROOTErrorHandlerSvc * svc

◆ label()

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

get the label of the accessor

Implements CP::ISelectionWriteAccessor.

Definition at line 53 of file SelectionWriteAccessorChar.cxx.

55 {
56 return m_label;
57 }

◆ setBits()

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

set the selection decoration

Implements CP::ISelectionWriteAccessor.

Definition at line 30 of file SelectionWriteAccessorChar.cxx.

34 {
36 m_accessor (element) = 1;
37 else
38 m_accessor (element) = 0;
39 }
const std::string selection
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected

◆ setBool()

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

set the selection decoration

Implements CP::ISelectionWriteAccessor.

Definition at line 43 of file SelectionWriteAccessorChar.cxx.

47 {
48 m_accessor (element) = selection;
49 }

Member Data Documentation

◆ m_accessor

SG::Decorator<char> CP::SelectionWriteAccessorChar::m_accessor
private

the underlying accessor

Definition at line 54 of file SelectionWriteAccessorChar.h.

◆ m_label

std::string CP::SelectionWriteAccessorChar::m_label
private

the label of the accessor

Definition at line 58 of file SelectionWriteAccessorChar.h.


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