2 Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
7 * @file SGTools/CurrentEventStore.icc
8 * @author scott snyder <snyder@bnl.gov>
10 * @brief Hold a pointer to the current event store.
16 * @brief Fetch the current store.
19 IProxyDict* CurrentEventStore::store()
21 // Accessing a thread-local here is in some cases triggering
22 // an internal error in cling (as of root 6.06.06).
23 // Have cling call an out-of-line function for thread-local access
24 // rather than inlining it.
34 * @brief Temporarily change the current event store.
37 CurrentEventStore::Push::Push (IProxyDict* store)
38 : m_oldStore (setStore (store))
44 * @brief Restore the current event store.
47 CurrentEventStore::Push::~Push()
49 setStore (m_oldStore);