ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
Root
SelectionReadAccessorBits.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/SelectionReadAccessorBits.h
>
13
14
#include <
PATInterfaces/SystematicSet.h
>
15
#include <
SystematicsHandles/ISysHandleBase.h
>
16
17
//
18
// method implementations
19
//
20
21
namespace
CP
22
{
23
SelectionReadAccessorBits ::
24
SelectionReadAccessorBits (
const
std::string&
name
)
25
:
m_constAccessor
(
name
),
m_label
(
name
)
26
{}
27
28
29
30
SelectionType
SelectionReadAccessorBits ::
31
getBits (
const
SG::AuxElement
& element,
32
const
CP::SystematicSet
*
/*sys*/
)
const
33
{
34
return
m_constAccessor
(element);
35
}
36
37
38
39
bool
SelectionReadAccessorBits ::
40
getBool (
const
SG::AuxElement
& element,
41
const
CP::SystematicSet
*
/*sys*/
)
const
42
{
43
return
m_constAccessor
(element) ==
selectionAccept
();
44
}
45
46
47
48
bool
SelectionReadAccessorBits ::
49
isBool ()
const
50
{
51
return
false
;
52
}
53
54
55
56
std::string SelectionReadAccessorBits ::
57
label ()
const
58
{
59
return
m_label
;
60
}
61
62
63
64
CP::SystematicSet
SelectionReadAccessorBits ::
65
getInputAffecting (
const
ISystematicsSvc
&
/*svc*/
,
66
const
std::string&
/*objectName*/
)
const
67
{
68
return
CP::SystematicSet
();
69
}
70
71
72
73
StatusCode SelectionReadAccessorBits ::
74
fillSystematics (
const
ISystematicsSvc
& svc,
75
const
std::vector<CP::SystematicSet>&
/*sysList*/
,
76
ISysObjectHandleBase
& objectHandle)
77
{
78
using namespace
msgSelectionHelpers;
79
80
ANA_CHECK
(objectHandle.
addDecorationDependency
(svc,
m_label
,
false
));
81
return
StatusCode::SUCCESS;
82
}
83
}
ANA_CHECK
#define ANA_CHECK(EXP)
check whether the given expression was successful
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:324
ISysHandleBase.h
SelectionReadAccessorBits.h
SystematicSet.h
CP::ISysObjectHandleBase
a ISysHandleBase for a handle to a specific object/container
Definition
ISysHandleBase.h:58
CP::ISysObjectHandleBase::addDecorationDependency
virtual StatusCode addDecorationDependency(const ISystematicsSvc &svc, const std::string &decoName, bool decoWrite)=0
add dependency information for the given decoration
CP::ISystematicsSvc
the interface for the central systematics service
Definition
ISystematicsSvc.h:26
CP::SelectionReadAccessorBits::m_label
std::string m_label
the label of the accessor
Definition
SelectionReadAccessorBits.h:65
CP::SelectionReadAccessorBits::m_constAccessor
SG::ConstAccessor< SelectionType > m_constAccessor
the underlying accessor
Definition
SelectionReadAccessorBits.h:61
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.
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
Generated on
for ATLAS Offline Software by
1.17.0