ATLAS Offline Software
Public Member Functions | List of all members
CP::SelectionWriteAccessorNull Class Referencefinal

a SelectionAccesor that can be used instead of a nullptr More...

#include <SelectionWriteAccessorNull.h>

Inheritance diagram for CP::SelectionWriteAccessorNull:
Collaboration diagram for CP::SelectionWriteAccessorNull:

Public Member Functions

 SelectionWriteAccessorNull ()
 
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...
 

Detailed Description

a SelectionAccesor that can be used instead of a nullptr

This makes it easier to set up code that just uses an ISelectionWriteAccessor to preselect its objects, and doesn't want a special code path for the case of no preselections.

Definition at line 22 of file SelectionWriteAccessorNull.h.

Constructor & Destructor Documentation

◆ SelectionWriteAccessorNull()

CP::SelectionWriteAccessorNull::SelectionWriteAccessorNull ( )

Definition at line 22 of file SelectionWriteAccessorNull.cxx.

24  {}

Member Function Documentation

◆ fillSystematics()

StatusCode CP::SelectionWriteAccessorNull::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 61 of file SelectionWriteAccessorNull.cxx.

66  {
67  return StatusCode::SUCCESS;
68  }

◆ label()

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

get the label of the accessor

Implements CP::ISelectionWriteAccessor.

Definition at line 53 of file SelectionWriteAccessorNull.cxx.

55  {
56  return "null";
57  }

◆ setBits()

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

set the selection decoration

Implements CP::ISelectionWriteAccessor.

Definition at line 28 of file SelectionWriteAccessorNull.cxx.

32  {
33  // ok, let's not do anything here, making this an easy way to
34  // ignore selection decorations an algorithm calculates. however,
35  // the implication is that you can simply forget to set the
36  // decoration property and not get an error
37  }

◆ setBool()

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

set the selection decoration

Implements CP::ISelectionWriteAccessor.

Definition at line 41 of file SelectionWriteAccessorNull.cxx.

45  {
46  // ok, let's not do anything here, making this an easy way to
47  // ignore selection decorations an algorithm calculates. however,
48  // the implication is that you can simply forget to set the
49  // decoration property and not get an error
50  }

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