ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
SelectionHelpers
ISelectionReadAccessor.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
#ifndef SELECTION_HELPERS__I_SELECTION_READ_ACCESSOR_H
9
#define SELECTION_HELPERS__I_SELECTION_READ_ACCESSOR_H
10
11
#include <
AthContainers/AuxElement.h
>
12
#include <
SelectionHelpers/SelectionHelpers.h
>
13
#include <memory>
14
15
class
StatusCode
;
16
17
namespace
CP
18
{
19
class
ISysObjectHandleBase
;
20
class
ISystematicsSvc
;
21
class
SystematicSet
;
22
23
38
39
class
ISelectionReadAccessor
40
{
41
// no slicing
42
ISelectionReadAccessor
&
operator =
(
const
ISelectionReadAccessor
&) =
delete
;
43
45
public
:
46
virtual
~ISelectionReadAccessor
() noexcept = default;
47
49
public:
50
virtual
SelectionType
51
getBits
(
const
SG
::AuxElement& element,
52
const
CP
::
SystematicSet
*sys =
nullptr
)
const
= 0;
53
55
public:
56
virtual
bool
getBool
(
const
SG
::AuxElement& element,
57
const
CP
::
SystematicSet
*sys =
nullptr
)
const
= 0;
58
60
public:
61
virtual
std
::
string
label
()
const
= 0;
62
64
public:
65
virtual
bool
isBool
()
const
= 0;
66
68
public:
69
virtual
CP
::
SystematicSet
70
getInputAffecting
(
const
ISystematicsSvc
& svc,
71
const
std
::
string
& objectName)
const
= 0;
72
74
public:
75
virtual StatusCode
76
fillSystematics
(
const
ISystematicsSvc
& svc,
77
const
std
::
vector
<
CP
::
SystematicSet
>& sysList,
78
ISysObjectHandleBase
& objectHandle) = 0;
79
};
80
81
96
StatusCode
97
makeSelectionReadAccessor
(
const
std
::
string
& expr,
98
std
::
unique_ptr
<
ISelectionReadAccessor
>& accessor,
99
bool
defaultToChar = false);
100
108
StatusCode
109
makeSelectionReadAccessorVar
(
const
std
::
string
&
name
,
110
std
::
unique_ptr
<
ISelectionReadAccessor
>& accessor,
111
bool
defaultToChar = false);
112
}
113
114
#endif
AuxElement.h
Base class for elements of a container that can have aux data.
SelectionHelpers.h
CP::ISelectionReadAccessor
a specialized accessor to read a selection decoration from/to an xAOD object
Definition
ISelectionReadAccessor.h:40
CP::ISelectionReadAccessor::getBits
virtual SelectionType getBits(const SG::AuxElement &element, const CP::SystematicSet *sys=nullptr) const =0
get the selection decoration
CP::ISelectionReadAccessor::label
virtual std::string label() const =0
get the label of the accessor
CP::ISelectionReadAccessor::isBool
virtual bool isBool() const =0
whether this accessor returns a simple boolean
CP::ISelectionReadAccessor::getBool
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys=nullptr) const =0
get the selection decoration
CP::ISelectionReadAccessor::operator=
ISelectionReadAccessor & operator=(const ISelectionReadAccessor &)=delete
CP::ISelectionReadAccessor::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, ISysObjectHandleBase &objectHandle)=0
fill the systematic variations
CP::ISelectionReadAccessor::getInputAffecting
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc, const std::string &objectName) const =0
get the systematics when reading from the decoration
CP::ISelectionReadAccessor::~ISelectionReadAccessor
virtual ~ISelectionReadAccessor() noexcept=default
standard (virtual) destructor
CP::ISysObjectHandleBase
a ISysHandleBase for a handle to a specific object/container
Definition
ISysHandleBase.h:58
CP::ISystematicsSvc
the interface for the central systematics service
Definition
ISystematicsSvc.h:26
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
unique_ptr
STL class.
vector
Definition
MultiHisto.h:13
const
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
CP::makeSelectionReadAccessorVar
StatusCode makeSelectionReadAccessorVar(const std::string &name, std::unique_ptr< ISelectionReadAccessor > &accessor, bool defaultToChar)
Produces a simple ISelectionReadAccessor accessing the given decoration.
Definition
ISelectionAccessor.cxx:138
CP::makeSelectionReadAccessor
StatusCode makeSelectionReadAccessor(const std::string &expr, std::unique_ptr< ISelectionReadAccessor > &accessor, bool defaultToChar)
make the ISelectionReadAccessor for the given name
Definition
ISelectionAccessor.cxx:53
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition
SelectionHelpers.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
std
STL namespace.
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
Generated on
for ATLAS Offline Software by
1.17.0