ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
Root
SelectionReadAccessorInvert.cxx
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2019 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
//
9
// includes
10
//
11
12
#include <
SelectionHelpers/SelectionReadAccessorInvert.h
>
13
14
#include <
PATInterfaces/SystematicSet.h
>
15
16
//
17
// method implementations
18
//
19
20
namespace
CP
21
{
22
SelectionReadAccessorInvert ::
23
SelectionReadAccessorInvert (std::unique_ptr<ISelectionReadAccessor> val_base)
24
:
m_base
(
std
::move (val_base))
25
{}
26
27
28
29
SelectionType
SelectionReadAccessorInvert ::
30
getBits (
const
SG::AuxElement
& element,
31
const
CP::SystematicSet
*sys)
const
32
{
33
if
(
m_base
->getBool (element, sys) ==
false
)
34
return
selectionAccept
();
35
else
36
return
0;
37
}
38
39
40
41
bool
SelectionReadAccessorInvert ::
42
getBool (
const
SG::AuxElement
& element,
43
const
CP::SystematicSet
*sys)
const
44
{
45
return
m_base
->getBool (element, sys) ==
false
;
46
}
47
48
49
50
std::string SelectionReadAccessorInvert ::
51
label ()
const
52
{
53
return
m_base
->label() +
",invert"
;
54
}
55
56
57
58
bool
SelectionReadAccessorInvert ::
59
isBool ()
const
60
{
61
return
true
;
62
}
63
64
65
66
CP::SystematicSet
SelectionReadAccessorInvert ::
67
getInputAffecting (
const
ISystematicsSvc
& svc,
68
const
std::string& objectName)
const
69
{
70
return
m_base
->getInputAffecting (svc, objectName);
71
}
72
73
74
75
StatusCode SelectionReadAccessorInvert ::
76
fillSystematics (
const
ISystematicsSvc
& svc,
77
const
std::vector<CP::SystematicSet>& sysList,
78
ISysObjectHandleBase
& objectHandle)
79
{
80
return
m_base
->fillSystematics (svc, sysList, objectHandle);
81
}
82
}
SelectionReadAccessorInvert.h
SystematicSet.h
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::SelectionReadAccessorInvert::m_base
std::unique_ptr< ISelectionReadAccessor > m_base
the base selection accessors I invert
Definition
SelectionReadAccessorInvert.h:63
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition
SelectionHelpers.h:26
CP::selectionAccept
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
Definition
SelectionHelpers.h:35
SG::AuxElement
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
std
STL namespace.
Generated on
for ATLAS Offline Software by
1.17.0