ATLAS Offline Software
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 
20 namespace 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 }
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
CP
Select isolated Photons, Electrons and Muons.
Definition: Control/xAODRootAccess/xAODRootAccess/TEvent.h:48
CP::selectionReject
constexpr SelectionType selectionReject()
the selection decoration to apply for objects that are rejected
Definition: SelectionHelpers.h:44
AcceptData.h
CP::selectionFromBool
SelectionType selectionFromBool(bool accept)
the selection decoration made from the given boolean (true = accept)
Definition: SelectionHelpers.cxx:22
CP::ANA_MSG_SOURCE
ANA_MSG_SOURCE(ShowerDepthToolMessaging, "CP::ShowerDepthTool")
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
SelectionHelpers.h