ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
SelectionHelpers
SelectionHelpers.h
Go to the documentation of this file.
1
/*
2
Copyright (C) 2002-2018 CERN for the benefit of the ATLAS collaboration
3
*/
4
6
7
8
#ifndef SELECTION_HELPERS__SELECTION_HELPERS_H
9
#define SELECTION_HELPERS__SELECTION_HELPERS_H
10
11
#include <
AsgMessaging/MessageCheck.h
>
12
#include <cstdint>
13
14
namespace
asg
15
{
16
class
AcceptData
;
17
}
18
19
namespace
CP
20
{
26
typedef
uint32_t
SelectionType
;
27
28
35
inline
constexpr
SelectionType
selectionAccept
() {
36
return
~SelectionType
(0);}
37
38
44
inline
constexpr
SelectionType
selectionReject
() {
45
return
~SelectionType
(1);}
46
47
50
SelectionType
selectionFromBool
(
bool
accept);
51
52
55
SelectionType
selectionFromAccept
(
const
asg::AcceptData
& accept);
56
57
58
ANA_MSG_HEADER
(msgSelectionHelpers)
59
}
60
61
#endif
MessageCheck.h
macros for messaging and checking status codes
ANA_MSG_HEADER
#define ANA_MSG_HEADER(NAME)
for standalone code this creates a new message category
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:113
asg::AcceptData
Definition
AcceptData.h:31
CP
Select isolated Photons, Electrons and Muons.
Definition
Control/xAODRootAccess/xAODRootAccess/TEvent.h:27
CP::selectionReject
constexpr SelectionType selectionReject()
the selection decoration to apply for objects that are rejected
Definition
SelectionHelpers.h:44
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition
SelectionHelpers.h:26
CP::selectionFromAccept
SelectionType selectionFromAccept(const asg::AcceptData &accept)
the selection decoration made from the given AcceptData object
Definition
SelectionHelpers.cxx:32
CP::selectionAccept
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
Definition
SelectionHelpers.h:35
CP::selectionFromBool
SelectionType selectionFromBool(bool accept)
the selection decoration made from the given boolean (true = accept)
Definition
SelectionHelpers.cxx:22
asg
Definition
DataHandleTestTool.h:28
xAOD::uint32_t
setEventNumber uint32_t
Definition
EventInfo_v1.cxx:127
Generated on
for ATLAS Offline Software by
1.17.0