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 GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T > GCC11_FINAL< T > GenericTransientTrackingRecHit KFBasedPixelFitter::MyBeamSpotHit TransientTrackingRecHitByValue< RecHit > TransientTrackingRecHitByValue< InvalidTrackingRecHit >

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 21 of file TransientTrackingRecHit.h.


Member Typedef Documentation

Definition at line 30 of file TransientTrackingRecHit.h.

Definition at line 28 of file TransientTrackingRecHit.h.

Reimplemented in GCC11_FINAL< T >.

Definition at line 29 of file TransientTrackingRecHit.h.

Definition at line 27 of file TransientTrackingRecHit.h.


Constructor & Destructor Documentation

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

Definition at line 32 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 39 of file TransientTrackingRecHit.h.

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

Definition at line 46 of file TransientTrackingRecHit.h.

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

Definition at line 53 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 GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GenericTransientTrackingRecHit, TransientTrackingRecHitByValue< RecHit >, and TransientTrackingRecHitByValue< InvalidTrackingRecHit >.

Definition at line 90 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 GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.

Definition at line 91 of file TransientTrackingRecHit.cc.

                                                                        {
  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 GCC11_FINAL< T >.

Definition at line 99 of file TransientTrackingRecHit.h.

{ return 1; }
const GeomDet* TransientTrackingRecHit::det ( ) const [inline]
const GeomDetUnit * TransientTrackingRecHit::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 in GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.

Definition at line 9 of file TransientTrackingRecHit.cc.

References det().

Referenced by Chi2Strip1DEstimator::estimate(), Chi2StripEstimator::estimate(), Chi2Switching1DEstimator::estimate(), Chi2SwitchingEstimator::estimate(), StripMeasurementTransformator::init(), Strip1DMeasurementTransformator::init(), KFSwitching1DUpdator::update(), and KFSwitchingUpdator::update().

{
  return dynamic_cast<const GeomDetUnit*>(det());
}
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, GCC11_FINAL< T >, GCC11_FINAL< T >, GCC11_FINAL< T >, and GCC11_FINAL< T >.

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 112 of file TransientTrackingRecHit.h.

Referenced by errorGlobalR(), and setPositionErrors().

float TransientTrackingRecHit::errorRPhi_ [mutable, private]

Definition at line 112 of file TransientTrackingRecHit.h.

Referenced by errorGlobalRPhi(), and setPositionErrors().

float TransientTrackingRecHit::errorZ_ [mutable, private]

Definition at line 112 of file TransientTrackingRecHit.h.

Referenced by errorGlobalZ(), and setPositionErrors().

Definition at line 110 of file TransientTrackingRecHit.h.

Referenced by det(), and surface().

Definition at line 105 of file TransientTrackingRecHit.h.

Referenced by globalPosition().

Definition at line 113 of file TransientTrackingRecHit.h.

Referenced by globalPosition().