LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
GeoObjectSorterStandard.cxx
Go to the documentation of this file.
1 
9 
10 namespace geo {
11 
14 
15  //----------------------------------------------------------------------------
17  {
18  CryostatGeo::LocalPoint_t const local{0., 0., 0.};
19  auto const xyz1 = c1.toWorldCoords(local);
20  auto const xyz2 = c2.toWorldCoords(local);
21  return xyz1.X() < xyz2.X();
22  }
23 
24  //----------------------------------------------------------------------------
26  {
27  return t1.GetCenter().X() < t2.GetCenter().X();
28  }
29 
30 }
bool compareTPCs(TPCGeo const &t1, TPCGeo const &t2) const override
TTree * t1
Definition: plottest35.C:26
Encapsulate the construction of a single cyostat .
Geometry information for a single TPC.
Definition: TPCGeo.h:33
bool compareCryostats(CryostatGeo const &c1, CryostatGeo const &c2) const override
Geometry information for a single cryostat.
Definition: CryostatGeo.h:42
Standard algorithm class for sorting of geo::AuxDet objects .
Point_t GetCenter() const
Returns the center of the TPC volume in world coordinates [cm].
Definition: TPCGeo.h:132
TCanvas * c1
Definition: plotHisto.C:7
Point_t toWorldCoords(LocalPoint_t const &local) const
Transform point from local cryostat frame to world frame.
Definition: CryostatGeo.h:343
TCanvas * c2
Definition: plot_hist.C:75
TTree * t2
Definition: plottest35.C:36
Point3DBase_t< CryostatGeoCoordinatesTag > LocalPoint_t
Type of points in the local GDML cryostat frame.
Definition: CryostatGeo.h:78
ROOT libraries.
Encapsulate the construction of a single detector plane .