16 #include "cetlib_except/exception.h" 32 const std::shared_ptr<const Surface>& psurf) :
50 if(terr < 1./std::sqrt(12.))
51 terr = 1./std::sqrt(12.);
63 if(psurf.get() == 0) {
64 std::shared_ptr<const Surface> new_psurf(
new SurfWireLine(wireid, x));
70 throw cet::exception(
"KHitWireLine") <<
"Measurement surface doesn't match hit.\n";
81 merr(0,0) = xerr * xerr;
86 fID = (hit->
Channel() % 200000) * 10000 + (
int(std::abs(t)) % 10000);
115 merr(0,0) = xerr * xerr;
132 throw cet::exception(
"KHitWireLine") <<
"Track surface not the same as measurement surface.\n";
137 pvec.resize(1,
false);
141 perr.resize(1,
false);
150 double cosphi = std::cos(phi);
151 double slopevar = pitch*pitch * cosphi*cosphi / 12.;
152 perr(0,0) += slopevar;
156 hmatrix.resize(1, size,
false);
void setMeasSurface(const std::shared_ptr< const Surface > &psurf)
Measurement surface.
ublas::symmetric_matrix< double, ublas::lower, ublas::row_major, ublas::bounded_array< double, N *(N+1)/2 > > type
const TrackError & getError() const
Track error matrix.
virtual ~KHitWireLine()
Destructor.
const std::shared_ptr< const Surface > & getSurface() const
Surface.
KHitWireLine(const art::Ptr< recob::Hit > &hit, const std::shared_ptr< const Surface > &psurf)
Constructor from Hit.
geo::WireID WireID() const
Initial tdc tick for hit.
CryostatID_t Cryostat
Index of cryostat.
virtual bool isEqual(const Surface &surf) const
Test two surfaces for equality, within tolerance.
geo::Length_t WirePitch(geo::PlaneID const &planeid) const
Returns the distance between two consecutive wires.
KMatrix< N, 5 >::type type
void setMeasVector(const typename KVector< N >::type &mvec)
Set measurement vector.
virtual double GetXTicksCoefficient(int t, int c) const =0
ublas::vector< double, ublas::bounded_array< double, N > > type
Linear surface defined by wire id and x coordinate.
void setMeasError(const typename KSymMatrix< N >::type &merr)
Set measurement error.
PlaneID_t Plane
Index of the plane within its TPC.
Detector simulation of raw signals on wires.
virtual double ConvertTicksToX(double ticks, int p, int t, int c) const =0
virtual bool subpredict(const KETrack &tre, KVector< 1 >::type &pvec, KSymMatrix< 1 >::type &perr, KHMatrix< 1 >::type &hmatrix) const
float PeakTime() const
Time of the signal peak, in tick units.
const TrackVector & getVector() const
Track state vector.
Kalman filter wire-time measurement on a SurfWireLine surface.
void setMeasPlane(int plane)
Measurement plane.
float SigmaPeakTime() const
Uncertainty for the signal peak, in tick units.
TPCID_t TPC
Index of the TPC within its cryostat.
raw::ChannelID_t Channel() const
ID of the readout channel the hit was extracted from.
art framework interface to geometry description
const std::shared_ptr< const Surface > & getMeasSurface() const
Measurement surface.
cet::coded_exception< error, detail::translate > exception