All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Protected Attributes | List of all members
ana::DontAddDirectory Class Reference

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

#include <Utilities.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 56 of file sbnana/sbnana/CAFAna/Core/Utilities.h.

Constructor & Destructor Documentation

ana::DontAddDirectory::DontAddDirectory ( )

Definition at line 39 of file sbnana/sbnana/CAFAna/Core/Utilities.cxx.

40  {
41  fBackup = TH1::AddDirectoryStatus();
42  TH1::AddDirectory(false);
43  }
ana::DontAddDirectory::~DontAddDirectory ( )

Definition at line 46 of file sbnana/sbnana/CAFAna/Core/Utilities.cxx.

47  {
48  TH1::AddDirectory(fBackup);
49  }

Member Data Documentation

bool ana::DontAddDirectory::fBackup
protected

Definition at line 62 of file sbnana/sbnana/CAFAna/Core/Utilities.h.


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