5 #ifndef APAGeometryALG_H 6 #define APAGeometryALG_H 53 std::vector< geo::WireIDIntersection > & IntersectVector);
59 std::vector< geo::WireID >& widsCrossed,
63 std::vector<geo::WireID>
ChanSegsPerSide(uint32_t chan,
unsigned int side);
64 std::vector<geo::WireID>
ChanSegsPerSide(std::vector<geo::WireID> wids,
unsigned int side);
66 std::vector<double>
ThreeChanPos( uint32_t u, uint32_t v, uint32_t
z );
71 unsigned int const plane,
72 unsigned int const tpc=0,
73 unsigned int const cstat=0);
79 APAView_t
APAView(uint32_t chan);
114 #endif // ifndef APAGeometryALG_H std::vector< geo::WireID > ChanSegsPerSide(uint32_t chan, unsigned int side)
APAView_t APAView(uint32_t chan)
Get which of the 4 APA views the channel is in.
unsigned int ChannelsPerAPA()
geo::WireID NearestWireIDOnChan(const double WorldLoc[3], uint32_t chan, unsigned int const plane, unsigned int const tpc=0, unsigned int const cstat=0)
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
Z view on the smaller-x side of the APA.
virtual ~APAGeometryAlg()
U view on both sides of the APA.
art framework interface to geometry description
Z view on the larger-x side of the APA.
unsigned int ChannelToAPA(uint32_t chan)
Get number of the APA containing the given channel.
art::ServiceHandle< geo::Geometry > fGeom
Definition of data types for geometry description.
enum dune::apa::_apa_plane_proj APAView_t
bool LineSegChanIntersect(TVector3 xyzStart, TVector3 xyzEnd, uint32_t chan, std::vector< geo::WireID > &widsCrossed, bool ExtendLine)
If a line given by start/end points intersects a channel.
Declaration of signal hit object.
void Init()
Initialize some chanel numbers to speed up other methods.
unsigned int ChannelsInView(geo::View_t geoview)
std::vector< double > ThreeChanPos(uint32_t u, uint32_t v, uint32_t z)
Find the center of the 3 intersections, choose best if multiple.
bool APAChannelsIntersect(uint32_t chan1, uint32_t chan2, std::vector< geo::WireIDIntersection > &IntersectVector)
If the channels intersect, get all intersections.
void reconfigure(fhicl::ParameterSet const &p)
Declaration of basic channel signal object.
unsigned int ChannelsInAPAView(APAView_t apaview)
uint32_t FirstChannelInView(geo::View_t geoview, unsigned int apa, unsigned int cryo)
unsigned int fChannelsPerAPA
All APAs have this same number of channels.
V view on both sides of the APA.
unsigned int fAPAsPerCryo