Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooHelpers.cxx File Reference
#include <RooHelpers.h>
#include <RooAbsCategory.h>
#include <RooAbsData.h>
#include <RooAbsPdf.h>
#include <RooAbsRealLValue.h>
#include <RooArgList.h>
#include <RooCategory.h>
#include <RooDataHist.h>
#include <RooDataSet.h>
#include <RooMultiPdf.h>
#include <RooProdPdf.h>
#include <RooRealSumPdf.h>
#include <RooRealVar.h>
#include <RooSimultaneous.h>
#include <ROOT/StringUtils.hxx>
#include <TClass.h>
#include <algorithm>
#include <cmath>
#include <unordered_map>
Include dependency graph for RooHelpers.cxx:

Namespaces

namespace  RooHelpers
 

Functions

std::list< double > * RooHelpers::binBoundariesInRange (std::span< const double > boundaries, double xlo, double xhi)
 Return a newly allocated list with the subset of boundaries that lies strictly inside [xlo, xhi], with xlo and xhi added as the first and last entries.
 
void RooHelpers::checkRangeOfParameters (const RooAbsReal *callingClass, std::initializer_list< const RooAbsReal * > pars, double min=-std::numeric_limits< double >::max(), double max=std::numeric_limits< double >::max(), bool limitsInAllowedRange=false, std::string const &extraMessage="")
 Check if the parameters have a range, and warn if the range extends below / above the set limits.
 
bool RooHelpers::isFunctionFlatInBins (const RooAbsReal &function, RooAbsRealLValue &obs, std::span< const double > boundaries, double relTol=1e-9)
 Check that function is constant (flat) inside each bin defined by the sorted boundaries when scanning the observable obs.
 
bool RooHelpers::setAllConstant (const RooAbsCollection &coll, bool constant=true)
 set all RooRealVars to constants. return true if at least one changed status