Classes | |
struct | DisableCachingRAII |
Disable all caches for sub-branches in an expression tree. More... | |
class | HijackMessageStream |
Hijacks all messages with given level and topic (and optionally object name) while alive. More... | |
class | LocalChangeMsgLevel |
Switches the message service to a different level while the instance is alive. More... | |
struct | WrapIntoTObject |
Wrap an object into a TObject. Sometimes needed to avoid reinterpret_cast or enable RTTI. 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. | |
std::pair< double, double > | getRangeOrBinningInterval (RooAbsArg const *arg, const char *rangeName) |
Get the lower and upper bound of parameter range if arg can be casted to RooAbsRealLValue. | |
std::vector< std::string > | tokenise (const std::string &str, const std::string &delims, bool returnEmptyToken) |
Tokenise the string by splitting at the characters in delims. | |
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.
[in] | callingClass | Class that's calling. Needed to include name and type name of the class in error message. |
[in] | pars | List of all parameters to be checked. |
[in] | min | Minimum of allowed range. min itself counts as disallowed. |
[in] | max | Maximum of allowed range. max itself counts as disallowed. |
[in] | limitsInAllowedRange | If true, the limits passed as parameters are part of the allowed range. |
[in] | extraMessage | Message that should be appended to the warning. |
Definition at line 117 of file RooHelpers.cxx.
std::pair< double, double > RooHelpers::getRangeOrBinningInterval | ( | RooAbsArg const * | arg, |
const char * | rangeName | ||
) |
Get the lower and upper bound of parameter range if arg can be casted to RooAbsRealLValue.
If no range with rangeName is defined for the argument, this will check if a binning of the same name exists and return the interval covered by the binning. Returns {-infinity, infinity}
if agument can't be casted to RooAbsRealLValue* or if no range or binning with the requested name exists.
[in] | arg | RooAbsArg for which to get the range. |
[in] | rangeName | The name of the range. |
Definition at line 155 of file RooHelpers.cxx.
std::vector< std::string > RooHelpers::tokenise | ( | const std::string & | str, |
const std::string & | delims, | ||
bool | returnEmptyToken | ||
) |
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.
[in] | str | String to tokenise. |
[in] | delims | One or more delimiters used to split the string. |
[in] | returnEmptyToken | If the string is empty, return one empty token. Default is to return an empty vector. |
Definition at line 62 of file RooHelpers.cxx.