Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
RooHelpers.h File Reference
#include <RooMsgService.h>
#include <RooAbsArg.h>
#include <RooAbsReal.h>
#include <ROOT/RSpan.hxx>
#include <sstream>
#include <list>
#include <vector>
#include <string>
#include <utility>
Include dependency graph for RooHelpers.h:
This graph shows which files directly or indirectly include this file:

Classes

class  RooHelpers::HijackMessageStream
 Hijacks all messages with given level and topic (and optionally object name) while alive. More...
 
class  RooHelpers::LocalChangeMsgLevel
 Switches the message service to a different level while the instance is alive. More...
 
struct  RooHelpers::WrapIntoTObject< T >
 Wrap an object into a TObject. Sometimes needed to avoid reinterpret_cast or enable RTTI. More...
 

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