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
15
16//
17// method implementations
18//
19
20namespace CP
21{
22 SelectionReadAccessorBits ::
23 SelectionReadAccessorBits (const std::string& name)
25 {}
26
27
28
29 SelectionType SelectionReadAccessorBits ::
30 getBits (const SG::AuxElement& element,
31 const CP::SystematicSet * /*sys*/) const
32 {
33 return m_constAccessor (element);
34 }
35
36
37
38 bool SelectionReadAccessorBits ::
39 getBool (const SG::AuxElement& element,
40 const CP::SystematicSet * /*sys*/) const
41 {
42 return m_constAccessor (element) == selectionAccept();
43 }
44
45
46
47 bool SelectionReadAccessorBits ::
48 isBool () const
49 {
50 return false;
51 }
52
53
54
55 std::string SelectionReadAccessorBits ::
56 label () const
57 {
58 return m_label;
59 }
60
61
62
63 CP::SystematicSet SelectionReadAccessorBits ::
64 getInputAffecting (const ISystematicsSvc& /*svc*/,
65 const std::string& /*objectName*/) const
66 {
67 return CP::SystematicSet ();
68 }
69
70
71
72 StatusCode SelectionReadAccessorBits ::
73 fillSystematics (const ISystematicsSvc& /*svc*/,
74 const std::vector<CP::SystematicSet>& /*sysList*/,
75 const std::string& /*objectName*/)
76 {
77 return StatusCode::SUCCESS;
78 }
79}
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:483
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