GeoNodePath.cxx
Go to the documentation of this file.
1 /**
2  * @file larcorealg/Geometry/GeoNodePath.cxx
3  * @brief Class representing a path in ROOT geometry.
4  * @author Gianluca Petrillo (petrillo@slac.stanford.edu)
5  * @date January 29, 2019
6  * @see `larcorealg/Geometry/GeoNodePath.h`
7  */
8 
9 // LArSoft libraries
11 
12 // ROOT libraries
13 #include "TGeoNode.h"
14 
15 //------------------------------------------------------------------------------
16 geo::GeoNodePath::operator std::string() const {
17 
18  std::string s = "[";
19  auto it = fNodes.cbegin(), end = fNodes.cend();
20  if (it != end) {
21  s += (*it++)->GetName();
22  while (++it != fNodes.cend()) {
23  s += '/';
24  s += (*it)->GetName();
25  }
26  } // if
27  return s + "]";
28 
29 } // operator std::string()
30 
31 
32 //------------------------------------------------------------------------------
end
while True: pbar.update(maxval-len(onlies[E][S])) #print iS, "/", len(onlies[E][S]) found = False for...
std::string string
Definition: nybbler.cc:12
Class representing a path in ROOT geometry.
static QCString * s
Definition: config.cpp:1042