ATLAS Offline Software
Loading...
Searching...
No Matches
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
14namespace asg
15{
16 class AcceptData;
17}
18
19namespace 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
50 SelectionType selectionFromBool (bool accept);
51
52
56
57
58 ANA_MSG_HEADER (msgSelectionHelpers)
59}
60
61#endif
macros for messaging and checking status codes
#define ANA_MSG_HEADER(NAME)
for standalone code this creates a new message category
Select isolated Photons, Electrons and Muons.
constexpr SelectionType selectionReject()
the selection decoration to apply for objects that are rejected
uint32_t SelectionType
the type for selection decorations that are meant to hold a asg::AcceptData
SelectionType selectionFromAccept(const asg::AcceptData &accept)
the selection decoration made from the given AcceptData object
constexpr SelectionType selectionAccept()
the selection decoration to apply for objects that are selected
SelectionType selectionFromBool(bool accept)
the selection decoration made from the given boolean (true = accept)
setEventNumber uint32_t