ROOT
Version v6.32
master
v6.34
v6.30
v6.28
v6.26
v6.24
v6.22
v6.20
v6.18
v6.16
v6.14
v6.12
v6.10
v6.08
v6.06
Reference Guide
▼
ROOT
ROOT Reference Documentation
Tutorials
►
Functional Parts
►
Namespaces
►
All Classes
▼
Files
▼
File List
►
bindings
►
core
►
documentation
►
geom
►
graf2d
►
graf3d
►
gui
►
hist
►
html
►
io
►
main
►
math
►
montecarlo
►
net
►
proof
▼
roofit
►
batchcompute
►
doc
►
histfactory
►
hs3
►
jsoninterface
►
multiprocess
►
RDataFrameHelpers
►
roofit
▼
roofitcore
doc
►
inc
►
res
▼
src
►
RooFit
►
RooFitLegacy
►
TestStatistics
BatchModeDataHelpers.cxx
BidirMMapPipe.cxx
BidirMMapPipe.h
►
ConstraintHelpers.cxx
►
ConstraintHelpers.h
FitHelpers.cxx
FitHelpers.h
Initialisation.cxx
►
MemPoolForRooSets.h
ModelConfig.cxx
NormalizationHelpers.cxx
Roo1DTable.cxx
RooAbsAnaConvPdf.cxx
►
RooAbsArg.cxx
RooAbsBinning.cxx
RooAbsCache.cxx
RooAbsCachedPdf.cxx
RooAbsCachedReal.cxx
RooAbsCacheElement.cxx
RooAbsCategory.cxx
RooAbsCategoryLValue.cxx
►
RooAbsCollection.cxx
RooAbsData.cxx
RooAbsDataFiller.cxx
RooAbsDataStore.cxx
RooAbsFunc.cxx
RooAbsGenContext.cxx
RooAbsHiddenReal.cxx
RooAbsIntegrator.cxx
RooAbsLValue.cxx
RooAbsMCStudyModule.cxx
RooAbsMinimizerFcn.cxx
►
RooAbsMinimizerFcn.h
RooAbsMoment.cxx
RooAbsNumGenerator.cxx
RooAbsNumGenerator.h
RooAbsOptTestStatistic.cxx
RooAbsPdf.cxx
RooAbsProxy.cxx
RooAbsReal.cxx
RooAbsRealLValue.cxx
RooAbsStudy.cxx
RooAbsTestStatistic.cxx
RooAcceptReject.cxx
RooAcceptReject.h
RooAdaptiveIntegratorND.cxx
RooAdaptiveIntegratorND.h
RooAddGenContext.cxx
RooAddHelpers.cxx
►
RooAddHelpers.h
RooAddition.cxx
RooAddModel.cxx
RooAddPdf.cxx
RooAICRegistry.cxx
RooArgList.cxx
RooArgProxy.cxx
RooArgSet.cxx
RooBinIntegrator.cxx
RooBinIntegrator.h
RooBinnedGenContext.cxx
RooBinning.cxx
RooBinningCategory.cxx
RooBinSamplingPdf.cxx
RooBinWidthFunction.cxx
RooBrentRootFinder.cxx
RooCachedPdf.cxx
RooCachedReal.cxx
►
RooCacheManager.cxx
RooCategory.cxx
RooChangeTracker.cxx
RooChi2Var.cxx
RooClassFactory.cxx
RooCmdArg.cxx
RooCmdConfig.cxx
RooCompositeDataStore.cxx
RooConstraintSum.cxx
RooConstVar.cxx
RooConvCoefVar.cxx
RooConvGenContext.cxx
RooConvIntegrandBinding.cxx
RooConvIntegrandBinding.h
RooCurve.cxx
RooCustomizer.cxx
RooDataHist.cxx
RooDataHistSliceIter.cxx
RooDataProjBinding.cxx
RooDataSet.cxx
RooDerivative.cxx
RooDirItem.cxx
RooDLLSignificanceMCSModule.cxx
RooDouble.cxx
RooEffGenContext.cxx
RooEfficiency.cxx
RooEffProd.cxx
RooEllipse.cxx
RooErrorVar.cxx
RooEvaluatorWrapper.cxx
RooEvaluatorWrapper.h
RooExpensiveObjectCache.cxx
RooExtendedBinding.cxx
RooExtendedTerm.cxx
RooExtendPdf.cxx
►
RooFactoryWSTool.cxx
RooFFTConvPdf.cxx
RooFirstMoment.cxx
RooFitImplHelpers.cxx
RooFitResult.cxx
RooFoamGenerator.cxx
RooFoamGenerator.h
RooFormula.cxx
RooFormula.h
RooFormulaVar.cxx
RooFracRemainder.cxx
RooFunctor.cxx
RooFuncWrapper.cxx
RooGenContext.cxx
RooGenericPdf.cxx
RooGenFitStudy.cxx
RooGenProdProj.cxx
RooGenProdProj.h
►
RooGlobalFunc.cxx
RooGrid.cxx
RooGrid.h
►
RooHelpers.cxx
RooHist.cxx
RooHistError.cxx
RooHistFunc.cxx
RooHistPdf.cxx
RooImproperIntegrator1D.cxx
RooImproperIntegrator1D.h
RooInvTransform.cxx
RooLinearCombination.cxx
RooLinearVar.cxx
RooLinkedList.cxx
RooLinkedListElem.cxx
RooLinTransBinning.cxx
►
RooMappedCategory.cxx
RooMath.cxx
RooMCIntegrator.cxx
RooMCIntegrator.h
RooMCStudy.cxx
RooMinimizer.cxx
RooMinimizerFcn.cxx
►
RooMinimizerFcn.h
RooMoment.cxx
RooMsgService.cxx
RooMultiCategory.cxx
►
RooMultiVarGaussian.cxx
RooNameReg.cxx
RooNLLVar.cxx
RooNLLVarNew.cxx
RooNLLVarNew.h
RooNormalizedPdf.cxx
►
RooNormalizedPdf.h
RooNormSetCache.cxx
RooNumber.cxx
RooNumCdf.cxx
RooNumConvolution.cxx
RooNumConvPdf.cxx
RooNumGenConfig.cxx
RooNumGenFactory.cxx
►
RooNumGenFactory.h
RooNumIntConfig.cxx
RooNumIntFactory.cxx
RooNumRunningInt.cxx
RooObjCacheManager.cxx
RooParamBinning.cxx
RooPlot.cxx
RooPlotable.cxx
►
RooPolyFunc.cxx
RooPolyVar.cxx
►
RooPrintable.cxx
RooProdGenContext.cxx
►
RooProdPdf.cxx
►
RooProduct.cxx
RooProfileLL.cxx
RooProjectedPdf.cxx
►
RooProofDriverSelector.cxx
RooPullVar.cxx
RooQuasiRandomGenerator.cxx
RooRandom.cxx
RooRandomizeParamMCSModule.cxx
RooRangeBinning.cxx
RooRangeBoolean.cxx
RooRatio.cxx
RooRealBinding.cxx
RooRealConstant.cxx
RooRealIntegral.cxx
►
RooRealMPFE.cxx
RooRealSumFunc.cxx
RooRealSumPdf.cxx
►
RooRealVar.cxx
RooRecursiveFraction.cxx
RooResolutionModel.cxx
►
RooRombergIntegrator.cxx
►
RooRombergIntegrator.h
RooSecondMoment.cxx
RooSentinel.cxx
RooSentinel.h
RooSharedProperties.cxx
RooSimGenContext.cxx
RooSimSplitGenContext.cxx
RooSimultaneous.cxx
RooSimWSTool.cxx
RooSTLRefCountList.cxx
RooStreamParser.cxx
RooStringVar.cxx
RooStudyManager.cxx
RooStudyPackage.cxx
RooSuperCategory.cxx
RooThresholdCategory.cxx
RooTObjWrap.cxx
RooTrace.cxx
RooTreeDataStore.cxx
RooTruthModel.cxx
RooUniformBinning.cxx
RooUnitTest.cxx
RooVectorDataStore.cxx
RooWorkspace.cxx
RooWrapperPdf.cxx
RooXYChi2Var.cxx
►
TreeReadBuffer.h
►
ValueChecking.h
►
roofitmore
►
roofitZMQ
►
roostats
►
xroofit
►
sql
►
tmva
►
tree
►
tutorials
►
v6-32-00-patches
►
File Members
Release Notes
•
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
RooSentinel.cxx
Go to the documentation of this file.
1
/// \cond ROOFIT_INTERNAL
2
3
/*****************************************************************************
4
* Project: RooFit *
5
* Package: RooFitCore *
6
* @(#)root/roofitcore:$Id$
7
* Authors: *
8
* WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu *
9
* DK, David Kirkby, UC Irvine, dkirkby@uci.edu *
10
* *
11
* Copyright (c) 2000-2005, Regents of the University of California *
12
* and Stanford University. All rights reserved. *
13
* *
14
* Redistribution and use in source and binary forms, *
15
* with or without modification, are permitted according to the terms *
16
* listed in LICENSE (http://roofit.sourceforge.net/license.txt) *
17
*****************************************************************************/
18
19
/**
20
\file RooSentinel.cxx
21
\class RooSentinel
22
\ingroup Roofitcore
23
24
RooSentinel is a special purpose singleton class that terminates
25
all other RooFit singleton services when the process exits.
26
27
All function RooFit singleton services are created on the heap with
28
a static wrapper function to avoid the 'static initialization order fiasco'
29
but are not automatically destroyed at the end of the session. This class
30
installs an atexit() function that takes care of this
31
**/
32
33
#include "
RooSentinel.h
"
34
#include "
RooArgSet.h
"
35
#include "
RooRealConstant.h
"
36
#include "
RooResolutionModel.h
"
37
#include "
RooExpensiveObjectCache.h
"
38
#include "
RooDataSet.h
"
39
40
bool
RooSentinel::_active =
false
;
41
42
static
void
CleanUpRooFitAtExit
()
43
{
44
// Clean up function called at program termination before global objects go out of scope.
45
RooArgSet::cleanup
() ;
46
RooDataSet::cleanup
();
47
RooRealVar::cleanup
();
48
}
49
50
51
52
////////////////////////////////////////////////////////////////////////////////
53
/// Install atexit handler that calls CleanupRooFitAtExit()
54
/// on program termination
55
56
void
RooSentinel::activate()
57
{
58
if
(!_active) {
59
_active =
true
;
60
atexit
(
CleanUpRooFitAtExit
) ;
61
}
62
}
63
64
/// \endcond
RooArgSet.h
RooDataSet.h
RooExpensiveObjectCache.h
RooRealConstant.h
RooResolutionModel.h
RooSentinel.h
TRangeDynCast
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Definition
TCollection.h:358
ROOT::Detail::TRangeCast
Definition
TCollection.h:311
RooArgSet::cleanup
static void cleanup()
Definition
RooArgSet.cxx:76
RooDataSet::cleanup
static void cleanup()
Definition
RooDataSet.cxx:125
RooRealVar::cleanup
static void cleanup()
Explicitly deletes the shared properties list on exit to avoid problems with the initialization order...
Definition
RooRealVar.cxx:75
roofit
roofitcore
src
RooSentinel.cxx
ROOT v6-32 - Reference Guide Generated on Sat Apr 12 2025 15:11:01 (GVA Time) using Doxygen 1.10.0