All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
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 //------------------------------------------------------------------------------
Class representing a path in ROOT geometry.
auto end(FixedBins< T, C > const &) noexcept
Definition: FixedBins.h:585
then echo File list $list not found else cat $list while read file do echo $file sed s
Definition: file_to_url.sh:60