ATLAS Offline Software
Public Member Functions | Private Member Functions | Private Attributes | List of all members
Athena::RootGlobalsRestore Class Reference

#include <RootGlobalsRestore.h>

Collaboration diagram for Athena::RootGlobalsRestore:

Public Member Functions

 RootGlobalsRestore ()
 Default constructor: More...
 
 ~RootGlobalsRestore ()
 Destructor: More...
 

Private Member Functions

 RootGlobalsRestore (const RootGlobalsRestore &rhs)
 Copy constructor: More...
 
RootGlobalsRestoreoperator= (const RootGlobalsRestore &rhs)
 Assignment operator: More...
 

Private Attributes

TDirectory * m_gd
 current ROOT directory More...
 
TFile * m_gf
 current ROOT file More...
 
int m_ge
 current ROOT error-level More...
 

Detailed Description

state of a few global resources from ROOT and restores their initial value upon d-tor call.

Definition at line 29 of file RootGlobalsRestore.h.

Constructor & Destructor Documentation

◆ RootGlobalsRestore() [1/2]

Athena::RootGlobalsRestore::RootGlobalsRestore ( )

Default constructor:

Definition at line 25 of file RootGlobalsRestore.cxx.

26 {
27  m_gd = gDirectory;
28  m_gf = gFile;
30 }

◆ ~RootGlobalsRestore()

Athena::RootGlobalsRestore::~RootGlobalsRestore ( )

Destructor:

Definition at line 32 of file RootGlobalsRestore.cxx.

33 {
34  gDirectory = m_gd;
35  gFile = m_gf;
37 }

◆ RootGlobalsRestore() [2/2]

Athena::RootGlobalsRestore::RootGlobalsRestore ( const RootGlobalsRestore rhs)
private

Copy constructor:

Member Function Documentation

◆ operator=()

RootGlobalsRestore& Athena::RootGlobalsRestore::operator= ( const RootGlobalsRestore rhs)
private

Assignment operator:

Member Data Documentation

◆ m_gd

TDirectory* Athena::RootGlobalsRestore::m_gd
private

current ROOT directory

Definition at line 60 of file RootGlobalsRestore.h.

◆ m_ge

int Athena::RootGlobalsRestore::m_ge
private

current ROOT error-level

Definition at line 66 of file RootGlobalsRestore.h.

◆ m_gf

TFile* Athena::RootGlobalsRestore::m_gf
private

current ROOT file

Definition at line 63 of file RootGlobalsRestore.h.


The documentation for this class was generated from the following files:
Athena::RootGlobalsRestore::m_gf
TFile * m_gf
current ROOT file
Definition: RootGlobalsRestore.h:63
ParseInputs.gDirectory
gDirectory
Definition: Final2012/ParseInputs.py:133
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