Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooFit::TestStatistics::ConstantTermsOptimizer Class Reference

Analyzes a function given a dataset/observables for constant terms and caches those in the dataset.

This optimizer should be used on a consistent combination of function (usually a pdf) and a dataset with observables. It then analyzes the function to find parts that can be precalculated because they are constant given the set of observables. These are cached inside the dataset and used in subsequent evaluations of the function on that dataset. The typical use case for this is inside likelihood minimization where many calls of the same pdf/dataset combination are made. norm_set must provide the normalization set of the function, which would typically be the set of observables in the dataset; this is used to make sure all object caches are created before analysis by evaluating the function on this set at the beginning of enableConstantTermsOptimization.

Definition at line 25 of file ConstantTermsOptimizer.h.

Static Public Member Functions

static void disableConstantTermsOptimization (RooAbsReal *function, RooArgSet *norm_set, RooArgSet *observables, RooAbsData *dataset)
 
static void enableConstantTermsOptimization (RooAbsReal *function, RooArgSet *norm_set, RooAbsData *dataset, bool applyTrackingOpt)
 
static void optimizeCaching (RooAbsReal *function, RooArgSet *norm_set, RooArgSet *observables, RooAbsData *dataset)
 
static RooArgSet requiredExtraObservables ()
 

#include </home/sftnight/build/workspace/root-makedoc-v626/rootspi/rdoc/src/v6-26-00-patches/roofit/roofitcore/src/TestStatistics/ConstantTermsOptimizer.h>

Member Function Documentation

◆ disableConstantTermsOptimization()

void RooFit::TestStatistics::ConstantTermsOptimizer::disableConstantTermsOptimization ( RooAbsReal function,
RooArgSet norm_set,
RooArgSet observables,
RooAbsData dataset 
)
static

Definition at line 129 of file ConstantTermsOptimizer.cxx.

◆ enableConstantTermsOptimization()

void RooFit::TestStatistics::ConstantTermsOptimizer::enableConstantTermsOptimization ( RooAbsReal function,
RooArgSet norm_set,
RooAbsData dataset,
bool  applyTrackingOpt 
)
static

Definition at line 44 of file ConstantTermsOptimizer.cxx.

◆ optimizeCaching()

void RooFit::TestStatistics::ConstantTermsOptimizer::optimizeCaching ( RooAbsReal function,
RooArgSet norm_set,
RooArgSet observables,
RooAbsData dataset 
)
static

Definition at line 149 of file ConstantTermsOptimizer.cxx.

◆ requiredExtraObservables()

RooArgSet RooFit::TestStatistics::ConstantTermsOptimizer::requiredExtraObservables ( )
static

Definition at line 37 of file ConstantTermsOptimizer.cxx.


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