11 const std::string& dir)
13 if (dir ==
"")
return;
14 gSystem->mkdir(dir.c_str(),
true);
15 c->SaveAs(std::string(dir + std::string(c->GetTitle()) +
".eps").c_str());
16 c->SaveAs(std::string(dir + std::string(c->GetTitle()) +
".png").c_str());
17 c->SaveAs(std::string(dir + std::string(c->GetTitle()) +
".gif").c_str());
22 const string& oldSubstr,
23 const string& newSubstr)
25 string newName =
name;
26 Int_t startPos = name.find(oldSubstr);
27 newName.replace(startPos, oldSubstr.size(), newSubstr);
35 vector<string> result;
37 Int_t end = name.find_first_of(delimiter);
38 while (end != string::npos) {
39 string str = name.substr(begin, end - begin);
40 if (str[0] == delimiter) str.erase(0, 1);
41 result.push_back(str);
43 end = name.find_first_of(delimiter, end + 1);
45 result.push_back(name.substr(begin + 1));