Logo ROOT  
Reference Guide
 
Loading...
Searching...
No Matches
JSONIOUtils.h
Go to the documentation of this file.
1#ifndef JSONIOUtils_h
2#define JSONIOUtils_h
3
4#include <string_view>
5#include <vector>
7
8class RooAbsBinning;
9
10bool startsWith(std::string_view str, std::string_view prefix);
11bool endsWith(std::string_view str, std::string_view suffix);
12std::string removeSuffix(std::string_view str, std::string_view suffix);
14
15// The key of a fixed domain axis (HS3 #131): the parameter only takes this value, and RooFit reads it as a
16// RooConstVar.
17inline constexpr const char *fixedValueKey = "value";
18bool parseHS3Version(std::string const &version, int &major, int &minor);
19bool isHS3VersionBefore(std::string const &version, int major, int minor);
20
21#endif
bool isHS3VersionBefore(std::string const &version, int major, int minor)
constexpr const char * fixedValueKey
Definition JSONIOUtils.h:17
bool startsWith(std::string_view str, std::string_view prefix)
bool endsWith(std::string_view str, std::string_view suffix)
std::string removeSuffix(std::string_view str, std::string_view suffix)
bool parseHS3Version(std::string const &version, int &major, int &minor)
void writeAxisBinning(RooFit::Detail::JSONNode &node, const RooAbsBinning &binning)
Abstract base class for RooRealVar binning definitions.