CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Private Member Functions
TValidTrackingRecHit Class Referenceabstract

#include <TValidTrackingRecHit.h>

Inheritance diagram for TValidTrackingRecHit:
TrackingRecHit BeamSpotTransientTrackingRecHit GenericTransientTrackingRecHit KFBasedPixelFitter::MyBeamSpotHit TSiTrackerMultiRecHit MuonTransientTrackingRecHit

Public Member Functions

virtual bool canImproveWithTrack () const
 
TrackingRecHitcloneHit () const
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
float errorGlobalR () const
 
float errorGlobalRPhi () const
 
float errorGlobalZ () const
 
virtual GlobalPoint globalPosition () const
 
GlobalError globalPositionError () const
 
TrackingRecHitGlobalState globalState () const
 
virtual const Surfacesurface () const
 
 TValidTrackingRecHit (const GeomDet &geom)
 
template<typename... Args>
 TValidTrackingRecHit (Args &&...args)
 
- Public Member Functions inherited from TrackingRecHit
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
virtual int dimension () const =0
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
virtual TrackingRecHit const * hit () 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
 
id_type rawId () const
 
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 * > &)
 
void setDet (const GeomDet &idet)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
virtual ConstRecHitContainer transientHits () const
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Private Member Functions

virtual TValidTrackingRecHitclone () const =0
 

Additional Inherited Members

- Public Types inherited from TrackingRecHit
typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
using RecHitPointer = std::shared_ptr< TrackingRecHit const >
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type { valid = 0, missing = 1, inactive = 2, bad = 3 }
 
- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Detailed Description

only for valid hits

Definition at line 15 of file TValidTrackingRecHit.h.

Constructor & Destructor Documentation

TValidTrackingRecHit::TValidTrackingRecHit ( const GeomDet geom)
inline

Definition at line 18 of file TValidTrackingRecHit.h.

18  :
19  TrackingRecHit(geom) {}
TrackingRecHit(DetId id, Type type=valid)
template<typename... Args>
TValidTrackingRecHit::TValidTrackingRecHit ( Args &&...  args)
inline

Definition at line 23 of file TValidTrackingRecHit.h.

23  :
24  TrackingRecHit(std::forward<Args>(args)...) {}
TrackingRecHit(DetId id, Type type=valid)

Member Function Documentation

virtual bool TValidTrackingRecHit::canImproveWithTrack ( ) const
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 from TrackingRecHit.

Reimplemented in TSiTrackerMultiRecHit, and GenericTransientTrackingRecHit.

Definition at line 62 of file TValidTrackingRecHit.h.

62 {return false;}
virtual TValidTrackingRecHit* TValidTrackingRecHit::clone ( ) const
privatepure virtual
TrackingRecHit* TValidTrackingRecHit::cloneHit ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 27 of file TValidTrackingRecHit.h.

References TrackingRecHit::clone(), and TrackingRecHit::hit().

27 { return hit()->clone();}
virtual TrackingRecHit * clone() const =0
virtual TrackingRecHit const * hit() const
virtual float TValidTrackingRecHit::clusterProbability ( ) const
inlinevirtual

cluster probability, overloaded by pixel rechits.

Definition at line 66 of file TValidTrackingRecHit.h.

66 { return 1.f; }
float TValidTrackingRecHit::errorGlobalR ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 38 of file TValidTrackingRecHit.h.

References globalPosition(), globalPositionError(), and mathSSE::sqrt().

38 { return std::sqrt(globalPositionError().rerr(globalPosition()));}
T sqrt(T t)
Definition: SSEVec.h:48
GlobalError globalPositionError() const
virtual GlobalPoint globalPosition() const
float TValidTrackingRecHit::errorGlobalRPhi ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 40 of file TValidTrackingRecHit.h.

References globalPosition(), globalPositionError(), PV3DBase< T, PVType, FrameType >::perp(), and mathSSE::sqrt().

40 { return globalPosition().perp()*sqrt(globalPositionError().phierr(globalPosition())); }
T perp() const
Definition: PV3DBase.h:72
T sqrt(T t)
Definition: SSEVec.h:48
GlobalError globalPositionError() const
virtual GlobalPoint globalPosition() const
float TValidTrackingRecHit::errorGlobalZ ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 39 of file TValidTrackingRecHit.h.

References globalPositionError(), and mathSSE::sqrt().

39 { return std::sqrt(globalPositionError().czz()); }
T sqrt(T t)
Definition: SSEVec.h:48
GlobalError globalPositionError() const
virtual GlobalPoint TValidTrackingRecHit::globalPosition ( ) const
inlinevirtual
GlobalError TValidTrackingRecHit::globalPositionError ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 37 of file TValidTrackingRecHit.h.

References TrackingRecHit::localPositionError(), surface(), and ErrorFrameTransformer::transform().

Referenced by errorGlobalR(), errorGlobalRPhi(), and errorGlobalZ().

static GlobalError transform(const LocalError &le, const Surface &surf)
virtual LocalError localPositionError() const =0
virtual const Surface * surface() const
TrackingRecHitGlobalState TValidTrackingRecHit::globalState ( ) const
inline

Definition at line 43 of file TValidTrackingRecHit.h.

References GlobalErrorBase< T, ErrorWeightType >::czz(), globalPosition(), TrackingRecHit::localPositionError(), GlobalErrorBase< T, ErrorWeightType >::phierr(), alignCSCRings::r, GlobalErrorBase< T, ErrorWeightType >::rerr(), mathSSE::sqrt(), surface(), and ErrorFrameTransformer::transform().

43  {
46  auto gp = globalPosition();
47  float r = gp.perp();
48  float errorRPhi = r*std::sqrt(float(globalError.phierr(gp)));
49  float errorR = std::sqrt(float(globalError.rerr(gp)));
50  float errorZ = std::sqrt(float(globalError.czz()));
52  gp.basicVector(), r, gp.barePhi(),
53  errorR,errorZ,errorRPhi
54  };
55  }
static GlobalError transform(const LocalError &le, const Surface &surf)
T phierr(const GlobalPoint &aPoint) const
T sqrt(T t)
Definition: SSEVec.h:48
virtual LocalError localPositionError() const =0
T rerr(const GlobalPoint &aPoint) const
virtual const Surface * surface() const
virtual GlobalPoint globalPosition() const
virtual const Surface* TValidTrackingRecHit::surface ( ) const
inlinevirtual

Reimplemented from TrackingRecHit.

Definition at line 30 of file TValidTrackingRecHit.h.

References TrackingRecHit::det(), and GeomDet::surface().

Referenced by MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), globalPosition(), globalPositionError(), and globalState().

30 {return &(det()->surface());}
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:35
const GeomDet * det() const