#include <TransientTrackingRecHit.h>
Public Types | |
typedef std::vector < ConstRecHitPointer > | ConstRecHitContainer |
typedef ConstReferenceCountingPointer < TransientTrackingRecHit > | ConstRecHitPointer |
typedef std::vector < ConstRecHitPointer > | RecHitContainer |
typedef ReferenceCountingPointer < TransientTrackingRecHit > | RecHitPointer |
Public Types inherited from TrackingRecHit | |
typedef unsigned int | id_type |
enum | SharedInputType { all, some } |
definition of equality via shared input More... | |
enum | Type { valid = 0, missing = 1, inactive = 2, bad = 3 } |
Public Member Functions | |
virtual bool | canImproveWithTrack () const |
virtual RecHitPointer | clone (const TrajectoryStateOnSurface &ts) const |
virtual float | clusterProbability () const |
cluster probability, overloaded by pixel rechits. More... | |
const GeomDet * | det () const |
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds. More... | |
virtual const GeomDetUnit * | detUnit () const |
float | errorGlobalR () const |
float | errorGlobalRPhi () const |
float | errorGlobalZ () const |
float | getAnnealingFactor () const |
virtual GlobalPoint | globalPosition () const |
virtual GlobalError | globalPositionError () const |
virtual const TrackingRecHit * | hit () const =0 |
void | setAnnealingFactor (float annealing) |
void | setWeight (float weight) |
interface needed to set the transient hit weight and to read it back More... | |
virtual const Surface * | surface () const |
virtual ConstRecHitContainer | transientHits () const |
Composite interface: returns the component hits, if any. More... | |
TransientTrackingRecHit (const GeomDet *geom=0, float weight=1., float annealing=1.) | |
TransientTrackingRecHit (const GeomDet *geom, DetId id, Type type=valid, float weight=1., float annealing=1.) | |
TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit::id_type id, Type type=valid, float weight=1., float annealing=1.) | |
TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit const &rh, float weight=1., float annealing=1.) | |
float | weight () const |
Public Member Functions inherited from TrackingRecHit | |
virtual int | dimension () const =0 |
DetId | geographicalId () const |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
Type | getType () const |
bool | isValid () const |
virtual LocalPoint | localPosition () const =0 |
virtual LocalError | localPositionError () const =0 |
virtual AlgebraicVector | parameters () const =0 |
virtual AlgebraicSymMatrix | parametersError () const =0 |
virtual AlgebraicMatrix | projectionMatrix () const =0 |
virtual std::vector< const TrackingRecHit * > | recHits () const =0 |
Access to component RecHits (if any) More... | |
virtual std::vector < TrackingRecHit * > | recHits ()=0 |
Non-const access to component RecHits (if any) More... | |
virtual void | recHitsV (std::vector< const TrackingRecHit * > &) const |
virtual void | recHitsV (std::vector< TrackingRecHit * > &) |
virtual bool | sharesInput (const TrackingRecHit *other, SharedInputType what) const |
TrackingRecHit (DetId id, Type type=valid) | |
TrackingRecHit (id_type id=0, Type type=valid) | |
Type | type () const |
virtual | ~TrackingRecHit () |
Public Member Functions inherited from ReferenceCountedPoolAllocated | |
void | addReference () const |
const ReferenceCountedPoolAllocated & | operator= (const ReferenceCountedPoolAllocated &) |
ReferenceCountedPoolAllocated () | |
ReferenceCountedPoolAllocated (const ReferenceCountedPoolAllocated &iRHS) | |
unsigned int | references () const |
void | removeReference () const |
virtual | ~ReferenceCountedPoolAllocated () |
Public Member Functions inherited from BlockWipedPoolAllocated | |
virtual | ~BlockWipedPoolAllocated () |
Private Member Functions | |
virtual TransientTrackingRecHit * | clone () const =0 |
void | setPositionErrors () const |
Private Attributes | |
float | annealing_ |
float | errorR_ |
float | errorRPhi_ |
float | errorZ_ |
const GeomDet * | geom_ |
GlobalError | globalError_ |
GlobalPoint | globalPosition_ |
bool | hasGlobalError_ |
bool | hasGlobalPosition_ |
float | weight_ |
Additional Inherited Members | |
Static Public Member Functions inherited from BlockWipedPoolAllocated | |
static BlockWipedAllocator & | allocator (size_t s) |
static void | operator delete (void *p, size_t s) |
static void * | operator new (size_t s, void *p) |
static void * | operator new (size_t s) |
static BlockWipedAllocator::Stat | stat (size_t s) |
static void | usePool () |
Static Public Attributes inherited from ReferenceCountedPoolAllocated | |
static int | s_alive =0 |
static int | s_referenced =0 |
Static Public Attributes inherited from BlockWipedPoolAllocated | |
static int | s_alive =0 |
Protected Member Functions inherited from TrackingRecHit | |
void | setId (id_type iid) |
void | setType (Type ttype) |
Definition at line 14 of file TransientTrackingRecHit.h.
typedef std::vector<ConstRecHitPointer> TransientTrackingRecHit::ConstRecHitContainer |
Definition at line 23 of file TransientTrackingRecHit.h.
typedef ConstReferenceCountingPointer< TransientTrackingRecHit> TransientTrackingRecHit::ConstRecHitPointer |
Definition at line 21 of file TransientTrackingRecHit.h.
typedef std::vector<ConstRecHitPointer> TransientTrackingRecHit::RecHitContainer |
Definition at line 22 of file TransientTrackingRecHit.h.
Definition at line 20 of file TransientTrackingRecHit.h.
|
inlineexplicit |
Definition at line 25 of file TransientTrackingRecHit.h.
|
inlineexplicit |
Definition at line 32 of file TransientTrackingRecHit.h.
|
inlineexplicit |
Definition at line 39 of file TransientTrackingRecHit.h.
|
inlineexplicit |
Definition at line 46 of file TransientTrackingRecHit.h.
|
inlinevirtual |
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 in TSiStripRecHit1D, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TSiStripRecHit2DLocalPos, TSiPixelRecHit, TSiTrackerMultiRecHit, GenericProjectedRecHit2D, TSiStripMatchedRecHit, GenericTransientTrackingRecHit, TransientTrackingRecHitByValue< RecHit >, and TransientTrackingRecHitByValue< InvalidTrackingRecHit >.
Definition at line 83 of file TransientTrackingRecHit.h.
|
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 in GenericProjectedRecHit2D, TSiStripRecHit1D, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TSiStripRecHit2DLocalPos, TSiPixelRecHit, TSiTrackerMultiRecHit, ProjectedRecHit2D, and TSiStripMatchedRecHit.
Definition at line 78 of file TransientTrackingRecHit.cc.
Referenced by KFTrajectoryFitter::fit().
|
privatepure virtual |
Implements TrackingRecHit.
Implemented in TSiStripMatchedRecHit, TSiStripRecHit1D, TSiStripRecHit2DLocalPos, TSiPixelRecHit, BeamSpotTransientTrackingRecHit, TRecHit1DMomConstraint, MuonTransientTrackingRecHit, TRecHit2DPosConstraint, GenericProjectedRecHit2D, GenericTransientTrackingRecHit, TSiTrackerMultiRecHit, ProjectedRecHit2D, TransientTrackingRecHitByValue< RecHit >, TransientTrackingRecHitByValue< InvalidTrackingRecHit >, and InvalidTransientRecHit.
|
inlinevirtual |
cluster probability, overloaded by pixel rechits.
Reimplemented in TSiPixelRecHit.
Definition at line 103 of file TransientTrackingRecHit.h.
|
inline |
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
Definition at line 58 of file TransientTrackingRecHit.h.
References geom_.
Referenced by BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), ProjectedRecHit2D::clone(), TSiStripMatchedRecHit::clone(), TSiPixelRecHit::clone(), TSiStripRecHit2DLocalPos::clone(), GenericProjectedRecHit2D::clone(), TSiStripRecHit1D::clone(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), TSiTrackerMultiRecHit::detUnit(), TSiStripRecHit2DLocalPos::detUnit(), TSiStripRecHit1D::detUnit(), TSiPixelRecHit::detUnit(), detUnit(), InsideBoundsMeasurementEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), GlobalTrajectoryBuilderBase::fixTEC(), GenericProjectedRecHit2D::geographicalId(), ProjectedRecHit2D::getKfComponents(), TSiStripMatchedRecHit::getKfComponents(), TSiStripRecHit2DLocalPos::getKfComponents(), TSiStripRecHit1D::getKfComponents(), TSiTrackerMultiRecHit::getKfComponents(), TSiPixelRecHit::getKfComponents(), MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), CurrentAlignmentKFUpdator::includeCurrentAlignmentEstimate(), GenericProjectedRecHit2D::parametersError(), ProjectedRecHit2D::parametersError(), TSiTrackerMultiRecHit::parametersError(), TSiStripMatchedRecHit::parametersError(), TSiPixelRecHit::parametersError(), TSiStripRecHit2DLocalPos::parametersError(), TSiStripRecHit1D::parametersError(), MuonTransientTrackingRecHit::parametersError(), TrackingRecHitProjector< ResultingHit >::project(), ProjectedRecHit2D::ProjectedRecHit2D(), RecHitPropagator::propagate(), MuonDTLocalMillepedeAlgorithm::run(), InvalidTransientRecHit::surface(), BeamSpotTransientTrackingRecHit::surface(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), ClusterShapeTrajectoryFilter::toBeContinued(), TSiStripMatchedRecHit::transientHits(), MuonTransientTrackingRecHit::transientHits(), and TSiStripRecHit2DLocalPos::transientHits().
|
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 in TRecHit1DMomConstraint, TRecHit2DPosConstraint, TSiPixelRecHit, TSiStripRecHit1D, TSiStripRecHit2DLocalPos, TSiTrackerMultiRecHit, TSiStripMatchedRecHit, and ProjectedRecHit2D.
Definition at line 6 of file TransientTrackingRecHit.cc.
References det().
Referenced by Chi2StripEstimator::estimate(), Chi2Strip1DEstimator::estimate(), Chi2SwitchingEstimator::estimate(), Chi2Switching1DEstimator::estimate(), Strip1DMeasurementTransformator::init(), StripMeasurementTransformator::init(), KFSwitchingUpdator::update(), and KFSwitching1DUpdator::update().
float TransientTrackingRecHit::errorGlobalR | ( | ) | const |
Definition at line 33 of file TransientTrackingRecHit.cc.
References errorR_, hasGlobalError_, and setPositionErrors().
float TransientTrackingRecHit::errorGlobalRPhi | ( | ) | const |
Definition at line 53 of file TransientTrackingRecHit.cc.
References errorRPhi_, hasGlobalError_, and setPositionErrors().
float TransientTrackingRecHit::errorGlobalZ | ( | ) | const |
Definition at line 43 of file TransientTrackingRecHit.cc.
References errorZ_, hasGlobalError_, and setPositionErrors().
|
inline |
Definition at line 100 of file TransientTrackingRecHit.h.
References annealing_.
Referenced by ProjectedRecHit2D::clone(), TSiStripMatchedRecHit::clone(), TSiPixelRecHit::clone(), TSiStripRecHit2DLocalPos::clone(), TSiStripRecHit1D::clone(), and MRHChi2MeasurementEstimator::estimate().
|
virtual |
Reimplemented in BeamSpotTransientTrackingRecHit.
Definition at line 12 of file TransientTrackingRecHit.cc.
References globalPosition_, hasGlobalPosition_, TrackingRecHit::localPosition(), surface(), and Surface::toGlobal().
Referenced by CSCPairResidualsConstraint::calculatePhi(), cms::HICSeedMeasurementEstimator::estimate(), EtaPhiEstimator::estimate(), EtaPhiMeasurementEstimator::estimate(), ConversionForwardEstimator::estimate(), ConversionBarrelEstimator::estimate(), KFTrajectoryFitter::fit(), OuterHitCompatibility::operator()(), TrackingRecHitProjector< ResultingHit >::project(), and setPositionErrors().
|
virtual |
Reimplemented in BeamSpotTransientTrackingRecHit.
Definition at line 22 of file TransientTrackingRecHit.cc.
References globalError_, hasGlobalError_, and setPositionErrors().
|
pure virtual |
Implemented in BeamSpotTransientTrackingRecHit, TRecHit2DPosConstraint, TSiStripRecHit1D, TRecHit1DMomConstraint, TSiPixelRecHit, TSiStripRecHit2DLocalPos, TSiTrackerMultiRecHit, GenericProjectedRecHit2D, GenericTransientTrackingRecHit, TransientTrackingRecHitByValue< RecHit >, and TransientTrackingRecHitByValue< InvalidTrackingRecHit >.
Referenced by TrajectoryCleanerBySharedHits::clean(), EqualsBySharesInput::operator()(), HitComparator::operator()(), HIPAlignmentAlgorithm::run(), ClusterShapeTrajectoryFilter::toBeContinued(), and KFUpdator::update().
|
inline |
interface needed to set and read back an annealing value that has been applied to the current hit error matrix when using it as a component for a composite rec hit (useful for the DAF)
Definition at line 98 of file TransientTrackingRecHit.h.
References annealing_.
|
private |
Definition at line 63 of file TransientTrackingRecHit.cc.
References GlobalErrorBase< T, ErrorWeightType >::czz(), errorR_, errorRPhi_, errorZ_, globalError_, globalPosition(), hasGlobalError_, TrackingRecHit::localPositionError(), PV3DBase< T, PVType, FrameType >::perp(), GlobalErrorBase< T, ErrorWeightType >::phierr(), GlobalErrorBase< T, ErrorWeightType >::rerr(), mathSSE::sqrt(), surface(), and ErrorFrameTransformer::transform().
Referenced by errorGlobalR(), errorGlobalRPhi(), errorGlobalZ(), and globalPositionError().
|
inline |
interface needed to set the transient hit weight and to read it back
Definition at line 91 of file TransientTrackingRecHit.h.
References weight(), and weight_.
|
inlinevirtual |
Reimplemented in BeamSpotTransientTrackingRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, and InvalidTransientRecHit.
Definition at line 59 of file TransientTrackingRecHit.h.
References geom_, and GeomDet::surface().
Referenced by AlignmentMonitorMuonResiduals::event(), KFTrajectoryFitter::fit(), MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), globalPosition(), MuonTransientTrackingRecHit::parametersError(), and setPositionErrors().
|
virtual |
Composite interface: returns the component hits, if any.
Reimplemented in TSiStripRecHit2DLocalPos, MuonTransientTrackingRecHit, TSiTrackerMultiRecHit, ProjectedRecHit2D, and TSiStripMatchedRecHit.
Definition at line 71 of file TransientTrackingRecHit.cc.
Referenced by MRHChi2MeasurementEstimator::estimate().
|
inlinevirtual |
Reimplemented from TrackingRecHit.
Definition at line 93 of file TransientTrackingRecHit.h.
References weight_.
Referenced by ProjectedRecHit2D::build(), TSiStripMatchedRecHit::build(), TSiStripRecHit2DLocalPos::build(), TSiPixelRecHit::build(), TSiStripRecHit1D::build(), TSiStripMatchedRecHit::buildInPlace(), TSiStripMatchedRecHit::clone(), ProjectedRecHit2D::clone(), TSiPixelRecHit::clone(), TSiStripRecHit2DLocalPos::clone(), TSiStripRecHit1D::clone(), and setWeight().
|
private |
Definition at line 111 of file TransientTrackingRecHit.h.
Referenced by getAnnealingFactor(), and setAnnealingFactor().
|
mutableprivate |
Definition at line 116 of file TransientTrackingRecHit.h.
Referenced by errorGlobalR(), and setPositionErrors().
|
mutableprivate |
Definition at line 116 of file TransientTrackingRecHit.h.
Referenced by errorGlobalRPhi(), and setPositionErrors().
|
mutableprivate |
Definition at line 116 of file TransientTrackingRecHit.h.
Referenced by errorGlobalZ(), and setPositionErrors().
|
private |
Definition at line 108 of file TransientTrackingRecHit.h.
|
mutableprivate |
Definition at line 115 of file TransientTrackingRecHit.h.
Referenced by globalPositionError(), and setPositionErrors().
|
mutableprivate |
Definition at line 114 of file TransientTrackingRecHit.h.
Referenced by globalPosition().
|
mutableprivate |
Definition at line 118 of file TransientTrackingRecHit.h.
Referenced by errorGlobalR(), errorGlobalRPhi(), errorGlobalZ(), globalPositionError(), and setPositionErrors().
|
mutableprivate |
Definition at line 117 of file TransientTrackingRecHit.h.
Referenced by globalPosition().
|
private |
Definition at line 110 of file TransientTrackingRecHit.h.
Referenced by setWeight(), and weight().