LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
GeoNodePath.cxx
Go to the documentation of this file.
1 
9 // LArSoft libraries
11 
12 // ROOT libraries
13 #include "TGeoNode.h"
14 
15 //------------------------------------------------------------------------------
16 geo::GeoNodePath::operator std::string() const
17 {
18 
19  std::string s = "[";
20  auto it = fNodes.cbegin(), end = fNodes.cend();
21  if (it != end) {
22  s += (*it++)->GetName();
23  while (++it != fNodes.cend()) {
24  s += '/';
25  s += (*it)->GetName();
26  }
27  } // if
28  return s + "]";
29 
30 } // operator std::string()
31 
32 //------------------------------------------------------------------------------
Class representing a path in ROOT geometry.
decltype(auto) constexpr end(T &&obj)
ADL-aware version of std::end.
Definition: StdUtils.h:77