Functions | |
std::string | branchname (const std::string tespath) |
std::string RootIO::branchname | ( | const std::string | tespath | ) |
Definition at line 18 of file RootIOAddress.cc.
00019 { 00020 // Catch root-level data objects 00021 if(tespath.rfind("/") == 0) 00022 return tespath.substr(1); 00023 // Initialize with string just after "/Event/" 00024 std::string bn = tespath.substr(std::string("/Event/").size()); 00025 for (std::string::size_type ind = 0; ind < bn.size(); ++ind) { 00026 if (bn[ind] == '/') bn[ind] = '_'; 00027 } 00028 return bn; 00029 }