97 for (
size_t i =
element.second.size(); i > 0; --i) {
99 std::string
name(
typeid(*imp).name());
113 for (
size_t i =
element.second.size(); i > 0; --i) {
115 std::string
name(
typeid(*imp).name());
128 for (
const auto &
ePtr :
x.second) {
130 auto const &
e = *
ePtr;
131 std::cout <<
x.first <<
"\t" <<
typeid(
e).
name() << std::endl;
138 for (
const auto &
ePtr :
x.second) {
140 auto const &
e = *
ePtr;
141 std::cout <<
x.first->GetName() <<
"\t" <<
typeid(
e).
name() << std::endl;
151 std::cerr <<
"unable to read file '" <<
fname <<
"'" << std::endl;
163 for (
const auto &cl :
n.children()) {
164 std::string key = cl.key();
165 if (!cl.has_child(
"class")) {
166 std::cerr <<
"error for entry '" << key <<
"': 'class' key is required!" << std::endl;
169 std::string classname(cl[
"class"].val());
172 std::cerr <<
"unable to find class " << classname <<
", skipping." << std::endl;
177 if (!cl.has_child(
"arguments")) {
178 std::cerr <<
"class " << classname <<
" seems to have no arguments attached, skipping" << std::endl;
181 for (
const auto &arg : cl[
"arguments"].children()) {
182 ex.arguments.push_back(arg.val());
198 std::cout << it.first;
199 std::cout <<
" " << it.second.tclass->GetName();
200 for (
auto v : it.second.arguments) {
201 std::cout <<
" " <<
v;
203 std::cout << std::endl;
216 std::cerr <<
"unable to read file '" <<
fname <<
"'" << std::endl;
228 for (
const auto &cl :
n.children()) {
229 std::string classname = cl.key();
232 std::cerr <<
"unable to find class " << classname <<
", skipping." << std::endl;
236 auto *
type = cl.find(
"type");
237 auto *proxies = cl.find(
"proxies");
239 std::cerr <<
"class " << classname <<
"has not type key set, skipping" << std::endl;
243 std::cerr <<
"class " << classname <<
"has no proxies identified, skipping" << std::endl;
247 for (
const auto &k : proxies->children()) {
248 ex.proxies[k.key()] = k.val();
264 std::cout << it.first->GetName() <<
": " << it.second.type;
265 for (
const auto &
kv : it.second.proxies) {
266 std::cout <<
" " <<
kv.first <<
"=" <<
kv.second;
268 std::cout << std::endl;
ROOT::Detail::TRangeCast< T, true > TRangeDynCast
TRangeDynCast is an adapter class that allows the typed iteration through a TCollection.
Option_t Option_t TPoint TPoint const char GetTextMagnitude GetFillStyle GetLineColor GetLineWidth GetMarkerStyle GetTextAlign GetTextColor GetTextSize void char Point_t Rectangle_t WindowAttributes_t Float_t Float_t Float_t Int_t Int_t UInt_t UInt_t Rectangle_t Int_t Int_t Window_t TString Int_t GCValues_t GetPrimarySelectionOwner GetDisplay GetScreen GetColormap GetNativeEvent const char const char dpyName wid window const char font_name cursor keysym reg const char only_if_exist regb h Point_t winding char text const char depth char const char Int_t count const char ColorStruct_t color const char Pixmap_t Pixmap_t PictureAttributes_t attr const char char ret_data h unsigned char height h Atom_t Int_t ULong_t ULong_t unsigned char prop_list Atom_t Atom_t Atom_t Time_t type
const_iterator begin() const
static std::unique_ptr< JSONTree > create()
TClass instances represent classes, structs and namespaces in the ROOT type system.
static TClass * GetClass(const char *name, Bool_t load=kTRUE, Bool_t silent=kFALSE)
Static method returning pointer to TClass of the specified class name.
static bool registerImporter(const std::string &key, bool topPriority=true)
void loadFactoryExpressions(std::istream &is)
ImportExpressionMap & importExpressions()
static bool registerExporter(const TClass *key, bool topPriority=true)
void clearFactoryExpressions()
int removeImporters(const std::string &needle)
int removeExporters(const std::string &needle)
std::map< TClass const *, std::vector< std::unique_ptr< const Exporter > > > ExportMap
void loadExportKeys(std::istream &is)
std::map< const std::string, ImportExpression > ImportExpressionMap
void printFactoryExpressions()
ExportKeysMap & exportKeys()
std::map< TClass const *, ExportKeys > ExportKeysMap
std::map< const std::string, std::vector< std::unique_ptr< const Importer > > > ImportMap
The namespace RooFit contains mostly switches that change the behaviour of functions of PDFs (or othe...