ATLAS Offline Software
Loading...
Searching...
No Matches
SelectionWriteAccessorChar.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 SelectionWriteAccessorChar ::
23 SelectionWriteAccessorChar (const std::string& name)
25 {}
26
27
28
29 void SelectionWriteAccessorChar ::
30 setBits (const SG::AuxElement& element,
32 const CP::SystematicSet * /*sys*/) const
33 {
35 m_accessor (element) = 1;
36 else
37 m_accessor (element) = 0;
38 }
39
40
41
42 void SelectionWriteAccessorChar ::
43 setBool (const SG::AuxElement& element,
44 bool selection,
45 const CP::SystematicSet * /*sys*/) const
46 {
47 m_accessor (element) = selection;
48 }
49
50
51
52 std::string SelectionWriteAccessorChar ::
53 label () const
54 {
55 return m_label;
56 }
57
58
59
60 StatusCode SelectionWriteAccessorChar ::
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< char > 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