ATLAS Offline Software
Loading...
Searching...
No Matches
CP::SelectionAccessorExprBase Class Referenceabstract

Serves as the base for a few logical expression classes. More...

#include <SelectionAccessorExprBase.h>

Inheritance diagram for CP::SelectionAccessorExprBase:
Collaboration diagram for CP::SelectionAccessorExprBase:

Public Member Functions

virtual SelectionType getBits (const SG::AuxElement &element, const CP::SystematicSet *sys) const override
 get the selection decoration
virtual bool isBool () const override
 whether this accessor returns a simple boolean
virtual bool getBool (const SG::AuxElement &element, const CP::SystematicSet *sys=nullptr) const =0
 get the selection decoration
virtual std::string label () const =0
 get the label of the accessor
virtual CP::SystematicSet getInputAffecting (const ISystematicsSvc &svc, const std::string &objectName) const =0
 get the systematics when reading from the decoration
virtual StatusCode fillSystematics (const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName)=0
 fill the systematic variations

Detailed Description

Serves as the base for a few logical expression classes.

Definition at line 13 of file SelectionAccessorExprBase.h.

Member Function Documentation

◆ fillSystematics()

virtual StatusCode CP::ISelectionReadAccessor::fillSystematics ( const ISystematicsSvc & svc,
const std::vector< CP::SystematicSet > & sysList,
const std::string & objectName )
pure virtualinherited

◆ getBits()

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

get the selection decoration

Implements CP::ISelectionReadAccessor.

Definition at line 9 of file SelectionAccessorExprBase.cxx.

11 {
12 return getBool(element,sys) ? selectionAccept() : selectionReject();
13}
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys=nullptr) const =0
get the selection decoration
constexpr SelectionType selectionReject()
the selection decoration to apply for objects that are rejected
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected

◆ getBool()

virtual bool CP::ISelectionReadAccessor::getBool ( const SG::AuxElement & element,
const CP::SystematicSet * sys = nullptr ) const
pure virtualinherited

◆ getInputAffecting()

virtual CP::SystematicSet CP::ISelectionReadAccessor::getInputAffecting ( const ISystematicsSvc & svc,
const std::string & objectName ) const
pure virtualinherited

◆ isBool()

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

whether this accessor returns a simple boolean

Implements CP::ISelectionReadAccessor.

Definition at line 17 of file SelectionAccessorExprBase.cxx.

19{
20 return true;
21}

◆ label()

virtual std::string CP::ISelectionReadAccessor::label ( ) const
pure virtualinherited

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