ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
16
17//
18// method implementations
19//
20
21namespace CP
22{
23 SelectionReadAccessorBits ::
24 SelectionReadAccessorBits (const std::string& 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}
#define ANA_CHECK(EXP)
check whether the given expression was successful
a ISysHandleBase for a handle to a specific object/container
virtual StatusCode addDecorationDependency(const ISystematicsSvc &svc, const std::string &decoName, bool decoWrite)=0
add dependency information for the given decoration
the interface for the central systematics service
std::string m_label
the label of the accessor
SG::ConstAccessor< SelectionType > m_constAccessor
the underlying accessor
Class to wrap a set of SystematicVariations.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:484
Select isolated Photons, Electrons and Muons.
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected