ATLAS Offline Software
Loading...
Searching...
No Matches
SelectionWriteAccessorBits.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 SelectionWriteAccessorBits ::
23 SelectionWriteAccessorBits (const std::string& name)
25 {}
26
27
28
29 void SelectionWriteAccessorBits ::
30 setBits (const SG::AuxElement& element,
32 const CP::SystematicSet * /*sys*/) const
33 {
34 m_accessor (element) = selection;
35 }
36
37
38
39 void SelectionWriteAccessorBits ::
40 setBool (const SG::AuxElement& element,
41 bool selection,
42 const CP::SystematicSet * /*sys*/) const
43 {
44 if (selection)
45 m_accessor (element) = selectionAccept();
46 else
47 m_accessor (element) = selectionAccept() ^ 0x1;
48 }
49
50
51
52 std::string SelectionWriteAccessorBits ::
53 label () const
54 {
55 return m_label;
56 }
57
58
59
60 StatusCode SelectionWriteAccessorBits ::
61 fillSystematics (const ISystematicsSvc& /*svc*/,
62 const CP::SystematicSet& /*fullAffecting*/,
63 const std::vector<CP::SystematicSet>& /*sysList*/,
64 const std::string& /*objectName*/)
65 {
66 return StatusCode::SUCCESS;
67 }
68}
the interface for the central systematics service
SG::Decorator< SelectionType > m_accessor
the underlying accessor
std::string m_label
the label of the accessor
Class to wrap a set of SystematicVariations.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
const std::string selection
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