ATLAS Offline Software
SelectionReadAccessorNull.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 
20 namespace CP
21 {
23  SelectionReadAccessorNull (bool value) : m_value(value)
24  {}
25 
26 
27 
29  getBits (const SG::AuxElement& /*element*/,
30  const CP::SystematicSet * /*sys*/) const
31  {
33  }
34 
35 
36 
38  getBool (const SG::AuxElement& /*element*/,
39  const CP::SystematicSet * /*sys*/) const
40  {
41  return m_value;
42  }
43 
44 
46  label () const
47  {
48  return m_value ? "true" : "false";
49  }
50 
51 
52 
54  isBool () const
55  {
56  return true;
57  }
58 
59 
60 
62  getInputAffecting (const ISystematicsSvc& /*svc*/,
63  const std::string& /*objectName*/) const
64  {
65  return SystematicSet ();
66  }
67 
68 
69 
71  fillSystematics (const ISystematicsSvc& /*svc*/,
72  const std::vector<CP::SystematicSet>& /*sysList*/,
73  const std::string& /*objectName*/)
74  {
75  return StatusCode::SUCCESS;
76  }
77 }
CP::SelectionReadAccessorNull::getInputAffecting
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc, const std::string &objectName) const override
get the systematics when reading from the decoration
Definition: SelectionReadAccessorNull.cxx:62
CP::ISystematicsSvc
the interface for the central systematics service
Definition: ISystematicsSvc.h:25
SG::AuxElement
Base class for elements of a container that can have aux data.
Definition: AuxElement.h:483
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition: SelectionHelpers.h:26
SystematicSet.h
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition: SystematicSet.h:31
athena.value
value
Definition: athena.py:124
CP::SelectionReadAccessorNull::getBits
virtual SelectionType getBits(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition: SelectionReadAccessorNull.cxx:29
CP::SelectionReadAccessorNull::m_value
bool m_value
Definition: SelectionReadAccessorNull.h:63
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::SelectionReadAccessorNull::label
virtual std::string label() const override
get the label of the accessor
Definition: SelectionReadAccessorNull.cxx:46
CP::SelectionReadAccessorNull::isBool
virtual bool isBool() const override
whether this accessor returns a simple boolean
Definition: SelectionReadAccessorNull.cxx:54
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition: PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
CP::selectionReject
constexpr SelectionType selectionReject()
the selection decoration to apply for objects that are rejected
Definition: SelectionHelpers.h:44
CP::SelectionReadAccessorNull::SelectionReadAccessorNull
SelectionReadAccessorNull(bool value=true)
Definition: SelectionReadAccessorNull.cxx:23
CP::SelectionReadAccessorNull::getBool
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition: SelectionReadAccessorNull.cxx:38
CP::selectionAccept
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
Definition: SelectionHelpers.h:35
CP::SelectionReadAccessorNull::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName) override
fill the systematic variations
Definition: SelectionReadAccessorNull.cxx:71
SelectionReadAccessorNull.h