ATLAS Offline Software
Loading...
Searching...
No Matches
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
13#include <memory>
14
15class StatusCode;
16
17namespace CP
18{
19 class ISystematicsSvc;
20 class SystematicSet;
21
22
37
39 {
40 // no slicing
42
44 public:
45 virtual ~ISelectionWriteAccessor () noexcept = default;
46
48 public:
49 virtual void setBits (const SG::AuxElement& element,
51 const CP::SystematicSet *sys = nullptr) const = 0;
52
54 public:
55 virtual void setBool (const SG::AuxElement& element,
56 bool selection,
57 const CP::SystematicSet *sys = nullptr) const = 0;
58
60 public:
61 virtual std::string label () const = 0;
62
63
65 public:
66 virtual StatusCode
68 const CP::SystematicSet& fullAffecting,
69 const std::vector<CP::SystematicSet>& sysList,
70 const std::string& objectName) = 0;
71 };
72
73
81 StatusCode
84 bool defaultToChar = false);
85}
86
87#endif
Base class for elements of a container that can have aux data.
a specialized accessor to write a selection decoration to an xAOD object
virtual void setBits(const SG::AuxElement &element, SelectionType selection, const CP::SystematicSet *sys=nullptr) const =0
set the selection decoration
virtual void setBool(const SG::AuxElement &element, bool selection, const CP::SystematicSet *sys=nullptr) const =0
set the selection decoration
virtual std::string label() const =0
get the label of the accessor
ISelectionWriteAccessor & operator=(const ISelectionWriteAccessor &)=delete
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const CP::SystematicSet &fullAffecting, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName)=0
fill the systematic variations
virtual ~ISelectionWriteAccessor() noexcept=default
standard (virtual) destructor
the interface for the central systematics service
Class to wrap a set of SystematicVariations.
STL class.
const std::string selection
Select isolated Photons, Electrons and Muons.
StatusCode makeSelectionWriteAccessor(const std::string &name, std::unique_ptr< ISelectionWriteAccessor > &accessor, bool defaultToChar)
Produces a simple ISelectionWriteAccessor accessing the given decoration.
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Forward declaration.
STL namespace.