ATLAS Offline Software
RootGlobalsRestore.cxx
Go to the documentation of this file.
1 
3 /*
4  Copyright (C) 2002-2017 CERN for the benefit of the ATLAS collaboration
5 */
6 
7 // RootGlobalsRestore.cxx
8 // Implementation file for class RootGlobalsRestore
9 // Author: S.Binet<binet@cern.ch>
11 
12 // AthenaRootComps includes
13 #include "RootGlobalsRestore.h"
14 
15 // STL includes
16 
17 // ROOT includes
18 #include "TFile.h"
19 #include "TDirectory.h"
20 #include "TError.h"
21 
22 namespace Athena {
23 
24 
26 {
27  m_gd = gDirectory;
28  m_gf = gFile;
30 }
31 
33 {
34  gDirectory = m_gd;
35  gFile = m_gf;
37 }
38 
39 } //> end namespace Athena
Athena::RootGlobalsRestore::m_gf
TFile * m_gf
current ROOT file
Definition: RootGlobalsRestore.h:63
RootGlobalsRestore.h
ParseInputs.gDirectory
gDirectory
Definition: Final2012/ParseInputs.py:133
Athena
Some weak symbol referencing magic...
Definition: AthLegacySequence.h:21
Athena::RootGlobalsRestore::~RootGlobalsRestore
~RootGlobalsRestore()
Destructor:
Definition: RootGlobalsRestore.cxx:32
Athena::RootGlobalsRestore::m_gd
TDirectory * m_gd
current ROOT directory
Definition: RootGlobalsRestore.h:60
gErrorIgnoreLevel
int gErrorIgnoreLevel
Athena::RootGlobalsRestore::m_ge
int m_ge
current ROOT error-level
Definition: RootGlobalsRestore.h:66
Athena::RootGlobalsRestore::RootGlobalsRestore
RootGlobalsRestore()
Default constructor:
Definition: RootGlobalsRestore.cxx:25