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