Logo ROOT  
Reference Guide
RooHelpers Namespace Reference

Classes

class  BatchInterfaceAccessor
 Helper class to access a batch-related part of RooAbsReal's interface, which should not leak to the outside world. More...
 
class  CachingError
 
class  FormatPdfTree
 
class  HijackMessageStream
 Hijacks all messages with given level and topic (and optionally object name) while alive. More...
 
class  LocalChangeMsgLevel
 Switches the message service to verbose while the instance alive. More...
 

Functions

void 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 extraMessage="")
 Check if the parameters have a range, and warn if the range extends below / above the set limits. More...
 
std::vector< std::string > tokenise (const std::string &str, const std::string &delims)
 Tokenise the string by splitting at the characters in delims. More...
 

Function Documentation

◆ checkRangeOfParameters()

void RooHelpers::checkRangeOfParameters ( const RooAbsReal callingClass,
std::initializer_list< const RooAbsReal * >  pars,
double  min,
double  max,
bool  limitsInAllowedRange,
std::string  extraMessage 
)

Check if the parameters have a range, and warn if the range extends below / above the set limits.

Parameters
[in]callingClassClass that's calling. Needed to include name and type name of the class in error message.
[in]parsList of all parameters to be checked.
[in]minMinimum of allowed range. min itself counts as disallowed.
[in]maxMaximum of allowed range. max itself counts as disallowed.
[in]limitsInAllowedRangeIf true, the limits passed as parameters are part of the allowed range.
[in]extraMessageMessage that should be appended to the warning.

Definition at line 75 of file RooHelpers.cxx.

◆ tokenise()

std::vector< std::string > RooHelpers::tokenise ( const std::string &  str,
const std::string &  delims 
)

Tokenise the string by splitting at the characters in delims.

Consecutive delimiters are collapsed, so that no delimiters will appear in the tokenised strings, and no emtpy strings are returned.

Definition at line 25 of file RooHelpers.cxx.