ROOT » ROOFIT » ROOFITCORE » RooSentinel

class RooSentinel



RooSentinel is a special purposes singleton class that terminates all other RooFit singleton services when the process exists. All function RooFit singleton services are created on the heap with a static wrapper function to avoid the 'static initialization order fiasco' but are not automatically destroyed at the end of the session. This class installs an atexit() function that takes care of this

Function Members (Methods)

public:
~RooSentinel()
static voidactivate()
RooSentinel&operator=(const RooSentinel&)
protected:
RooSentinel()
RooSentinel(const RooSentinel&)

Data Members

protected:
static Bool_t_active

Class Charts

Inheritance Inherited Members Includes Libraries
Class Charts

Function documentation

void activate()
 Install atexit handler that calls CleanupRooFitAtExit()
 on program termination
RooSentinel()
{}
RooSentinel(const RooSentinel& )
{}