ATLAS Offline Software
Loading...
Searching...
No Matches
SelectionReadHandle.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_READ_HANDLE_H
9#define SELECTION_HELPERS_SELECTION_READ_HANDLE_H
10
12#include <memory>
13
14class StatusCode;
15
16namespace CP
17{
19
27
29 {
30 //
31 // public interface
32 //
33
35 public:
36 template<typename T2>
37 SelectionReadHandle (T2 *owner, const std::string& propertyName,
38 const std::string& propertyValue,
39 const std::string& propertyDescription);
40
41
43 public:
44 bool empty () const noexcept;
45
47 public:
48 explicit operator bool () const noexcept;
49
50
52 public:
53 StatusCode initialize ();
54
55
57 public:
58 bool getBool (const SG::AuxElement& element) const;
59
60
61
62 //
63 // private interface
64 //
65
67 private:
69
71 private:
73
74 };
75}
76
77#include "SelectionReadHandle.icc"
78
79#endif
Base class for elements of a container that can have aux data.
a specialized accessor to read a selection decoration from/to an xAOD object
std::unique_ptr< ISelectionReadAccessor > m_accessor
the accessor we use
bool getBool(const SG::AuxElement &element) const
get the selection as a bool
StatusCode initialize()
initialize the accessor
SelectionReadHandle(T2 *owner, const std::string &propertyName, const std::string &propertyValue, const std::string &propertyDescription)
standard constructor
bool empty() const noexcept
whether we have a name configured
std::string m_selection
the selection we use
STL class.
Select isolated Photons, Electrons and Muons.
Forward declaration.
STL namespace.
#define private