13#ifndef RooFit_RooHelpers_h
14#define RooFit_RooHelpers_h
45 unsigned int removeTopics = 0u,
bool overrideExternalLevel =
true);
51 std::vector<RooMsgService::StreamConfig>
fOldConf;
81 std::vector<RooMsgService::StreamConfig>
_oldConf;
87 double min = -std::numeric_limits<double>::max(),
88 double max = std::numeric_limits<double>::max(),
bool limitsInAllowedRange =
false,
89 std::string
const &extraMessage =
"");
Abstract base class for binned and unbinned datasets.
Abstract interface for all probability density functions.
Abstract base class for objects that represent a real value and implements functionality common to al...
Hijacks all messages with given level and topic (and optionally object name) while alive.
std::ostringstream & stream()
RooFit::MsgLevel _oldKillBelow
std::vector< RooMsgService::StreamConfig > _oldConf
~HijackMessageStream()
Deregister the hijacked stream and restore the stream state of all previous streams.
const HijackMessageStream & operator<<(const T &v) const
Switches the message service to a different level while the instance is alive.
RooFit::MsgLevel fOldKillBelow
std::vector< RooMsgService::StreamConfig > fOldConf
Mother of all ROOT objects.
MsgLevel
Verbosity level for RooMsgService::StreamConfig in RooMsgService.
MsgTopic
Topics for a RooMsgService::StreamConfig in RooMsgService.
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 const &extraMessage="")
Check if the parameters have a range, and warn if the range extends below / above the set limits.
Wrap an object into a TObject. Sometimes needed to avoid reinterpret_cast or enable RTTI.