ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
SelectionHelpers
SelectionReadAccessorBits.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2025 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
#ifndef SELECTION_HELPERS__SELECTION_ACCESSOR_READ_BITS_H
9
#define SELECTION_HELPERS__SELECTION_ACCESSOR_READ_BITS_H
10
11
#include <
SelectionHelpers/ISelectionReadAccessor.h
>
12
13
namespace
CP
14
{
17
18
class
SelectionReadAccessorBits
final :
public
ISelectionReadAccessor
19
{
20
//
21
// public interface
22
//
23
24
public
:
25
SelectionReadAccessorBits
(
const
std::string&
name
);
26
27
public
:
28
virtual
SelectionType
29
getBits
(
const
SG::AuxElement
& element,
30
const
CP::SystematicSet
*sys)
const override
;
31
32
public
:
33
virtual
bool
34
getBool
(
const
SG::AuxElement
& element,
35
const
CP::SystematicSet
*sys)
const override
;
36
37
public
:
38
virtual
std::string
label
()
const override
;
39
40
public
:
41
virtual
bool
isBool
()
const override
;
42
43
public
:
44
virtual
CP::SystematicSet
45
getInputAffecting
(
const
ISystematicsSvc
& svc,
46
const
std::string& objectName)
const override
;
47
48
public
:
49
virtual
StatusCode
50
fillSystematics
(
const
ISystematicsSvc
& svc,
51
const
std::vector<CP::SystematicSet>& sysList,
52
ISysObjectHandleBase
& objectHandle)
override
;
53
54
55
//
56
// private interface
57
//
58
60
private
:
61
SG::ConstAccessor<SelectionType>
m_constAccessor
;
62
64
private
:
65
std::string
m_label
;
66
};
67
}
68
69
#endif
ISelectionReadAccessor.h
CP::ISelectionReadAccessor
a specialized accessor to read a selection decoration from/to an xAOD object
Definition
ISelectionReadAccessor.h:40
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::SelectionReadAccessorBits::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, ISysObjectHandleBase &objectHandle) override
fill the systematic variations
Definition
SelectionReadAccessorBits.cxx:74
CP::SelectionReadAccessorBits::getBool
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition
SelectionReadAccessorBits.cxx:40
CP::SelectionReadAccessorBits::m_label
std::string m_label
the label of the accessor
Definition
SelectionReadAccessorBits.h:65
CP::SelectionReadAccessorBits::SelectionReadAccessorBits
SelectionReadAccessorBits(const std::string &name)
Definition
SelectionReadAccessorBits.cxx:24
CP::SelectionReadAccessorBits::m_constAccessor
SG::ConstAccessor< SelectionType > m_constAccessor
the underlying accessor
Definition
SelectionReadAccessorBits.h:61
CP::SelectionReadAccessorBits::label
virtual std::string label() const override
get the label of the accessor
Definition
SelectionReadAccessorBits.cxx:57
CP::SelectionReadAccessorBits::getInputAffecting
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc, const std::string &objectName) const override
get the systematics when reading from the decoration
Definition
SelectionReadAccessorBits.cxx:65
CP::SelectionReadAccessorBits::isBool
virtual bool isBool() const override
whether this accessor returns a simple boolean
Definition
SelectionReadAccessorBits.cxx:49
CP::SelectionReadAccessorBits::getBits
virtual SelectionType getBits(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition
SelectionReadAccessorBits.cxx:31
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
SG::ConstAccessor
Helper class to provide constant type-safe access to aux data.
Definition
ConstAccessor.h:55
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition
SelectionHelpers.h:26
SG::AuxElement
AuxElement(SG::AuxVectorData *container, size_t index)
Base class for elements of a container that can have aux data.
xAOD::name
name
Definition
TriggerMenuJson_v1.cxx:29
Generated on
for ATLAS Offline Software by
1.17.0