Public Member Functions | Private Attributes | List of all members
geo::GeoObjectSorter35 Class Reference

#include <GeoObjectSorter35.h>

Inheritance diagram for geo::GeoObjectSorter35:
geo::GeoObjectSorter

Public Member Functions

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

Private Attributes

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

Detailed Description

Definition at line 19 of file GeoObjectSorter35.h.

Constructor & Destructor Documentation

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

Definition at line 228 of file GeoObjectSorter35.cxx.

229  : fDetVersion(p.get< std::string >("DetectorVersion", "dune35t4apa"))
230  {
231  }
std::string string
Definition: nybbler.cc:12
p
Definition: test.py:223
std::string fDetVersion
string of the detector version

Member Function Documentation

void geo::GeoObjectSorter35::SortAuxDets ( std::vector< geo::AuxDetGeo > &  adgeo) const
virtual

Implements geo::GeoObjectSorter.

Definition at line 234 of file GeoObjectSorter35.cxx.

235  {
236  std::sort(adgeo.begin(), adgeo.end(), sortAuxDet35);
237  }
static bool sortAuxDet35(const AuxDetGeo &ad1, const AuxDetGeo &ad2)
void geo::GeoObjectSorter35::SortAuxDetSensitive ( std::vector< geo::AuxDetSensitiveGeo > &  adgeo) const
virtual

Implements geo::GeoObjectSorter.

Definition at line 240 of file GeoObjectSorter35.cxx.

241  {
242  std::sort(adgeo.begin(), adgeo.end(), sortAuxDetSensitive35);
243  }
static bool sortAuxDetSensitive35(const AuxDetSensitiveGeo &ad1, const AuxDetSensitiveGeo &ad2)
void geo::GeoObjectSorter35::SortCryostats ( std::vector< geo::CryostatGeo > &  cgeo) const
virtual

Implements geo::GeoObjectSorter.

Definition at line 246 of file GeoObjectSorter35.cxx.

247  {
248  std::sort(cgeo.begin(), cgeo.end(), sortCryo35);
249  }
static bool sortCryo35(const CryostatGeo &c1, const CryostatGeo &c2)
void geo::GeoObjectSorter35::SortPlanes ( std::vector< geo::PlaneGeo > &  pgeo,
geo::DriftDirection_t  driftDir 
) const
virtual

Implements geo::GeoObjectSorter.

Definition at line 258 of file GeoObjectSorter35.cxx.

260  {
261  // sort the planes to increase in drift direction
262  // The drift direction has to be set before this method is called. It is set when
263  // the CryostatGeo objects are sorted by the CryostatGeo::SortSubVolumes method
264  if (driftDir == geo::kPosX) std::sort(pgeo.rbegin(), pgeo.rend(), sortPlane35);
265  else if(driftDir == geo::kNegX) std::sort(pgeo.begin(), pgeo.end(), sortPlane35);
266  else if(driftDir == geo::kUnknownDrift)
267  throw cet::exception("TPCGeo") << "Drift direction is unknown, can't sort the planes\n";
268  }
Drift direction is unknown.
Definition: geo_types.h:158
Drift towards negative X values.
Definition: geo_types.h:162
Drift towards positive X values.
Definition: geo_types.h:161
static bool sortPlane35(const PlaneGeo &p1, const PlaneGeo &p2)
cet::coded_exception< error, detail::translate > exception
Definition: exception.h:33
void geo::GeoObjectSorter35::SortTPCs ( std::vector< geo::TPCGeo > &  tgeo) const
virtual

Implements geo::GeoObjectSorter.

Definition at line 252 of file GeoObjectSorter35.cxx.

253  {
254  std::sort(tgeo.begin(), tgeo.end(), sortTPC35);
255  }
static bool sortTPC35(const TPCGeo &t1, const TPCGeo &t2)
void geo::GeoObjectSorter35::SortWires ( std::vector< geo::WireGeo > &  wgeo) const
virtual

Implements geo::GeoObjectSorter.

Definition at line 271 of file GeoObjectSorter35.cxx.

272  {
273  sortWire35 sw35(fDetVersion);
274 
275  std::sort(wgeo.begin(), wgeo.end(), sw35);
276  }
std::string fDetVersion
string of the detector version

Member Data Documentation

std::string geo::GeoObjectSorter35::fDetVersion
private

string of the detector version

Definition at line 33 of file GeoObjectSorter35.h.


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