Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooSentinel Class Reference

RooSentinel is a special purpose singleton class that terminates all other RooFit singleton services when the process exits.

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

Definition at line 21 of file RooSentinel.h.

Static Public Member Functions

static void activate ()
 Install atexit handler that calls CleanupRooFitAtExit() on program termination.
 

Protected Member Functions

 RooSentinel ()
 
 RooSentinel (const RooSentinel &)
 

Static Protected Attributes

static bool _active = false
 

#include </home/sftnight/build/workspace/root-makedoc-v628/rootspi/rdoc/src/v6-28-00-patches/roofit/roofitcore/src/RooSentinel.h>

Constructor & Destructor Documentation

◆ RooSentinel() [1/2]

RooSentinel::RooSentinel ( )
inlineprotected

Definition at line 30 of file RooSentinel.h.

◆ RooSentinel() [2/2]

RooSentinel::RooSentinel ( const RooSentinel )
inlineprotected

Definition at line 31 of file RooSentinel.h.

Member Function Documentation

◆ activate()

void RooSentinel::activate ( )
static

Install atexit handler that calls CleanupRooFitAtExit() on program termination.

Definition at line 54 of file RooSentinel.cxx.

Member Data Documentation

◆ _active

bool RooSentinel::_active = false
staticprotected

Definition at line 28 of file RooSentinel.h.

  • roofit/roofitcore/src/RooSentinel.h
  • roofit/roofitcore/src/RooSentinel.cxx