ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
Root
SelectionReadAccessorNull.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/SelectionReadAccessorNull.h
>
13
14
#include <
PATInterfaces/SystematicSet.h
>
15
16
//
17
// method implementations
18
//
19
20
namespace
CP
21
{
22
SelectionReadAccessorNull ::
23
SelectionReadAccessorNull (
bool
value) :
m_value
(value)
24
{}
25
26
27
28
SelectionType
SelectionReadAccessorNull ::
29
getBits (
const
SG::AuxElement
&
/*element*/
,
30
const
CP::SystematicSet
*
/*sys*/
)
const
31
{
32
return
m_value
?
selectionAccept
() :
selectionReject
();
33
}
34
35
36
37
bool
SelectionReadAccessorNull ::
38
getBool (
const
SG::AuxElement
&
/*element*/
,
39
const
CP::SystematicSet
*
/*sys*/
)
const
40
{
41
return
m_value
;
42
}
43
44
45
std::string SelectionReadAccessorNull ::
46
label ()
const
47
{
48
return
m_value
?
"true"
:
"false"
;
49
}
50
51
52
53
bool
SelectionReadAccessorNull ::
54
isBool ()
const
55
{
56
return
true
;
57
}
58
59
60
61
CP::SystematicSet
SelectionReadAccessorNull ::
62
getInputAffecting (
const
ISystematicsSvc
&
/*svc*/
,
63
const
std::string&
/*objectName*/
)
const
64
{
65
return
SystematicSet
();
66
}
67
68
69
70
StatusCode SelectionReadAccessorNull ::
71
fillSystematics (
const
ISystematicsSvc
&
/*svc*/
,
72
const
std::vector<CP::SystematicSet>&
/*sysList*/
,
73
ISysObjectHandleBase
&
/*objectHandle*/
)
74
{
75
return
StatusCode::SUCCESS;
76
}
77
}
SelectionReadAccessorNull.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::SelectionReadAccessorNull::m_value
bool m_value
Definition
SelectionReadAccessorNull.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::selectionReject
constexpr SelectionType selectionReject()
the selection decoration to apply for objects that are rejected
Definition
SelectionHelpers.h:44
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.
Generated on
for ATLAS Offline Software by
1.17.0