ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
SelectionHelpers
SelectionAccessorReadSys.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__SELECTION_ACCESSOR_READ_SYS_H
9
#define SELECTION_HELPERS__SELECTION_ACCESSOR_READ_SYS_H
10
11
#include <
PATInterfaces/SystematicSet.h
>
12
#include <
SelectionHelpers/ISelectionReadAccessor.h
>
13
14
#include <memory>
15
#include <vector>
16
17
namespace
CP
18
{
21
22
class
SelectionAccessorReadSys
final :
public
ISelectionReadAccessor
23
{
24
//
25
// public interface
26
//
27
28
public
:
29
SelectionAccessorReadSys
(
const
std::string& val_selectionName);
30
31
public
:
32
virtual
SelectionType
33
getBits
(
const
SG::AuxElement
& element,
34
const
CP::SystematicSet
*sys)
const override
;
35
36
public
:
37
virtual
bool
38
getBool
(
const
SG::AuxElement
& element,
39
const
CP::SystematicSet
*sys)
const override
;
40
41
public
:
42
virtual
std::string
label
()
const override
;
43
44
public
:
45
virtual
bool
isBool
()
const override
;
46
47
public
:
48
virtual
CP::SystematicSet
49
getInputAffecting
(
const
ISystematicsSvc
& svc,
50
const
std::string& objectName)
const override
;
51
52
public
:
53
virtual
StatusCode
54
fillSystematics
(
const
ISystematicsSvc
& svc,
55
const
std::vector<CP::SystematicSet>& sysList,
56
ISysObjectHandleBase
& objectHandle)
override
;
57
58
59
//
60
// private interface
61
//
62
64
private
:
65
std::unordered_map<CP::SystematicSet,std::tuple<std::string,std::unique_ptr<ISelectionReadAccessor>>>
m_dataCache
;
66
68
private
:
69
std::string
m_selectionName
;
70
};
71
}
72
73
#endif
ISelectionReadAccessor.h
SystematicSet.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::SelectionAccessorReadSys::getInputAffecting
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc, const std::string &objectName) const override
get the systematics when reading from the decoration
Definition
SelectionAccessorReadSys.cxx:78
CP::SelectionAccessorReadSys::m_dataCache
std::unordered_map< CP::SystematicSet, std::tuple< std::string, std::unique_ptr< ISelectionReadAccessor > > > m_dataCache
the map of accessor we use
Definition
SelectionAccessorReadSys.h:65
CP::SelectionAccessorReadSys::isBool
virtual bool isBool() const override
whether this accessor returns a simple boolean
Definition
SelectionAccessorReadSys.cxx:67
CP::SelectionAccessorReadSys::getBits
virtual SelectionType getBits(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition
SelectionAccessorReadSys.cxx:32
CP::SelectionAccessorReadSys::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, ISysObjectHandleBase &objectHandle) override
fill the systematic variations
Definition
SelectionAccessorReadSys.cxx:91
CP::SelectionAccessorReadSys::getBool
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
Definition
SelectionAccessorReadSys.cxx:46
CP::SelectionAccessorReadSys::SelectionAccessorReadSys
SelectionAccessorReadSys(const std::string &val_selectionName)
Definition
SelectionAccessorReadSys.cxx:25
CP::SelectionAccessorReadSys::label
virtual std::string label() const override
get the label of the accessor
Definition
SelectionAccessorReadSys.cxx:59
CP::SelectionAccessorReadSys::m_selectionName
std::string m_selectionName
the selectionName for this accessor
Definition
SelectionAccessorReadSys.h:69
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
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.
Generated on
for ATLAS Offline Software by
1.17.0