ATLAS Offline Software
Loading...
Searching...
No Matches
SelectionAccessorList.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_LIST_H
9#define SELECTION_HELPERS__SELECTION_ACCESSOR_LIST_H
10
12
13#include <memory>
14#include <vector>
15
16namespace CP
17{
20
22 {
23 //
24 // public interface
25 //
26
27 public:
28 SelectionAccessorList (std::vector<std::unique_ptr<ISelectionReadAccessor> > val_list);
29
30 public:
31 virtual SelectionType
32 getBits (const SG::AuxElement& element,
33 const CP::SystematicSet *sys) const override;
34
35 public:
36 virtual bool
37 getBool (const SG::AuxElement& element,
38 const CP::SystematicSet *sys) const override;
39
40 public:
41 virtual std::string label () const override;
42
43 public:
44 virtual bool isBool () const override;
45
46 public:
47 virtual CP::SystematicSet
49 const std::string& objectName) const override;
50
51 public:
52 virtual StatusCode
54 const std::vector<CP::SystematicSet>& sysList,
55 const std::string& objectName) override;
56
57
58 //
59 // private interface
60 //
61
63 private:
64 std::vector<std::unique_ptr<ISelectionReadAccessor> > m_list;
65
67 private:
68 std::string m_label;
69 };
70}
71
72#endif
a specialized accessor to read a selection decoration from/to an xAOD object
the interface for the central systematics service
std::string m_label
the label of the accessor
virtual SelectionType getBits(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
virtual std::string label() const override
get the label of the accessor
SelectionAccessorList(std::vector< std::unique_ptr< ISelectionReadAccessor > > val_list)
virtual bool isBool() const override
whether this accessor returns a simple boolean
virtual StatusCode fillSystematics(const ISystematicsSvc &svc, const std::vector< CP::SystematicSet > &sysList, const std::string &objectName) override
fill the systematic variations
std::vector< std::unique_ptr< ISelectionReadAccessor > > m_list
the list of selection accessors I rely on
virtual bool getBool(const SG::AuxElement &element, const CP::SystematicSet *sys) const override
get the selection decoration
virtual CP::SystematicSet getInputAffecting(const ISystematicsSvc &svc, const std::string &objectName) const override
get the systematics when reading from the decoration
Class to wrap a set of SystematicVariations.
Base class for elements of a container that can have aux data.
Definition AuxElement.h:483
Select isolated Photons, Electrons and Muons.
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData