CMS 3D CMS Logo

Public Types | Public Member Functions | Private Member Functions | Private Attributes

TransientTrackingRecHit Class Reference

#include <TransientTrackingRecHit.h>

Inheritance diagram for TransientTrackingRecHit:
TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated BeamSpotTransientTrackingRecHit GenericTransientTrackingRecHit KFBasedPixelFitter::MyBeamSpotHit TransientTrackingRecHitByValue< RecHit > TransientTrackingRecHitByValue< InvalidTrackingRecHit > TRecHit1DMomConstraint TRecHit2DPosConstraint TRecHit5DParamConstraint TSiPixelRecHit TSiStripRecHit1D TSiStripRecHit2DLocalPos TSiTrackerMultiRecHit

List of all members.

Public Types

typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
typedef
ConstReferenceCountingPointer
< TransientTrackingRecHit
ConstRecHitPointer
typedef std::vector
< ConstRecHitPointer
RecHitContainer
typedef
ReferenceCountingPointer
< TransientTrackingRecHit
RecHitPointer

Public Member Functions

virtual bool canImproveWithTrack () const
virtual RecHitPointer clone (const TrajectoryStateOnSurface &ts) const
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits.
const GeomDetdet () const
 The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
virtual const GeomDetUnitdetUnit () const
float errorGlobalR () const
float errorGlobalRPhi () const
float errorGlobalZ () const
virtual GlobalPoint globalPosition () const
virtual GlobalError globalPositionError () const
virtual const TrackingRecHithit () const =0
virtual const Surfacesurface () const
virtual ConstRecHitContainer transientHits () const
 Composite interface: returns the component hits, if any.
 TransientTrackingRecHit (const GeomDet *geom=0)
 TransientTrackingRecHit (const GeomDet *geom, DetId id, Type type=valid)
 TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit::id_type id, Type type=valid)
 TransientTrackingRecHit (const GeomDet *geom, TrackingRecHit const &rh)

Private Member Functions

virtual TransientTrackingRecHitclone () const =0
void setPositionErrors () const

Private Attributes

float errorR_
float errorRPhi_
float errorZ_
const GeomDetgeom_
GlobalPoint globalPosition_
bool hasGlobalError_
bool hasGlobalPosition_

Detailed Description

Definition at line 19 of file TransientTrackingRecHit.h.


Member Typedef Documentation

Definition at line 28 of file TransientTrackingRecHit.h.

Definition at line 26 of file TransientTrackingRecHit.h.

Definition at line 27 of file TransientTrackingRecHit.h.

Definition at line 25 of file TransientTrackingRecHit.h.


Constructor & Destructor Documentation

TransientTrackingRecHit::TransientTrackingRecHit ( const GeomDet geom = 0) [inline, explicit]

Definition at line 30 of file TransientTrackingRecHit.h.

                                                           : 
    TrackingRecHit(geom ? geom->geographicalId().rawId() : 0), 
    globalPosition_(0,0,0),
    geom_(geom),
    errorR_(0),errorZ_(0),errorRPhi_(0),
    hasGlobalPosition_(false), hasGlobalError_(false){}
TransientTrackingRecHit::TransientTrackingRecHit ( const GeomDet geom,
DetId  id,
Type  type = valid 
) [inline, explicit]

Definition at line 37 of file TransientTrackingRecHit.h.

TransientTrackingRecHit::TransientTrackingRecHit ( const GeomDet geom,
TrackingRecHit::id_type  id,
Type  type = valid 
) [inline, explicit]

Definition at line 44 of file TransientTrackingRecHit.h.

TransientTrackingRecHit::TransientTrackingRecHit ( const GeomDet geom,
TrackingRecHit const &  rh 
) [inline, explicit]

Definition at line 51 of file TransientTrackingRecHit.h.

                                                                                    : 
    TrackingRecHit(rh.geographicalId(), rh.type()),
    globalPosition_(0,0,0),
    geom_(geom),
    errorR_(0),errorZ_(0),errorRPhi_(0),
    hasGlobalPosition_(false),hasGlobalError_(false){}

Member Function Documentation

virtual bool TransientTrackingRecHit::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 in TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, TSiPixelRecHit, TSiStripMatchedRecHit, TSiStripRecHit1D, TSiStripRecHit2DLocalPos, TSiTrackerMultiRecHit, GenericTransientTrackingRecHit, TransientTrackingRecHitByValue< RecHit >, and TransientTrackingRecHitByValue< InvalidTrackingRecHit >.

Definition at line 88 of file TransientTrackingRecHit.h.

{return false;}
TransientTrackingRecHit::RecHitPointer TransientTrackingRecHit::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 in ProjectedRecHit2D, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, TSiPixelRecHit, TSiStripMatchedRecHit, TSiStripRecHit1D, TSiStripRecHit2DLocalPos, and TSiTrackerMultiRecHit.

Definition at line 91 of file TransientTrackingRecHit.cc.

Referenced by KFTrajectoryFitter::fit().

                                                                        {
  return RecHitPointer(const_cast<TransientTrackingRecHit*>(this));
}
virtual TransientTrackingRecHit* TransientTrackingRecHit::clone ( ) const [private, pure virtual]
virtual float TransientTrackingRecHit::clusterProbability ( ) const [inline, virtual]

cluster probability, overloaded by pixel rechits.

Reimplemented in TSiPixelRecHit.

Definition at line 97 of file TransientTrackingRecHit.h.

{ return 1; }
const GeomDet* TransientTrackingRecHit::det ( ) const [inline]

