#include <TSiTrackerMultiRecHit.h>
Public Member Functions | |
virtual bool | canImproveWithTrack () const |
virtual RecHitPointer | clone (const TrajectoryStateOnSurface &ts) const |
virtual const GeomDetUnit * | detUnit () const |
virtual int | dimension () const |
virtual DetId | geographicalId () const |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
virtual const TrackingRecHit * | hit () const |
virtual bool | isValid () const |
virtual LocalPoint | localPosition () const |
virtual LocalError | localPositionError () const |
virtual AlgebraicVector | parameters () const |
virtual AlgebraicSymMatrix | parametersError () const |
virtual AlgebraicMatrix | projectionMatrix () const |
virtual std::vector< const TrackingRecHit * > | recHits () const |
Access to component RecHits (if any) | |
virtual std::vector < TrackingRecHit * > | recHits () |
Non-const access to component RecHits (if any) | |
const SiTrackerMultiRecHit * | specificHit () const |
virtual ConstRecHitContainer | transientHits () const |
Composite interface: returns the component hits, if any. | |
virtual | ~TSiTrackerMultiRecHit () |
Static Public Member Functions | |
static RecHitPointer | build (const GeomDet *geom, const SiTrackerMultiRecHit *rh, const ConstRecHitContainer &components, float annealing=1.) |
Private Member Functions | |
virtual TSiTrackerMultiRecHit * | clone () const |
TSiTrackerMultiRecHit (const GeomDet *geom, const SiTrackerMultiRecHit *rh, const ConstRecHitContainer &components, float annealing) | |
Private Attributes | |
ConstRecHitContainer | theComponents |
SiTrackerMultiRecHit | theHitData |
Definition at line 13 of file TSiTrackerMultiRecHit.h.
virtual TSiTrackerMultiRecHit::~TSiTrackerMultiRecHit | ( | ) | [inline, virtual] |
Definition at line 16 of file TSiTrackerMultiRecHit.h.
{}
TSiTrackerMultiRecHit::TSiTrackerMultiRecHit | ( | const GeomDet * | geom, |
const SiTrackerMultiRecHit * | rh, | ||
const ConstRecHitContainer & | components, | ||
float | annealing | ||
) | [inline, private] |
Definition at line 63 of file TSiTrackerMultiRecHit.h.
Referenced by build(), and clone().
: TransientTrackingRecHit(geom,1, annealing), theHitData(*rh), theComponents(components){}
static RecHitPointer TSiTrackerMultiRecHit::build | ( | const GeomDet * | geom, |
const SiTrackerMultiRecHit * | rh, | ||
const ConstRecHitContainer & | components, | ||
float | annealing = 1. |
||
) | [inline, static] |
Definition at line 54 of file TSiTrackerMultiRecHit.h.
References TSiTrackerMultiRecHit().
{ return RecHitPointer(new TSiTrackerMultiRecHit( geom, rh, components, annealing)); }
virtual bool TSiTrackerMultiRecHit::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 48 of file TSiTrackerMultiRecHit.h.
{return true;}
TransientTrackingRecHit::RecHitPointer TSiTrackerMultiRecHit::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 15 of file TSiTrackerMultiRecHit.cc.
References clone().
{ /* std::vector<TransientTrackingRecHit::RecHitPointer> updatedcomponents = theComponents; SiTrackerMultiRecHit better = theUpdator->update(ts,&theHitData, updatedcomponents); RecHitPointer result = TSiTrackerMultiRecHit::build( det(), &better, theUpdator, updatedcomponents ); return result; */ return this->clone(); }
virtual TSiTrackerMultiRecHit* TSiTrackerMultiRecHit::clone | ( | void | ) | const [inline, private, virtual] |
Implements TransientTrackingRecHit.
Definition at line 67 of file TSiTrackerMultiRecHit.h.
References TSiTrackerMultiRecHit().
Referenced by clone().
{ return new TSiTrackerMultiRecHit(*this); }
const GeomDetUnit * TSiTrackerMultiRecHit::detUnit | ( | ) | const [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 11 of file TSiTrackerMultiRecHit.cc.
References TransientTrackingRecHit::det().
{ return dynamic_cast<const GeomDetUnit*>(det()); }
virtual int TSiTrackerMultiRecHit::dimension | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 29 of file TSiTrackerMultiRecHit.h.
References RecHit2DLocalPos::dimension(), and theHitData.
{return theHitData.dimension();}
virtual DetId TSiTrackerMultiRecHit::geographicalId | ( | ) | const [inline, virtual] |
Reimplemented from TrackingRecHit.
Definition at line 27 of file TSiTrackerMultiRecHit.h.
References TrackingRecHit::geographicalId(), and theHitData.
{return theHitData.geographicalId();}
virtual void TSiTrackerMultiRecHit::getKfComponents | ( | KfComponentsHolder & | holder | ) | const [inline, virtual] |
Reimplemented from TrackingRecHit.
Definition at line 24 of file TSiTrackerMultiRecHit.h.
References TransientTrackingRecHit::det(), HelpertRecHit2DLocalPos::getKfComponents(), and theHitData.
{ HelpertRecHit2DLocalPos().getKfComponents(holder, theHitData, *det()); }
virtual const TrackingRecHit* TSiTrackerMultiRecHit::hit | ( | void | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Definition at line 34 of file TSiTrackerMultiRecHit.h.
References theHitData.
{return &theHitData;};
virtual bool TSiTrackerMultiRecHit::isValid | ( | void | ) | const [inline, virtual] |
Reimplemented from TrackingRecHit.
Definition at line 37 of file TSiTrackerMultiRecHit.h.
References TrackingRecHit::isValid(), and theHitData.
{return theHitData.isValid();}
virtual LocalPoint TSiTrackerMultiRecHit::localPosition | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 31 of file TSiTrackerMultiRecHit.h.
References BaseSiTrackerRecHit2DLocalPos::localPosition(), and theHitData.
{return theHitData.localPosition();}
virtual LocalError TSiTrackerMultiRecHit::localPositionError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 32 of file TSiTrackerMultiRecHit.h.
References BaseSiTrackerRecHit2DLocalPos::localPositionError(), and theHitData.
{return theHitData.localPositionError();}
virtual AlgebraicVector TSiTrackerMultiRecHit::parameters | ( | void | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 18 of file TSiTrackerMultiRecHit.h.
References RecHit2DLocalPos::parameters(), and theHitData.
{return theHitData.parameters();}
virtual AlgebraicSymMatrix TSiTrackerMultiRecHit::parametersError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 19 of file TSiTrackerMultiRecHit.h.
References TransientTrackingRecHit::det(), BaseSiTrackerRecHit2DLocalPos::localPositionError(), HelpertRecHit2DLocalPos::parError(), and theHitData.
{ return HelpertRecHit2DLocalPos().parError( theHitData.localPositionError(), *det()); //return theHitData.parametersError(); }
virtual AlgebraicMatrix TSiTrackerMultiRecHit::projectionMatrix | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 28 of file TSiTrackerMultiRecHit.h.
References RecHit2DLocalPos::projectionMatrix(), and theHitData.
{return theHitData.projectionMatrix();}
virtual std::vector<TrackingRecHit*> TSiTrackerMultiRecHit::recHits | ( | ) | [inline, virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 42 of file TSiTrackerMultiRecHit.h.
References SiTrackerMultiRecHit::recHits(), and theHitData.
{ return theHitData.recHits(); }
virtual std::vector<const TrackingRecHit*> TSiTrackerMultiRecHit::recHits | ( | ) | const [inline, virtual] |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 39 of file TSiTrackerMultiRecHit.h.
References SiTrackerMultiRecHit::recHits(), and theHitData.
Referenced by TrackerDpgAnalysis::insertMeasurement().
{ return theHitData.recHits(); }
const SiTrackerMultiRecHit* TSiTrackerMultiRecHit::specificHit | ( | ) | const [inline] |
virtual ConstRecHitContainer TSiTrackerMultiRecHit::transientHits | ( | ) | const [inline, virtual] |
Composite interface: returns the component hits, if any.
Reimplemented from TransientTrackingRecHit.
Definition at line 52 of file TSiTrackerMultiRecHit.h.
References theComponents.
{return theComponents;};
Definition at line 61 of file TSiTrackerMultiRecHit.h.
Referenced by transientHits().
Definition at line 59 of file TSiTrackerMultiRecHit.h.
Referenced by dimension(), geographicalId(), getKfComponents(), hit(), isValid(), localPosition(), localPositionError(), parameters(), parametersError(), projectionMatrix(), recHits(), and specificHit().