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