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


class  RooHelpers::ChangeOperModeRAII
 Struct to temporarily change the operation mode of a RooAbsArg until it goes out of scope. More...
struct  RooHelpers::DisableCachingRAII
 Disable all caches for sub-branches in an expression tree. More...
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...


namespace  RooHelpers


bool RooHelpers::checkIfRangesOverlap (RooAbsPdf const &pdf, RooAbsData const &data, std::vector< std::string > const &rangeNames, bool splitRange)
 Check if there is any overlap when a list of ranges is applied to a set of observables.
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.
std::string RooHelpers::getColonSeparatedNameString (RooArgSet const &argSet)
 Create a string with all sorted names of RooArgSet elements separated by colons.
std::pair< double, doubleRooHelpers::getRangeOrBinningInterval (RooAbsArg const *arg, const char *rangeName)
 Get the lower and upper bound of parameter range if arg can be casted to RooAbsRealLValue.
RooArgSet RooHelpers::selectFromArgSet (RooArgSet const &argSet, std::string const &names)
 Construct a RooArgSet of objects in a RooArgSet whose names match to those in the names string.