5 #ifndef APAGeometryALG_H
6 #define APAGeometryALG_H
13 #include "art/Framework/Services/Registry/ServiceHandle.h"
17 namespace fhicl {
class ParameterSet; }
45 std::vector< geo::WireIDIntersection > & IntersectVector)
const;
51 std::vector< geo::WireID >& widsCrossed,
52 bool ExtendLine )
const;
55 std::vector<geo::WireID>
ChanSegsPerSide(uint32_t chan,
unsigned int side)
const;
56 std::vector<geo::WireID>
ChanSegsPerSide(std::vector<geo::WireID> wids,
unsigned int side)
const;
58 std::vector<double>
ThreeChanPos( uint32_t u, uint32_t v, uint32_t
z )
const;
63 unsigned int const plane,
64 unsigned int const tpc=0,
65 unsigned int const cstat=0)
const;
70 unsigned int & cryo)
const;
75 unsigned int cryo )
const;
77 uint32_t chan )
const;
85 art::ServiceHandle<geo::Geometry const>
fGeom;
106 #endif // ifndef APAGeometryALG_H
process_name opflash particleana ie ie ie z
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
bool LineSegChanIntersect(TVector3 xyzStart, TVector3 xyzEnd, uint32_t chan, std::vector< geo::WireID > &widsCrossed, bool ExtendLine) const
If a line given by start/end points intersects a channel.
void Init()
Initialize some chanel numbers to speed up other methods.
unsigned int ChannelsInAPAView(APAView_t apaview) const
uint32_t FirstChannelInView(geo::View_t geoview, unsigned int apa, unsigned int cryo) const
U view on both sides of the APA.
unsigned int fAPAsPerCryo
V view on both sides of the APA.
bool APAChannelsIntersect(uint32_t chan1, uint32_t chan2, std::vector< geo::WireIDIntersection > &IntersectVector) const
If the channels intersect, get all intersections.
Z view on the larger-x side of the APA.
enum apa::_apa_plane_proj APAView_t
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
unsigned int ChannelsInView(geo::View_t geoview) const
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.
art::ServiceHandle< geo::Geometry const > fGeom
geo::WireID NearestWireIDOnChan(const double WorldLoc[3], uint32_t chan, unsigned int const plane, unsigned int const tpc=0, unsigned int const cstat=0) const
std::vector< geo::WireID > ChanSegsPerSide(uint32_t chan, unsigned int side) const
void reconfigure(fhicl::ParameterSet const &p)
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