ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
SelectionHelpers
SelectionWriteAccessorSys.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2022 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
#ifndef SELECTION_HELPERS__SELECTION_WRITE_ACCESSOR_SYS_H
9
#define SELECTION_HELPERS__SELECTION_WRITE_ACCESSOR_SYS_H
10
11
#include <
PATInterfaces/SystematicSet.h
>
12
#include <
SelectionHelpers/ISelectionWriteAccessor.h
>
13
14
#include <memory>
15
#include <vector>
16
17
namespace
CP
18
{
21
22
class
SelectionWriteAccessorSys
final :
public
ISelectionWriteAccessor
23
{
24
//
25
// public interface
26
//
27
28
public
:
29
SelectionWriteAccessorSys
(
const
std::string& val_selectionName);
30
31
32
virtual
void
setBits
(
const
SG::AuxElement
& element,
33
SelectionType
selection
,
34
const
CP::SystematicSet
*sys)
const override
;
35
36
37
virtual
void
setBool
(
const
SG::AuxElement
& element,
38
bool
selection
,
39
const
CP::SystematicSet
*sys)
const override
;
40
41
42
virtual
std::string
label
()
const override
;
43
44
45
virtual
StatusCode
46
fillSystematics
(
const
ISystematicsSvc
& svc,
47
const
CP::SystematicSet
& fullAffecting,
48
const
std::vector<CP::SystematicSet>& sysList,
49
ISysObjectHandleBase
& objectHandle)
override
;
50
51
52
53
//
54
// private interface
55
//
56
58
private
:
59
std::unordered_map<CP::SystematicSet,std::tuple<std::string,std::unique_ptr<ISelectionWriteAccessor>>>
m_dataCache
;
60
62
private
:
63
std::string
m_selectionName
;
64
};
65
}
66
67
#endif
ISelectionWriteAccessor.h
SystematicSet.h
CP::ISelectionWriteAccessor
a specialized accessor to write a selection decoration to an xAOD object
Definition
ISelectionWriteAccessor.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::SelectionWriteAccessorSys::label
virtual std::string label() const override
get the label of the accessor
Definition
SelectionWriteAccessorSys.cxx:62
CP::SelectionWriteAccessorSys::SelectionWriteAccessorSys
SelectionWriteAccessorSys(const std::string &val_selectionName)
Definition
SelectionWriteAccessorSys.cxx:25
CP::SelectionWriteAccessorSys::m_dataCache
std::unordered_map< CP::SystematicSet, std::tuple< std::string, std::unique_ptr< ISelectionWriteAccessor > > > m_dataCache
the map of accessor we use
Definition
SelectionWriteAccessorSys.h:59
CP::SelectionWriteAccessorSys::fillSystematics
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const CP::SystematicSet &fullAffecting, const std::vector< CP::SystematicSet > &sysList, ISysObjectHandleBase &objectHandle) override
fill the systematic variations
Definition
SelectionWriteAccessorSys.cxx:70
CP::SelectionWriteAccessorSys::setBits
virtual void setBits(const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet *sys) const override
set the selection decoration
Definition
SelectionWriteAccessorSys.cxx:32
CP::SelectionWriteAccessorSys::m_selectionName
std::string m_selectionName
the selectionName for this accessor
Definition
SelectionWriteAccessorSys.h:63
CP::SelectionWriteAccessorSys::setBool
virtual void setBool(const SG::AuxElement &element, bool selection, const CP::SystematicSet *sys) const override
set the selection decoration
Definition
SelectionWriteAccessorSys.cxx:47
CP::SystematicSet
Class to wrap a set of SystematicVariations.
Definition
SystematicSet.h:31
selection
const std::string selection
Definition
fbtTestBasics.cxx:75
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