ATLAS Offline Software
Loading...
Searching...
No Matches
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
13
14#include <PATCore/AcceptData.h>
15
16//
17// method implementations
18//
19
20namespace CP
21{
23 {
24 if (accept)
25 return selectionAccept();
26 else
27 return selectionReject();
28 }
29
30
31
33 {
34 return ~SelectionType (accept.getCutResultInvertedBitSet().to_ulong());
35 }
36
37
38
39 ANA_MSG_SOURCE (msgSelectionHelpers, "selectionHelpers")
40}
#define ANA_MSG_SOURCE(NAME, TITLE)
the source code part of ANA_MSG_SOURCE
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)