11#ifndef O2_FRAMEWORK_ROOTCONFIGPARAMHELPERS_H_
12#define O2_FRAMEWORK_ROOTCONFIGPARAMHELPERS_H_
17#include <boost/property_tree/ptree_fwd.hpp>
26 static std::vector<ConfigParamSpec>
asConfigParamSpecsImpl(std::string
const& mainkey, TClass* cl,
void* obj);
29 static void fillFromPtree(TClass* cl,
void* obj, boost::property_tree::ptree
const& pt);
35 static std::vector<ConfigParamSpec>
asConfigParamSpecs(std::string
const& mainKey, T
const& proto = T{})
37 auto cl = TClass::GetClass<T>();
49 static T
as(boost::property_tree::ptree
const& pt)
52 TClass* cl = TClass::GetClass<T>();
GLuint const GLchar * name
Defining PrimaryVertex explicitly as messageable.
RuntimeErrorRef runtime_error_f(const char *,...)
Helpers to Serialise / Deserialise ROOT objects using the ConfigParamSpec mechanism.
static std::vector< ConfigParamSpec > asConfigParamSpecsImpl(std::string const &mainkey, TClass *cl, void *obj)
static std::vector< ConfigParamSpec > asConfigParamSpecs(std::string const &mainKey, T const &proto=T{})
static void fillFromPtree(TClass *cl, void *obj, boost::property_tree::ptree const &pt)
static T as(boost::property_tree::ptree const &pt)