ATLAS Offline Software
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 
12 #include <cstdint>
13 
14 namespace asg
15 {
16  class AcceptData;
17 }
18 
19 namespace CP
20 {
27 
28 
35  inline constexpr SelectionType selectionAccept () {
36  return ~SelectionType (0);}
37 
38 
44  inline constexpr SelectionType selectionReject () {
45  return ~SelectionType (1);}
46 
47 
51 
52 
56 
57 
58  ANA_MSG_HEADER (msgSelectionHelpers)
59 }
60 
61 #endif
xAOD::uint32_t
setEventNumber uint32_t
Definition: EventInfo_v1.cxx:127
CP::SelectionType
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
Definition: SelectionHelpers.h:26
CutsMETMaker::accept
StatusCode accept(const xAOD::Muon *mu)
Definition: CutsMETMaker.cxx:18
CP::selectionFromAccept
SelectionType selectionFromAccept(const asg::AcceptData &accept)
the selection decoration made from the given AcceptData object
Definition: SelectionHelpers.cxx:32
asg
Definition: DataHandleTestTool.h:28
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
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
MessageCheck.h
macros for messaging and checking status codes
CP::selectionReject
constexpr SelectionType selectionReject()
the selection decoration to apply for objects that are rejected
Definition: SelectionHelpers.h:44
CP::selectionFromBool
SelectionType selectionFromBool(bool accept)
the selection decoration made from the given boolean (true = accept)
Definition: SelectionHelpers.cxx:22
AcceptData
Object to encode the result of several cuts.
CP::selectionAccept
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
Definition: SelectionHelpers.h:35
asg::AcceptData
Definition: AcceptData.h:30