- Deprecated
- RooTrace is unused and untested, and its hooks are compiled out by default. It will be removed in ROOT 6.44. For memory debugging, please use general-purpose tools like AddressSanitizer or Valgrind instead.
Controls the memory tracing hooks in all RooFit objects. When tracing is active, a table of live RooFit objects is kept that can be queried at any time. In verbose mode, messages are printed in addition at the construction and destruction of each object.
Usage example:
{
RooTrace::active(true);
RooTrace::dump();
RooTrace::verbose(true);
RooTrace::mark();
RooTrace::printObjectCounts();
}
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Efficient implementation of a sum of PDFs of the form.
RooArgSet is a container object that can hold multiple RooAbsArg objects.
RooPolynomial implements a polynomial p.d.f of the form.
Variable that can be changed from the outside.
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...
- Note
- In the ROOT releases, the RooTrace is disabled at compile time and the example above will not print any objects. If you are an advanced developer who wants to use the RooTrace, you need to recompile ROOT after changing the
TRACE_CREATE and TRACE_DESTROY macros in RooTrace.h to call the RooTrace functions:
#define TRACE_CREATE RooTrace::create(this);
#define TRACE_DESTROY RooTrace::destroy(this);
However, as ROOT is not build with this by default, the RooTrace is not tested and there is no guarantee that this works.