22 TVector3
start, TVector3
dir,
int id)
30 TVector3
start, TVector3
dir,
int id)
59 double v0,
double z0,
double dv,
double dz,
int id)
95 fStart = TVector3(v0, 0, z0);
98 fStart = TVector3(0, v0, z0);
124 fDir = TVector3(dv, 0, dz);
127 fDir = TVector3(0, dv, dz);
151 const double z1 = xyz[2];
194 for(
unsigned int cellIdx = 0; cellIdx <
cellMax; ++cellIdx){
200 const TVector3 dxyz = (chit->
View() ==
geo::kX) ? TVector3(0, 1, 0)
219 if(
fDir.Z() == 0)
return 0;
T max(const caf::Proxy< T > &a, T b)
double fPrecalcTotalGeV
-1 = uninitialized
virtual double W(const rb::CellHit *chit) const
Estimate the unmeasured coordinate of chit.
TVector3 fDir
Direction at starting point.
enum geo::_plane_proj View_t
Enumerate the possible plane projections.
unsigned short Plane() const
Vertical planes which measure X.
virtual double DistanceFromStart(double z) const
A collection of associated CellHits.
const PlaneGeo * Plane(unsigned int i) const
virtual TVector3 Start() const
virtual void SetStart(TVector3 start)
Horizontal planes which measure Y.
unsigned short Cell() const
virtual double TotalLength() const
Distance along prong to reach last cell hit.
unsigned int NCell() const
Number of cells in either view.
virtual void SetDir(TVector3 dir)
geo::View_t fView
view this cluster is in
novadaq::cnv::DetId DetId() const
Prefer ds::DetectorService::DetId() instead.
Collect Geo headers and supply basic geometry functions.
bool operator<(const Prong &other) const
Perform a "2 point" Hough transform on a collection of hits.
TVector3 fStart
Start location (xyz, cm)
art::Ptr< rb::CellHit > Cell(geo::View_t view, unsigned int viewIdx) const
Get the ith cell from view view.
A rawdata::RawDigit with channel information decoded.
A Cluster with defined start position and direction.
double ClosestApproach(const double point[], const double intercept[], const double slopes[], double closest[])
Find the distance of closest approach between point and line.
assert(nhit_max >=nhit_nbins)
Encapsulate the geometry of one entire detector (near, far, ndos)