5 #ifndef APAGeometryALG_H 6 #define APAGeometryALG_H 33 std::vector<geo::WireIDIntersection>& IntersectVector)
const;
39 std::vector<geo::WireID>& widsCrossed,
40 bool ExtendLine)
const;
43 std::vector<geo::WireID>
ChanSegsPerSide(uint32_t chan,
unsigned int side)
const;
45 unsigned int side)
const;
47 std::vector<double>
ThreeChanPos(uint32_t u, uint32_t v, uint32_t
z)
const;
56 void ChannelToAPA(uint32_t chan,
unsigned int&
apa,
unsigned int& cryo)
const;
88 #endif // ifndef APAGeometryALG_H
Z view on the larger-x side of the APA.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
Z view on the smaller-x side of the APA.
The data type to uniquely identify a Plane.
unsigned int ChannelsInAPAView(APAView_t apaview) const
uint32_t FirstChannelInView(geo::View_t geoview, unsigned int apa, unsigned int cryo) const
unsigned int fAPAsPerCryo
bool APAChannelsIntersect(uint32_t chan1, uint32_t chan2, std::vector< geo::WireIDIntersection > &IntersectVector) const
If the channels intersect, get all intersections.
APAView_t APAView(uint32_t chan) const
Get which of the 4 APA views the channel is in.
unsigned int ChannelToAPA(uint32_t chan) const
Get number of the APA containing the given channel.
unsigned int ChannelsPerAPA() const
bool LineSegChanIntersect(geo::Point_t const &xyzStart, geo::Point_t const &xyzEnd, uint32_t chan, std::vector< geo::WireID > &widsCrossed, bool ExtendLine) const
If a line given by start/end points intersects a channel.
Interface for a class providing readout channel mapping to geometry.
unsigned int ChannelsInView(geo::View_t geoview) const
U view on both sides of the APA.
unsigned int fChannelsPerAPA
All APAs have this same number of channels.
Definition of data types for geometry description.
V view on both sides of the APA.
ROOT::Math::PositionVector3D< ROOT::Math::Cartesian3D< double >, ROOT::Math::GlobalCoordinateSystemTag > Point_t
Type for representation of position in physical 3D space.
art::ServiceHandle< geo::Geometry const > fGeom
geo::WireID NearestWireIDOnChan(geo::Point_t const &WorldLoc, uint32_t chan, geo::PlaneID const &planeID) const
std::vector< geo::WireID > ChanSegsPerSide(uint32_t chan, unsigned int side) const
geo::WireReadoutGeom const * fWireReadoutGeom
std::vector< double > ThreeChanPos(uint32_t u, uint32_t v, uint32_t z) const
Find the center of the 3 intersections, choose best if multiple.
art framework interface to geometry description