#include <GenericProjectedRecHit2D.h>
Definition at line 8 of file GenericProjectedRecHit2D.h.
GenericProjectedRecHit2D::GenericProjectedRecHit2D | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const GeomDet * | det, | ||
const GeomDet * | originaldet, | ||
const TransientTrackingRecHit::ConstRecHitPointer | originalHit, | ||
const TrackingRecHitPropagator * | propagator | ||
) | [private] |
Definition at line 8 of file GenericProjectedRecHit2D.cc.
References originalDet(), pos, propagator(), theDimension, theLe, theLp, theOriginalDet, theOriginalTransientHit, theProjectionMatrix, and thePropagator.
Referenced by build(), and clone().
: TransientTrackingRecHit( det, originalHit->weight(), originalHit->getAnnealingFactor()) { theOriginalDet = originalDet; thePropagator = propagator; theOriginalTransientHit = originalHit; theLp = pos; theLe = err; theProjectionMatrix = originalHit->projectionMatrix(); theDimension = originalHit->dimension(); //theOriginalHit = originalTransientHit.hit()->clone(); }
static RecHitPointer GenericProjectedRecHit2D::build | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const GeomDet * | det, | ||
const GeomDet * | originaldet, | ||
const TransientTrackingRecHit::ConstRecHitPointer | originalHit, | ||
const TrackingRecHitPropagator * | propagator | ||
) | [inline, static] |
Definition at line 50 of file GenericProjectedRecHit2D.h.
References GenericProjectedRecHit2D().
{ return RecHitPointer( new GenericProjectedRecHit2D( pos, err, det, originaldet, originalHit, propagator)); }
virtual bool GenericProjectedRecHit2D::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 46 of file GenericProjectedRecHit2D.h.
{return true;}
TransientTrackingRecHit::RecHitPointer GenericProjectedRecHit2D::clone | ( | const TrajectoryStateOnSurface & | ts | ) | const [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 32 of file GenericProjectedRecHit2D.cc.
References TransientTrackingRecHit::det(), TrackingRecHitPropagator::project(), theOriginalTransientHit, and thePropagator.
{ return thePropagator->project<GenericProjectedRecHit2D>(theOriginalTransientHit, *det(), ts); }
virtual GenericProjectedRecHit2D* GenericProjectedRecHit2D::clone | ( | void | ) | const [inline, private, virtual] |
Implements TransientTrackingRecHit.
Definition at line 75 of file GenericProjectedRecHit2D.h.
References GenericProjectedRecHit2D().
{ return new GenericProjectedRecHit2D(*this); }
virtual int GenericProjectedRecHit2D::dimension | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 27 of file GenericProjectedRecHit2D.h.
References theDimension.
{return theDimension;}
virtual DetId GenericProjectedRecHit2D::geographicalId | ( | ) | const [inline, virtual] |
Reimplemented from TrackingRecHit.
Definition at line 25 of file GenericProjectedRecHit2D.h.
References TransientTrackingRecHit::det(), and GeomDet::geographicalId().
{return det() ? det()->geographicalId() : DetId();}
virtual const TrackingRecHit* GenericProjectedRecHit2D::hit | ( | void | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Definition at line 30 of file GenericProjectedRecHit2D.h.
References theOriginalTransientHit.
{return theOriginalTransientHit->hit();};
virtual bool GenericProjectedRecHit2D::isValid | ( | void | ) | const [inline, virtual] |
Reimplemented from TrackingRecHit.
Definition at line 32 of file GenericProjectedRecHit2D.h.
{return true;}
virtual LocalPoint GenericProjectedRecHit2D::localPosition | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 19 of file GenericProjectedRecHit2D.h.
References theLp.
{return theLp;}
virtual LocalError GenericProjectedRecHit2D::localPositionError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 21 of file GenericProjectedRecHit2D.h.
References theLe.
Referenced by parametersError().
{return theLe;}
const GeomDet* GenericProjectedRecHit2D::originalDet | ( | ) | const [inline] |
Definition at line 48 of file GenericProjectedRecHit2D.h.
References theOriginalDet.
Referenced by GenericProjectedRecHit2D().
{return theOriginalDet;}
AlgebraicVector GenericProjectedRecHit2D::parameters | ( | void | ) | const [virtual] |
Implements TrackingRecHit.
Definition at line 24 of file GenericProjectedRecHit2D.cc.
References query::result, theLp, PV3DBase< T, PVType, FrameType >::x(), and PV3DBase< T, PVType, FrameType >::y().
virtual AlgebraicSymMatrix GenericProjectedRecHit2D::parametersError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 11 of file GenericProjectedRecHit2D.h.
References TransientTrackingRecHit::det(), localPositionError(), and HelpertRecHit2DLocalPos::parError().
{ return HelpertRecHit2DLocalPos().parError( localPositionError(), *det()); }
virtual AlgebraicMatrix GenericProjectedRecHit2D::projectionMatrix | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 23 of file GenericProjectedRecHit2D.h.
References theProjectionMatrix.
{return theProjectionMatrix;}
const TrackingRecHitPropagator* GenericProjectedRecHit2D::propagator | ( | void | ) | const [inline] |
Definition at line 44 of file GenericProjectedRecHit2D.h.
References thePropagator.
Referenced by GenericProjectedRecHit2D().
{return thePropagator;}
virtual std::vector<const TrackingRecHit*> GenericProjectedRecHit2D::recHits | ( | ) | const [inline, virtual] |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 34 of file GenericProjectedRecHit2D.h.
{ //return theOriginalTransientHit->hit()->recHits(); return std::vector<const TrackingRecHit*>(); }
virtual std::vector<TrackingRecHit*> GenericProjectedRecHit2D::recHits | ( | ) | [inline, virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 39 of file GenericProjectedRecHit2D.h.
{ //should it do something different? return std::vector<TrackingRecHit*>(); }
int GenericProjectedRecHit2D::theDimension [private] |
Definition at line 68 of file GenericProjectedRecHit2D.h.
Referenced by dimension(), and GenericProjectedRecHit2D().
LocalError GenericProjectedRecHit2D::theLe [private] |
Definition at line 64 of file GenericProjectedRecHit2D.h.
Referenced by GenericProjectedRecHit2D(), and localPositionError().
LocalPoint GenericProjectedRecHit2D::theLp [private] |
Definition at line 63 of file GenericProjectedRecHit2D.h.
Referenced by GenericProjectedRecHit2D(), localPosition(), and parameters().
const GeomDet* GenericProjectedRecHit2D::theOriginalDet [private] |
Definition at line 61 of file GenericProjectedRecHit2D.h.
Referenced by GenericProjectedRecHit2D(), and originalDet().
TransientTrackingRecHit::ConstRecHitPointer GenericProjectedRecHit2D::theOriginalTransientHit [private] |
Definition at line 62 of file GenericProjectedRecHit2D.h.
Referenced by clone(), GenericProjectedRecHit2D(), and hit().
Definition at line 65 of file GenericProjectedRecHit2D.h.
Referenced by GenericProjectedRecHit2D(), and projectionMatrix().
const TrackingRecHitPropagator* GenericProjectedRecHit2D::thePropagator [private] |
Definition at line 66 of file GenericProjectedRecHit2D.h.
Referenced by clone(), GenericProjectedRecHit2D(), and propagator().