| 1283 |
|
|
| 1284 |
|
|
| 1285 |
//______________________________________________________________________________ |
//______________________________________________________________________________ |
| 1286 |
void TMultiGraph::SavePrimitive(ostream &out, Option_t *option /*= ""*/) |
void TMultiGraph::SavePrimitive(std::ostream &out, Option_t *option /*= ""*/) |
| 1287 |
{ |
{ |
| 1288 |
// Save primitive as a C++ statement(s) on output stream out |
// Save primitive as a C++ statement(s) on output stream out |
| 1289 |
|
|
| 1290 |
char quote = '"'; |
char quote = '"'; |
| 1291 |
out<<" "<<endl; |
out<<" "<<std::endl; |
| 1292 |
if (gROOT->ClassSaved(TMultiGraph::Class())) { |
if (gROOT->ClassSaved(TMultiGraph::Class())) { |
| 1293 |
out<<" "; |
out<<" "; |
| 1294 |
} else { |
} else { |
| 1295 |
out<<" TMultiGraph *"; |
out<<" TMultiGraph *"; |
| 1296 |
} |
} |
| 1297 |
out<<"multigraph = new TMultiGraph();"<<endl; |
out<<"multigraph = new TMultiGraph();"<<std::endl; |
| 1298 |
out<<" multigraph->SetName("<<quote<<GetName()<<quote<<");"<<endl; |
out<<" multigraph->SetName("<<quote<<GetName()<<quote<<");"<<std::endl; |
| 1299 |
out<<" multigraph->SetTitle("<<quote<<GetTitle()<<quote<<");"<<endl; |
out<<" multigraph->SetTitle("<<quote<<GetTitle()<<quote<<");"<<std::endl; |
| 1300 |
|
|
| 1301 |
if (fGraphs) { |
if (fGraphs) { |
| 1302 |
TObjOptLink *lnk = (TObjOptLink*)fGraphs->FirstLink(); |
TObjOptLink *lnk = (TObjOptLink*)fGraphs->FirstLink(); |
| 1310 |
} |
} |
| 1311 |
const char *l = strstr(option,"th2poly"); |
const char *l = strstr(option,"th2poly"); |
| 1312 |
if (l) { |
if (l) { |
| 1313 |
out<<" "<<l+7<<"->AddBin(multigraph);"<<endl; |
out<<" "<<l+7<<"->AddBin(multigraph);"<<std::endl; |
| 1314 |
} else { |
} else { |
| 1315 |
out<<" multigraph->Draw(" <<quote<<option<<quote<<");"<<endl; |
out<<" multigraph->Draw(" <<quote<<option<<quote<<");"<<std::endl; |
| 1316 |
} |
} |
| 1317 |
TAxis *xaxis = GetXaxis(); |
TAxis *xaxis = GetXaxis(); |
| 1318 |
TAxis *yaxis = GetYaxis(); |
TAxis *yaxis = GetYaxis(); |