#include <TRecHit5DParamConstraint.h>
Public Member Functions | |
virtual bool | canImproveWithTrack () const |
virtual int | charge () const |
virtual TransientTrackingRecHit::RecHitPointer | clone (const TrajectoryStateOnSurface &tsos) const |
virtual const GeomDet * | det () const |
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds. | |
virtual const GeomDetUnit * | detUnit () const |
virtual int | dimension () const |
virtual const TrackingRecHit * | hit () const |
virtual LocalPoint | localPosition () const |
virtual LocalError | localPositionError () const |
virtual AlgebraicVector | parameters () const |
virtual AlgebraicSymMatrix | parametersError () const |
virtual AlgebraicMatrix | projectionMatrix () const |
virtual std::vector < TrackingRecHit * > | recHits () |
Non-const access to component RecHits (if any) | |
virtual std::vector< const TrackingRecHit * > | recHits () const |
Access to component RecHits (if any) | |
virtual const Surface * | surface () const |
virtual | ~TRecHit5DParamConstraint () |
Static Public Member Functions | |
static TransientTrackingRecHit::RecHitPointer | build (const TrajectoryStateOnSurface &tsos) |
Private Member Functions | |
virtual TRecHit5DParamConstraint * | clone () const |
const TrajectoryStateOnSurface & | trajectoryState () const |
TRecHit5DParamConstraint (const TrajectoryStateOnSurface &tsos) | |
TRecHit5DParamConstraint (const TRecHit5DParamConstraint &other) | |
Private Attributes | |
const TrajectoryStateOnSurface | tsos_ |
Definition at line 9 of file TRecHit5DParamConstraint.h.
TRecHit5DParamConstraint::TRecHit5DParamConstraint | ( | const TrajectoryStateOnSurface & | tsos | ) | [inline, private] |
Definition at line 14 of file TRecHit5DParamConstraint.h.
Referenced by build(), and clone().
: tsos_( tsos ) {}
TRecHit5DParamConstraint::TRecHit5DParamConstraint | ( | const TRecHit5DParamConstraint & | other | ) | [inline, private] |
Definition at line 16 of file TRecHit5DParamConstraint.h.
: tsos_( other.trajectoryState() ) {}
virtual TRecHit5DParamConstraint::~TRecHit5DParamConstraint | ( | ) | [inline, virtual] |
Definition at line 20 of file TRecHit5DParamConstraint.h.
{}
static TransientTrackingRecHit::RecHitPointer TRecHit5DParamConstraint::build | ( | const TrajectoryStateOnSurface & | tsos | ) | [inline, static] |
Definition at line 58 of file TRecHit5DParamConstraint.h.
References TRecHit5DParamConstraint().
{ return RecHitPointer( new TRecHit5DParamConstraint( tsos ) ); }
virtual bool TRecHit5DParamConstraint::canImproveWithTrack | ( | ) | const [inline, virtual] |
Returns true if the clone( const TrajectoryStateOnSurface&) method returns an improved hit, false if it returns an identical copy. In order to avoid redundent copies one should call canImproveWithTrack() before calling clone( const TrajectoryStateOnSurface&).
Reimplemented from TransientTrackingRecHit.
Definition at line 39 of file TRecHit5DParamConstraint.h.
{ return false; }
virtual int TRecHit5DParamConstraint::charge | ( | void | ) | const [inline, virtual] |
Definition at line 37 of file TRecHit5DParamConstraint.h.
References TrajectoryStateOnSurface::charge(), and tsos_.
virtual TRecHit5DParamConstraint* TRecHit5DParamConstraint::clone | ( | void | ) | const [inline, private, virtual] |
Implements TransientTrackingRecHit.
Definition at line 66 of file TRecHit5DParamConstraint.h.
References trajectoryState(), and TRecHit5DParamConstraint().
{ return new TRecHit5DParamConstraint( this->trajectoryState() ); }
virtual TransientTrackingRecHit::RecHitPointer TRecHit5DParamConstraint::clone | ( | const TrajectoryStateOnSurface & | ts | ) | const [inline, virtual] |
Returns a copy of the hit with parameters and errors computed with respect to the TrajectoryStateOnSurface given as argument. For concrete hits not capable to improve their parameters and errors this method returns an exact copy, and is equivalent to clone() without arguments.
Reimplemented from TransientTrackingRecHit.
Definition at line 53 of file TRecHit5DParamConstraint.h.
References TRecHit5DParamConstraint().
{ //return new TRecHit5DParamConstraint( this->trajectoryState() ); return new TRecHit5DParamConstraint( tsos ); }
virtual const GeomDet* TRecHit5DParamConstraint::det | ( | ) | const [inline, virtual] |
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
Reimplemented from TransientTrackingRecHit.
Definition at line 49 of file TRecHit5DParamConstraint.h.
{ return 0; }
virtual const GeomDetUnit* TRecHit5DParamConstraint::detUnit | ( | ) | const [inline, virtual] |
CAUTION: the GeomDetUnit* is zero for composite hits (matched hits in the tracker, segments in the muon). Always check this pointer before using it!
Reimplemented from TransientTrackingRecHit.
Definition at line 47 of file TRecHit5DParamConstraint.h.
{ return 0; }
virtual int TRecHit5DParamConstraint::dimension | ( | ) | const [inline, virtual] |
virtual const TrackingRecHit* TRecHit5DParamConstraint::hit | ( | void | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Definition at line 41 of file TRecHit5DParamConstraint.h.
{ return 0; }
virtual LocalPoint TRecHit5DParamConstraint::localPosition | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 33 of file TRecHit5DParamConstraint.h.
References TrajectoryStateOnSurface::localPosition(), and tsos_.
{ return tsos_.localPosition(); }
virtual LocalError TRecHit5DParamConstraint::localPositionError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 35 of file TRecHit5DParamConstraint.h.
References TrajectoryStateOnSurface::localError(), LocalTrajectoryError::positionError(), and tsos_.
{ return tsos_.localError().positionError(); }
virtual AlgebraicVector TRecHit5DParamConstraint::parameters | ( | void | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 29 of file TRecHit5DParamConstraint.h.
References asHepVector(), TrajectoryStateOnSurface::localParameters(), tsos_, and LocalTrajectoryParameters::vector().
{ return asHepVector( tsos_.localParameters().vector() ); }
virtual AlgebraicSymMatrix TRecHit5DParamConstraint::parametersError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 31 of file TRecHit5DParamConstraint.h.
References asHepMatrix(), TrajectoryStateOnSurface::localError(), LocalTrajectoryError::matrix(), and tsos_.
{ return asHepMatrix( tsos_.localError().matrix() ); }
virtual AlgebraicMatrix TRecHit5DParamConstraint::projectionMatrix | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 24 of file TRecHit5DParamConstraint.h.
{ AlgebraicMatrix projectionMatrix( 5, 5, 1 ); return projectionMatrix; }
virtual std::vector<const TrackingRecHit*> TRecHit5DParamConstraint::recHits | ( | ) | const [inline, virtual] |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 43 of file TRecHit5DParamConstraint.h.
{ return std::vector<const TrackingRecHit*>(); }
virtual std::vector<TrackingRecHit*> TRecHit5DParamConstraint::recHits | ( | ) | [inline, virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 45 of file TRecHit5DParamConstraint.h.
{ return std::vector<TrackingRecHit*>(); }
virtual const Surface* TRecHit5DParamConstraint::surface | ( | ) | const [inline, virtual] |
Reimplemented from TransientTrackingRecHit.
Definition at line 51 of file TRecHit5DParamConstraint.h.
References TrajectoryStateOnSurface::surface(), and tsos_.
const TrajectoryStateOnSurface& TRecHit5DParamConstraint::trajectoryState | ( | ) | const [inline, private] |
Definition at line 70 of file TRecHit5DParamConstraint.h.
References tsos_.
Referenced by clone().
{ return tsos_; }
const TrajectoryStateOnSurface TRecHit5DParamConstraint::tsos_ [private] |
Definition at line 64 of file TRecHit5DParamConstraint.h.
Referenced by charge(), localPosition(), localPositionError(), parameters(), parametersError(), surface(), and trajectoryState().