ATLAS Offline Software
CurrentContext.h
Go to the documentation of this file.
1 /*
2  Copyright (C) 2002-2020 CERN for the benefit of the ATLAS collaboration
3 */
4 
6 
7 
8 
9 #ifndef ASG_TOOLS__CURRENT_CONTEXT_H
10 #define ASG_TOOLS__CURRENT_CONTEXT_H
11 
12 #ifndef XAOD_STANDALONE
13 #include <GaudiKernel/ThreadLocalContext.h>
14 #else
15 
16 class EventContext;
17 
18 namespace Gaudi
19 {
20  namespace Hive
21  {
28 
29  const EventContext& currentContext ();
30  }
31 }
32 
39 
40 class EventContext final
41 {
42  // deleting these for now, as users should be passing these objects
43  // by reference.
44  EventContext (const EventContext&) noexcept = delete;
45  EventContext& operator = (const EventContext&) noexcept = delete;
46 
47  // making this private, so that users can't instantiate their own
48  // EventContext.
49  EventContext () noexcept = default;
50  friend const EventContext& Gaudi::Hive::currentContext ();
51 };
52 
53 #endif
54 
55 #endif
EL::Detail::ManagerStep::final
@ final
const
bool const RAWDATA *ch2 const
Definition: LArRodBlockPhysicsV0.cxx:560
Gaudi
=============================================================================
Definition: CaloGPUClusterAndCellDataMonitorOptions.h:273
python.CaloScaleNoiseConfig.default
default
Definition: CaloScaleNoiseConfig.py:79