ATLAS Offline Software
Public Member Functions | List of all members
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 More...
 
virtual bool isBool () const override
 whether this accessor returns a simple boolean More...
 
virtual bool getBool (const SG::AuxElement &element, const CP::SystematicSet *sys=nullptr) const =0
 get the selection decoration More...
 
virtual std::string label () const =0
 get the label of the accessor More...
 
virtual CP::SystematicSet getInputAffecting (const ISystematicsSvc &svc, const std::string &objectName) const =0
 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)=0
 fill the systematic variations More...
 

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 }

◆ 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:
mapkey::sys
@ sys
Definition: TElectronEfficiencyCorrectionTool.cxx:42
CP::selectionReject
constexpr SelectionType selectionReject()
the selection decoration to apply for objects that are rejected
Definition: SelectionHelpers.h:44
CP::ISelectionReadAccessor::getBool
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys=nullptr) const =0
get the selection decoration
CP::selectionAccept
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
Definition: SelectionHelpers.h:35