All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Member Functions | Private Attributes | List of all members
geo::GeoObjectSorterSBND Class Reference

#include <GeoObjectSorterSBND.h>

Inheritance diagram for geo::GeoObjectSorterSBND:
geo::GeoObjectSorter

Public Member Functions

 GeoObjectSorterSBND (fhicl::ParameterSet const &p)
 
virtual void SortCryostats (std::vector< geo::CryostatGeo > &cgeo) const override
 
virtual void SortOpDets (std::vector< geo::OpDetGeo > &opdet) const override
 
virtual void SortTPCs (std::vector< geo::TPCGeo > &tgeo) const override
 
virtual void SortPlanes (std::vector< geo::PlaneGeo > &pgeo, geo::DriftDirection_t driftDir) const override
 
virtual void SortWires (std::vector< geo::WireGeo > &wgeo) const override
 
virtual void SortAuxDets (std::vector< geo::AuxDetGeo > &adgeo) const override
 
virtual void SortAuxDetSensitive (std::vector< geo::AuxDetSensitiveGeo > &adsgeo) const override
 
- Public Member Functions inherited from geo::GeoObjectSorter
virtual ~GeoObjectSorter ()=default
 

Private Attributes

std::string fDetVersion
 String of the detector version. More...
 

Detailed Description

Definition at line 26 of file GeoObjectSorterSBND.h.

Constructor & Destructor Documentation

geo::GeoObjectSorterSBND::GeoObjectSorterSBND ( fhicl::ParameterSet const &  p)

Definition at line 230 of file GeoObjectSorterSBND.cxx.

231  : fDetVersion(p.get<std::string>("DetectorVersion", "SBND"))
232  {}
pdgs p
Definition: selectors.fcl:22
std::string fDetVersion
String of the detector version.

Member Function Documentation

void geo::GeoObjectSorterSBND::SortAuxDets ( std::vector< geo::AuxDetGeo > &  adgeo) const
overridevirtual

Implements geo::GeoObjectSorter.

Definition at line 287 of file GeoObjectSorterSBND.cxx.

288 {
289 // std::sort(adgeo.begin(), adgeo.end(), sortAuxDetSBND);
290 }
void geo::GeoObjectSorterSBND::SortAuxDetSensitive ( std::vector< geo::AuxDetSensitiveGeo > &  adsgeo) const
overridevirtual

Implements geo::GeoObjectSorter.

Definition at line 293 of file GeoObjectSorterSBND.cxx.

294  {}
void geo::GeoObjectSorterSBND::SortCryostats ( std::vector< geo::CryostatGeo > &  cgeo) const
overridevirtual

Implements geo::GeoObjectSorter.

Definition at line 237 of file GeoObjectSorterSBND.cxx.

238  { std::sort(cgeo.begin(), cgeo.end(), CryostatSorter); }
bool CryostatSorter(geo::CryostatGeo const &c1, geo::CryostatGeo const &c2)
void geo::GeoObjectSorterSBND::SortOpDets ( std::vector< geo::OpDetGeo > &  opdet) const
overridevirtual

Reimplemented from geo::GeoObjectSorter.

Definition at line 242 of file GeoObjectSorterSBND.cxx.

243  {
244  std::sort(opdet.begin(), opdet.end(), OpDetsSorter);
245  }
static bool OpDetsSorter(geo::OpDetGeo const &t1, geo::OpDetGeo const &t2)
void geo::GeoObjectSorterSBND::SortPlanes ( std::vector< geo::PlaneGeo > &  pgeo,
geo::DriftDirection_t  driftDir 
) const
overridevirtual

Implements geo::GeoObjectSorter.

Definition at line 253 of file GeoObjectSorterSBND.cxx.

255 {
256  // The drift direction has to be set before this method is called.
257  // Using the drift direction would render the trick of the sorter unnecessary.
258 
259  std::sort(pgeo.begin(), pgeo.end(), PlaneSorter);
260 
261  /*
262  switch (driftDir) {
263  case geo::kPosX:
264  std::sort(pgeo.rbegin(), pgeo.rend(), SortPlanes);
265  break;
266  case geo::kNegX:
267  std::sort(pgeo.begin(), pgeo.end(), SortPlanes);
268  break;
269  case geo::kUnknownDrift:
270  throw cet::exception("TPCGeo")
271  << "Drift direction is unknown, can't sort the planes\n";
272  } // driftDir
273  */
274 
275 } // geo::GeoObjectSorterSBND::SortPlanes()
bool PlaneSorter(geo::PlaneGeo const &p1, geo::PlaneGeo const &p2)
void geo::GeoObjectSorterSBND::SortTPCs ( std::vector< geo::TPCGeo > &  tgeo) const
overridevirtual

Implements geo::GeoObjectSorter.

Definition at line 248 of file GeoObjectSorterSBND.cxx.

249  { std::sort(tgeo.begin(), tgeo.end(), TPCSorter); }
bool TPCSorter(geo::TPCGeo const &t1, geo::TPCGeo const &t2)
void geo::GeoObjectSorterSBND::SortWires ( std::vector< geo::WireGeo > &  wgeo) const
overridevirtual

Implements geo::GeoObjectSorter.

Definition at line 279 of file GeoObjectSorterSBND.cxx.

280  { std::sort(wgeo.begin(), wgeo.end(), WireSorter); }
bool WireSorter(geo::WireGeo const &w1, geo::WireGeo const &w2)

Member Data Documentation

std::string geo::GeoObjectSorterSBND::fDetVersion
private

String of the detector version.

Definition at line 42 of file GeoObjectSorterSBND.h.


The documentation for this class was generated from the following files: