LArSoft  v09_90_00
Liquid Argon Software toolkit - https://larsoft.org/
helpers.h
Go to the documentation of this file.
1 
18 #ifndef LARCOREALG_GEOMETRY_DETAILS_NSIBLINGS_H
19 #define LARCOREALG_GEOMETRY_DETAILS_NSIBLINGS_H
20 
21 // LArSoft libraries
25 
26 namespace geo::details {
27  unsigned int NSiblings(GeometryCore const* geom, CryostatID const& id);
28  unsigned int NSiblings(GeometryCore const* geom, TPCID const& id);
29  unsigned int NSiblings(GeometryCore const* geom, PlaneID const& id);
30  unsigned int NSiblings(GeometryCore const* geom, WireID const& id);
31  unsigned int NSiblings(GeometryCore const* geom, readout::TPCsetID const& id);
32  unsigned int NSiblings(GeometryCore const* geom, readout::ROPID const& id);
33 
34  CryostatGeo const* getElementPtr(GeometryCore const* geom, CryostatID const& id);
35  TPCGeo const* getElementPtr(GeometryCore const* geom, TPCID const& id);
36  PlaneGeo const* getElementPtr(GeometryCore const* geom, PlaneID const& id);
37  WireGeo const* getElementPtr(GeometryCore const* geom, WireID const& id);
38 
39  bool validElement(GeometryCore const* geom, CryostatID const& id);
40  bool validElement(GeometryCore const* geom, TPCID const& id);
41  bool validElement(GeometryCore const* geom, PlaneID const& id);
42  bool validElement(GeometryCore const* geom, WireID const& id);
43 }
44 
45 #endif // LARCOREALG_GEOMETRY_DETAILS_HELPERS_H
IDparameter< geo::CryostatID > CryostatID
Member type of validated geo::CryostatID parameter.
bool validElement(GeometryCore const *geom, CryostatID const &id)
Definition: helpers.cxx:60
CryostatGeo const * getElementPtr(GeometryCore const *geom, CryostatID const &id)
Definition: helpers.cxx:36
Classes identifying readout-related concepts.
Class identifying a set of TPC sharing readout channels.
Definition: readout_types.h:72
unsigned int NSiblings(GeometryCore const *geom, CryostatID const &id)
Definition: helpers.cxx:6
IDparameter< geo::PlaneID > PlaneID
Member type of validated geo::PlaneID parameter.
IDparameter< geo::WireID > WireID
Member type of validated geo::WireID parameter.
Definition of data types for geometry description.
Class identifying a set of planes sharing readout channels.
IDparameter< geo::TPCID > TPCID
Member type of validated geo::TPCID parameter.