Public Member Functions | Protected Attributes | List of all members
ana::DontAddDirectory Class Reference

Prevent histograms being added to the current directory. More...

#include "/cvmfs/nova.opensciencegrid.org/externals/cafanacore/v01.06/src/CAFAna/Core/UtilsExt.h"

Public Member Functions

 DontAddDirectory ()
 
 ~DontAddDirectory ()
 

Protected Attributes

bool fBackup
 

Detailed Description

Prevent histograms being added to the current directory.

Upon going out of scope, restores the previous setting

Definition at line 46 of file UtilsExt.h.

Constructor & Destructor Documentation

ana::DontAddDirectory::DontAddDirectory ( )

Definition at line 36 of file Utilities.cxx.

References fBackup.

37  {
38  fBackup = TH1::AddDirectoryStatus();
39  TH1::AddDirectory(false);
40  }
ana::DontAddDirectory::~DontAddDirectory ( )

Definition at line 43 of file Utilities.cxx.

References fBackup.

44  {
45  TH1::AddDirectory(fBackup);
46  }

Member Data Documentation

bool ana::DontAddDirectory::fBackup
protected

The documentation for this class was generated from the following files: