Go to the documentation of this file.
15 inline bool to(
directory& a_dir,
const std::map<std::string,std::string>& a_annotations,
const std::string& a_histo_name) {
19 if(it!=a_annotations.begin()) sas +=
"\n";
24 std::string key_name =
"annotations_"+a_histo_name;
27 a_dir.
file().
out() <<
"tools::wroot::to : Named_stream failed." << std::endl;
38 a_dir.
file().
out() <<
"tools::wroot::to : TH1D_stream failed." << std::endl;
49 a_dir.
file().
out() <<
"tools::wroot::to : TH1F_stream failed." << std::endl;
60 a_dir.
file().
out() <<
"tools::wroot::to : TH2D_stream failed." << std::endl;
71 a_dir.
file().
out() <<
"tools::wroot::to :"
72 <<
" TH2F_stream failed."
83 a_name,a_histo.
title(),
"TH3D");
85 a_dir.
file().
out() <<
"tools::wroot::to :"
86 <<
" TH3D_stream failed."
98 a_dir.
file().
out() <<
"tools::wroot::to :"
99 <<
" TH3F_stream failed."
110 a_name,a_histo.
title(),
"TProfile");
112 a_dir.
file().
out() <<
"tools::wroot::to :"
113 <<
" TProfile_stream failed."
124 a_name,a_histo.
title(),
"TProfile2D");
126 a_dir.
file().
out() <<
"tools::wroot::to :"
127 <<
" TProfile2D_stream failed."
137 typedef std::pair<std::string,void*> class_pointer;
140 const std::string& scls = (*it).first;
141 void* p = (*it).second;
144 if(!
to(a_dir,h,h.
title()))
return false;
148 if(!
to(a_dir,h,h.
title()))
return false;
152 if(!
to(a_dir,h,h.
title()))
return false;
156 if(!
to(a_dir,h,h.
title()))
return false;
160 if(!
to(a_dir,h,h.
title()))
return false;
163 a_dir.
file().
out() <<
"tools::wroot::write_histos :"
164 <<
" WARNING : class " << scls <<
" not handled."
175 #include "../store/osc_streamers"
190 a_dir.
file().
out() <<
"tools::wroot::to_osc :"
191 <<
" Histogram1D_stream failed."
210 a_dir.
file().
out() <<
"tools::wroot::to_osc :"
211 <<
" Histogram2D_stream failed."
230 a_dir.
file().
out() <<
"tools::wroot::to_osc :"
231 <<
" Histogram3D_stream failed."
250 a_dir.
file().
out() <<
"tools::wroot::to_osc :"
251 <<
" Profile1D_stream failed."
270 a_dir.
file().
out() <<
"tools::wroot::to_osc :"
271 <<
" Profile2D_stream failed."
#define tools_mforcit(a__K, a__V, a__m, a__it)
#define tools_vforcit(a__T, a__v, a__it)