1 #ifndef RECOTRACKER_TRANSIENTRACKINGRECHIT_TRecHit1DMomConstraint_H
2 #define RECOTRACKER_TRANSIENTRACKINGRECHIT_TRecHit1DMomConstraint_H
16 result[0] = charge_/fabs(mom_);
22 m[0][0] = err_/(mom_*mom_);
30 theProjectionMatrix[0][0] = 1;
38 double mom()
const {
return mom_;}
39 double err()
const {
return err_;}
46 virtual std::vector<const TrackingRecHit*>
recHits()
const {
return std::vector<const TrackingRecHit*>(); }
47 virtual std::vector<TrackingRecHit*>
recHits() {
return std::vector<TrackingRecHit*>(); }
60 return RecHitPointer(
new TRecHit1DMomConstraint( charge, mom, err, surface));
82 charge_(charge),mom_(mom),err_(err),surface_(surface) {}
85 charge_( other.
charge() ), mom_( other.mom() ),err_( other.err() ), surface_((other.surface())) {}
87 virtual TRecHit1DMomConstraint *
clone()
const {
88 return new TRecHit1DMomConstraint(*
this);
virtual LocalError localPositionError() const
virtual GlobalError globalPositionError() const
virtual ~TRecHit1DMomConstraint()
virtual bool sharesInput(const TrackingRecHit *, SharedInputType) const
virtual AlgebraicSymMatrix parametersError() const
virtual TrackingRecHit * cloneHit() const
GloballyPositioned< float >::GlobalPoint GlobalPoint
Global3DPoint GlobalPoint
virtual const Surface * surface() const override
TRecHit1DMomConstraint(const TRecHit1DMomConstraint &other)
virtual std::vector< TrackingRecHit * > recHits()
Non-const access to component RecHits (if any)
static const AlgebraicMatrix theProjectionMatrix
virtual AlgebraicMatrix projectionMatrix() const
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
virtual const GeomDetUnit * detUnit() const override
CLHEP::HepMatrix AlgebraicMatrix
virtual AlgebraicVector parameters() const
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual float errorGlobalZ() const
virtual TRecHit1DMomConstraint * clone() const
virtual LocalPoint localPosition() const
CLHEP::HepVector AlgebraicVector
static RecHitPointer build(const int charge, const double mom, const double err, const Surface *surface)
virtual RecHitPointer clone(const TrajectoryStateOnSurface &ts) const
virtual const TrackingRecHit * hit() const override
TRecHit1DMomConstraint(const int charge, const double mom, const double err, const Surface *surface)
Creates the TrackingRecHit internally, avoids redundent cloning.
virtual bool canImproveWithTrack() const override
CLHEP::HepSymMatrix AlgebraicSymMatrix
virtual float errorGlobalR() const
virtual GlobalPoint globalPosition() const
virtual float errorGlobalRPhi() const
virtual int dimension() const
virtual std::vector< const TrackingRecHit * > recHits() const
Access to component RecHits (if any)
Unlimited (trivial) bounds.