ATLAS Offline Software
Loading...
Searching...
No Matches
SelectionReadAccessorChar.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 SelectionReadAccessorChar ::
24 SelectionReadAccessorChar (const std::string& name)
26 {}
27
28
29
30 SelectionType SelectionReadAccessorChar ::
31 getBits (const SG::AuxElement& element,
32 const CP::SystematicSet * /*sys*/) const
33 {
34 if (m_constAccessor (element))
35 return selectionAccept();
36 else
37 return 0;
38 }
39
40
41
42 bool SelectionReadAccessorChar ::
43 getBool (const SG::AuxElement& element,
44 const CP::SystematicSet * /*sys*/) const
45 {
46 return m_constAccessor (element);
47 }
48
49
50
51 std::string SelectionReadAccessorChar ::
52 label () const
53 {
54 return m_label;
55 }
56
57
58
59 bool SelectionReadAccessorChar ::
60 isBool () const
61 {
62 return true;
63 }
64
65
66
67 CP::SystematicSet SelectionReadAccessorChar ::
68 getInputAffecting (const ISystematicsSvc& /*svc*/,
69 const std::string& /*objectName*/) const
70 {
71 return CP::SystematicSet ();
72 }
73
74
75
76 StatusCode SelectionReadAccessorChar ::
77 fillSystematics (const ISystematicsSvc& /*svc*/,
78 const std::vector<CP::SystematicSet>& /*sysList*/,
79 ISysObjectHandleBase& objectHandle)
80 {
81 using namespace msgSelectionHelpers;
82
83 ANA_CHECK (objectHandle.addDecorationDependency (m_label, false));
84 return StatusCode::SUCCESS;
85 }
86}
#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 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< char > 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