The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.

Reimplemented in TRecHit1DMomConstraint, TRecHit2DPosConstraint, and TRecHit5DParamConstraint.

Definition at line 63 of file TransientTrackingRecHit.h.

References geom_.

Referenced by BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), TSiStripMatchedRecHit::clone(), TSiPixelRecHit::clone(), TSiStripRecHit2DLocalPos::clone(), TSiStripRecHit1D::clone(), ProjectedRecHit2D::clone(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), TSiPixelRecHit::detUnit(), TSiTrackerMultiRecHit::detUnit(), detUnit(), TSiStripRecHit1D::detUnit(), TSiStripRecHit2DLocalPos::detUnit(), ForwardMeasurementEstimator::estimate(), InsideBoundsMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), GlobalTrajectoryBuilderBase::fixTEC(), TSiStripMatchedRecHit::getKfComponents(), TSiPixelRecHit::getKfComponents(), ProjectedRecHit2D::getKfComponents(), TSiStripRecHit2DLocalPos::getKfComponents(), TSiTrackerMultiRecHit::getKfComponents(), TSiStripRecHit1D::getKfComponents(), MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), CurrentAlignmentKFUpdator::includeCurrentAlignmentEstimate(), TSiStripRecHit1D::parametersError(), TSiStripMatchedRecHit::parametersError(), TSiStripRecHit2DLocalPos::parametersError(), MuonTransientTrackingRecHit::parametersError(), TSiTrackerMultiRecHit::parametersError(), TSiPixelRecHit::parametersError(), ProjectedRecHit2D::parametersError(), TrackingRecHitProjector< ResultingHit >::project(), ProjectedRecHit2D::ProjectedRecHit2D(), RecHitPropagator::propagate(), MuonDTLocalMillepedeAlgorithm::run(), InvalidTransientRecHit::surface(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), ClusterShapeTrajectoryFilter::toBeContinued(), MuonTransientTrackingRecHit::transientHits(), TSiStripMatchedRecHit::transientHits(), and TSiStripRecHit2DLocalPos::transientHits().

{return geom_;}
const GeomDetUnit * TransientTrackingRecHit::detUnit ( ) const [virtual]
float TransientTrackingRecHit::errorGlobalR ( ) const

Definition at line 43 of file TransientTrackingRecHit.cc.

References errorR_, hasGlobalError_, setPositionErrors(), and unlikely.

                                            {
  if unlikely(!hasGlobalError_){
    setPositionErrors();
    return errorR_;
  }else{
    return errorR_;
  }
}
float TransientTrackingRecHit::errorGlobalRPhi ( ) const

Definition at line 63 of file TransientTrackingRecHit.cc.

References errorRPhi_, hasGlobalError_, setPositionErrors(), and unlikely.

                                               {
  if unlikely(!hasGlobalError_){
    setPositionErrors();
    return errorRPhi_;
  }else{
    return errorRPhi_;
  }
}
float TransientTrackingRecHit::errorGlobalZ ( ) const

Definition at line 53 of file TransientTrackingRecHit.cc.

References errorZ_, hasGlobalError_, setPositionErrors(), and unlikely.

                                            {
  if unlikely(!hasGlobalError_){
    setPositionErrors();
    return errorZ_;
  }else{
    return errorZ_;
  }
}
GlobalPoint TransientTrackingRecHit::globalPosition ( ) const [virtual]
GlobalError TransientTrackingRecHit::globalPositionError ( ) const [virtual]

Definition at line 31 of file TransientTrackingRecHit.cc.

References hasGlobalError_, setPositionErrors(), and unlikely.

                                                               {
  if unlikely(! hasGlobalError_){
    setPositionErrors();
    return globalError_;
  }else{
    return globalError_;
  }

}   
virtual const TrackingRecHit* TransientTrackingRecHit::hit ( ) const [pure virtual]
void TransientTrackingRecHit::setPositionErrors ( ) const [private]
virtual const Surface* TransientTrackingRecHit::surface ( ) const [inline, virtual]
TransientTrackingRecHit::ConstRecHitContainer TransientTrackingRecHit::transientHits ( ) const [virtual]

Composite interface: returns the component hits, if any.

Reimplemented in MuonTransientTrackingRecHit, ProjectedRecHit2D, TSiStripMatchedRecHit, TSiStripRecHit2DLocalPos, and TSiTrackerMultiRecHit.

Definition at line 84 of file TransientTrackingRecHit.cc.

Referenced by MRHChi2MeasurementEstimator::estimate().

{
  // no components by default
  return ConstRecHitContainer();
}

Member Data Documentation

float TransientTrackingRecHit::errorR_ [mutable, private]

Definition at line 110 of file TransientTrackingRecHit.h.

Referenced by errorGlobalR(), and setPositionErrors().

float TransientTrackingRecHit::errorRPhi_ [mutable, private]

Definition at line 110 of file TransientTrackingRecHit.h.

Referenced by errorGlobalRPhi(), and setPositionErrors().

float TransientTrackingRecHit::errorZ_ [mutable, private]

Definition at line 110 of file TransientTrackingRecHit.h.

Referenced by errorGlobalZ(), and setPositionErrors().

Definition at line 108 of file TransientTrackingRecHit.h.

Referenced by det(), and surface().

Definition at line 103 of file TransientTrackingRecHit.h.

Referenced by globalPosition().

Definition at line 111 of file TransientTrackingRecHit.h.

Referenced by globalPosition().