CMS 3D CMS Logo

DD4hep2DDDName.cc
Go to the documentation of this file.
2 
4  std::size_t found = name.find(':');
5  std::string nam = (found == std::string::npos) ? name : name.substr(found + 1, (name.size() - found));
6  return nam;
7 }
8 
11 }
12 
14  if (!dd4hep)
15  return name;
17  auto n = nam.find("_shape");
18  if (n != std::string::npos)
19  nam = nam.substr(0, n);
20  if (name.find("_refl") != std::string::npos)
21  nam += "_refl";
22  return nam;
23 }
24 
26  if (!dd4hep)
27  return name;
29  auto n = nam.rfind('_');
30  return ((n != std::string::npos) ? nam.substr(0, n) : nam);
31 }
std::string namePV(const std::string &name, bool dd4hep)
std::string nameSolid(const std::string &name, bool dd4hep)
std::string noNameSpace(const std::string &name)
std::string nameMatterLV(const std::string &name, bool dd4hep)