ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
SelectionHelpers
ISelectionWriteAccessor.h
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
#ifndef SELECTION_HELPERS__I_SELECTION_WRITE_ACCESSOR_H
9
#define SELECTION_HELPERS__I_SELECTION_WRITE_ACCESSOR_H
10
11
#include <
AthContainers/AuxElement.h
>
12
#include <
SelectionHelpers/SelectionHelpers.h
>
13
#include <memory>
14
15
class
StatusCode
;
16
17
namespace
CP
18
{
19
class
ISysObjectHandleBase
;
20
class
ISystematicsSvc
;
21
class
SystematicSet
;
22
23
38
39
class
ISelectionWriteAccessor
40
{
41
// no slicing
42
ISelectionWriteAccessor
&
operator =
(
const
ISelectionWriteAccessor
&) =
delete
;
43
45
public
:
46
virtual
~ISelectionWriteAccessor
() noexcept = default;
47
49
public:
50
virtual
void
setBits
(
const
SG
::AuxElement& element,
51
SelectionType
selection
,
52
const
CP
::
SystematicSet
*sys =
nullptr
)
const
= 0;
53
55
public:
56
virtual
void
setBool
(
const
SG
::AuxElement& element,
57
bool
selection
,
58
const
CP
::
SystematicSet
*sys =
nullptr
)
const
= 0;
59
61
public:
62
virtual
std
::
string
label
()
const
= 0;
63
64
66
public:
67
virtual StatusCode
68
fillSystematics
(
const
ISystematicsSvc
& svc,
69
const
CP
::
SystematicSet
& fullAffecting,
70
const
std
::
vector
<
CP
::
SystematicSet
>& sysList,
71
ISysObjectHandleBase
& objectHandle) = 0;
72
};
73
74
82
StatusCode
83
makeSelectionWriteAccessor
(
const
std
::
string
&
name
,
84
std
::
unique_ptr
<
ISelectionWriteAccessor
>& accessor,
85
bool
defaultToChar = false);
86
}
87
88
#endif
AuxElement.h
Base class for elements of a container that can have aux data.
SelectionHelpers.h
CP::ISelectionWriteAccessor
a specialized accessor to write a selection decoration to an xAOD object
Definition
ISelectionWriteAccessor.h:40
CP::ISelectionWriteAccessor::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const CP::SystematicSet &fullAffecting, const std::vector< CP::SystematicSet > &sysList, ISysObjectHandleBase &objectHandle)=0
fill the systematic variations
CP::ISelectionWriteAccessor::setBits
virtual void setBits(const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet *sys=nullptr) const =0
set the selection decoration
CP::ISelectionWriteAccessor::setBool
virtual void setBool(const SG::AuxElement &element, bool selection, const CP::SystematicSet *sys=nullptr) const =0
set the selection decoration
CP::ISelectionWriteAccessor::label
virtual std::string label() const =0
get the label of the accessor
CP::ISelectionWriteAccessor::operator=
ISelectionWriteAccessor & operator=(const ISelectionWriteAccessor &)=delete
CP::ISelectionWriteAccessor::~ISelectionWriteAccessor
virtual ~ISelectionWriteAccessor() noexcept=default
standard (virtual) destructor
CP::ISysObjectHandleBase
a ISysHandleBase for a handle to a specific object/container
Definition
ISysHandleBase.h:58
CP::ISystematicsSvc
the interface for the central systematics service
Definition
ISystematicsSvc.h:26
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
unique_ptr
STL class.
vector
Definition
MultiHisto.h:13
selection
const std::string selection
Definition
fbtTestBasics.cxx:75
const
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
CP::makeSelectionWriteAccessor
StatusCode makeSelectionWriteAccessor(const std::string &name, std::unique_ptr< ISelectionWriteAccessor > &accessor, bool defaultToChar)
Produces a simple ISelectionWriteAccessor accessing the given decoration.
Definition
ISelectionAccessor.cxx:169
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition
SelectionHelpers.h:26
EL::StatusCode
::StatusCode StatusCode
StatusCode definition for legacy code.
Definition
PhysicsAnalysis/D3PDTools/EventLoop/EventLoop/StatusCode.h:22
SG
Forward declaration.
Definition
CaloCellPacker_400_500.h:32
std
STL namespace.
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
Generated on
for ATLAS Offline Software by
1.17.0