ATLAS Offline Software
Loading...
Searching...
No Matches
SelectionReadAccessorInvert.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 SelectionReadAccessorInvert ::
23 SelectionReadAccessorInvert (std::unique_ptr<ISelectionReadAccessor> val_base)
24 : m_base (std::move (val_base))
25 {}
26
27
28
29 SelectionType SelectionReadAccessorInvert ::
30 getBits (const SG::AuxElement& element,
31 const CP::SystematicSet *sys) const
32 {
33 if (m_base->getBool (element, sys) == false)
34 return selectionAccept();
35 else
36 return 0;
37 }
38
39
40
41 bool SelectionReadAccessorInvert ::
42 getBool (const SG::AuxElement& element,
43 const CP::SystematicSet *sys) const
44 {
45 return m_base->getBool (element, sys) == false;
46 }
47
48
49
50 std::string SelectionReadAccessorInvert ::
51 label () const
52 {
53 return m_base->label() + ",invert";
54 }
55
56
57
58 bool SelectionReadAccessorInvert ::
59 isBool () const
60 {
61 return true;
62 }
63
64
65
66 CP::SystematicSet SelectionReadAccessorInvert ::
67 getInputAffecting (const ISystematicsSvc& svc,
68 const std::string& objectName) const
69 {
70 return m_base->getInputAffecting (svc, objectName);
71 }
72
73
74
75 StatusCode SelectionReadAccessorInvert ::
76 fillSystematics (const ISystematicsSvc& svc,
77 const std::vector<CP::SystematicSet>& sysList,
78 const std::string& objectName)
79 {
80 return m_base->fillSystematics (svc, sysList, objectName);
81 }
82}
the interface for the central systematics service
std::unique_ptr< ISelectionReadAccessor > m_base
the base selection accessors I invert
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
STL namespace.