ATLAS Offline Software
Toggle main menu visibility
Loading...
Searching...
No Matches
PhysicsAnalysis
Algorithms
SelectionHelpers
Root
SelectionHelpers.cxx
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
//
9
// includes
10
//
11
12
#include <
SelectionHelpers/SelectionHelpers.h
>
13
14
#include <
PATCore/AcceptData.h
>
15
16
//
17
// method implementations
18
//
19
20
namespace
CP
21
{
22
SelectionType
selectionFromBool
(
bool
accept)
23
{
24
if
(accept)
25
return
selectionAccept
();
26
else
27
return
selectionReject
();
28
}
29
30
31
32
SelectionType
selectionFromAccept
(
const
asg::AcceptData
& accept)
33
{
34
return
~SelectionType
(accept.getCutResultInvertedBitSet().to_ulong());
35
}
36
37
38
39
ANA_MSG_SOURCE
(msgSelectionHelpers,
"selectionHelpers"
)
40
}
AcceptData.h
ANA_MSG_SOURCE
#define ANA_MSG_SOURCE(NAME, TITLE)
the source code part of ANA_MSG_SOURCE
Definition
Control/AthToolSupport/AsgMessaging/AsgMessaging/MessageCheck.h:133
SelectionHelpers.h
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
Generated on
for ATLAS Offline Software by
1.17.0