LArSoft  v10_04_05
Liquid Argon Software toolkit - https://larsoft.org/
GeoObjectSorter.h
Go to the documentation of this file.
1 
7 #ifndef LARCOREALG_GEOMETRY_GEOOBJECTSORTER_H
8 #define LARCOREALG_GEOMETRY_GEOOBJECTSORTER_H
9 
12 
13 #include <vector>
14 
15 namespace geo {
16 
18  public:
19  virtual ~GeoObjectSorter() = default;
20  void sort(std::vector<CryostatGeo>& cryostats) const;
21  void sort(std::vector<TPCGeo>& tpcs) const;
22  void sort(std::vector<OpDetGeo>& ods) const;
23 
24  private:
25  virtual bool compareCryostats(CryostatGeo const& c1, CryostatGeo const& c2) const = 0;
26  virtual bool compareTPCs(TPCGeo const& t1, TPCGeo const& t2) const = 0;
27 
28  virtual bool compareOpDets(OpDetGeo const& od1, OpDetGeo const& od2) const;
29  };
30 
31 }
32 
33 #endif // LARCOREALG_GEOMETRY_GEOOBJECTSORTER_H
TTree * t1
Definition: plottest35.C:26
virtual ~GeoObjectSorter()=default
Geometry information for a single TPC.
Definition: TPCGeo.h:33
Geometry information for a single cryostat.
Definition: CryostatGeo.h:42
TCanvas * c1
Definition: plotHisto.C:7
TCanvas * c2
Definition: plot_hist.C:75
virtual bool compareCryostats(CryostatGeo const &c1, CryostatGeo const &c2) const =0
void sort(std::vector< CryostatGeo > &cryostats) const
Definition of data types for geometry description.
TTree * t2
Definition: plottest35.C:36
virtual bool compareOpDets(OpDetGeo const &od1, OpDetGeo const &od2) const
virtual bool compareTPCs(TPCGeo const &t1, TPCGeo const &t2) const =0
ROOT libraries.