25 double xyz1[3] = {0.}, xyz2[3] = {0.};
26 double local[3] = {0.};
30 return xyz1[0] < xyz2[0];
38 double xyz1[3] = {0.};
39 double xyz2[3] = {0.};
40 double local[3] = {0.};
45 if(xyz1[0] < xyz2[0])
return true;
56 double xyz1[3] = {0.};
57 double xyz2[3] = {0.};
58 double local[3] = {0.};
64 return xyz1[2] < xyz2[2];
68 return xyz1[0] > xyz2[0];
74 double xyz1[3] = {0.};
75 double xyz2[3] = {0.};
81 return xyz1[1] < xyz2[1];
84 return xyz1[2] < xyz2[2];
126 throw cet::exception(
"TPCGeo") <<
"Drift direction is unknown, can't sort the planes\n";
Geometry description of a TPC wireThe wire is a single straight segment on a wire plane...
Drift direction is unknown.
Encapsulate the construction of a single cyostat.
Encapsulate the geometry of the sensitive portion of an auxiliary detector.
void SortWires(std::vector< geo::WireGeo > &wgeo) const
Functions for sorting ICARUS CRT modules (auxiliary detectors).
static bool sortWireStandard(WireGeo const &w1, WireGeo const &w2)
Geometry information for a single TPC.
void SortAuxDets(std::vector< geo::AuxDetGeo > &adgeo) const
Drift towards negative X values.
Geometry information for a single cryostat.
GeoObjectSorterICARUS(fhicl::ParameterSet const &p)
void SortTPCs(std::vector< geo::TPCGeo > &tgeo) const
enum geo::driftdir DriftDirection_t
Drift direction: positive or negative.
void SortAuxDetsStandard(std::vector< geo::AuxDetGeo > &adgeo)
Sorts ICARUS CRT modules in standard configuration.
Geometry information for a single wire plane.The plane is represented in the geometry by a solid whic...
static bool sortPlaneStandard(const PlaneGeo &p1, const PlaneGeo &p2)
static bool sortCryoStandard(const CryostatGeo &c1, const CryostatGeo &c2)
Encapsulate the geometry of an auxiliary detector.
Encapsulate the geometry of a wire.
void LocalToWorld(const double *cryo, double *world) const
Transform point from local cryostat frame to world frame.
Drift towards positive X values.
Encapsulate the construction of a single detector plane.
void SortAuxDetSensitiveStandard(std::vector< geo::AuxDetSensitiveGeo > &adsgeo)
Sorts ICARUS CRT submodules in standard configuration.
void SortPlanes(std::vector< geo::PlaneGeo > &pgeo, geo::DriftDirection_t driftDir) const
void SortAuxDetSensitive(std::vector< geo::AuxDetSensitiveGeo > &adsgeo) const
static bool sortTPCStandard(const TPCGeo &t1, const TPCGeo &t2)
void GetCenter(double *xyz, double localz=0.0) const
Fills the world coordinate of a point on the wire.
void SortCryostats(std::vector< geo::CryostatGeo > &cgeo) const
void LocalToWorld(const double *tpc, double *world) const
Transform point from local TPC frame to world frame.
void LocalToWorld(const double *plane, double *world) const
Transform point from local plane frame to world frame.
physics associatedGroupsWithLeft p1
Encapsulate the construction of a single detector plane.
Interface to algorithm class for standard sorting of geo::XXXGeo objects.