BCAux::RootSideEffectGuard Class Reference

A guard object to prevent ROOT from taking over ownership of TNamed objects. More...

#include <BCAux.h>

Detailed Description

A guard object to prevent ROOT from taking over ownership of TNamed objects.

The guard should be created in the scope in which TNamed objects are created, for example:

TH1D* hist;
{
RootSideEffectGuard g;
hist = new TH1D(...);
}

Definition at line 171 of file BCAux.h.


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