ATLAS Offline Software
Loading...
Searching...
No Matches
SGTools/SGTools/CurrentEventStore.h
Go to the documentation of this file.
1// This file's extension implies that it's C, but it's really -*- C++ -*-.
2/*
3 Copyright (C) 2002-2026 CERN for the benefit of the ATLAS collaboration
4*/
11
12
13#ifndef SGTOOLS_CURRENTEVENTSTORE_H
14#define SGTOOLS_CURRENTEVENTSTORE_H
15
16
17#include "GaudiKernel/EventContext.h"
18class IProxyDict;
19
20
21namespace SG {
22
23
24
35class CurrentEventStore
36{
37public:
39 static IProxyDict* store();
40
41
44 static IProxyDict* setStore (IProxyDict* store);
45
46
52 class Push
53 {
54 public:
55 Push (IProxyDict* store);
57
58 private:
60 EventContext m_oldCtx;
61 };
62
63 static thread_local IProxyDict* m_curStore;
64};
65
66
67} // namespace SG
68
69
71
72
73#endif // not SGTOOLS_CURRENTEVENTSTORE_H
Push(IProxyDict *store)
TestStore store
Definition TestStore.cxx:23
Forward declaration.
void setStore(const SG::IConstAuxStore *store)
Set the store associated with this object.
static IProxyDict * m_curStore
The current event store.