CMS 3D CMS Logo

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

#include <TransientTrackingRecHit.h>

Inheritance diagram for TransientTrackingRecHit:
TrackingRecHit BasicReferenceCounted GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > TValidTrackingRecHit GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GenericTransientTrackingRecHit KFBasedPixelFitter::GCC11_FINAL GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > MuonTransientTrackingRecHit

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 &) const
 
virtual TrackingRecHitcloneHit () const =0
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
virtual const GeomDetdet () const =0
 The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds. More...
 
virtual const GeomDetUnitdetUnit () const
 
virtual float errorGlobalR () const =0
 
virtual float errorGlobalRPhi () const =0
 
virtual float errorGlobalZ () const =0
 
virtual GlobalPoint globalPosition () const =0
 
virtual GlobalError globalPositionError () const =0
 
virtual const TrackingRecHithit () const =0
 
virtual const Surfacesurface () const
 
virtual ConstRecHitContainer transientHits () const
 Composite interface: returns the component hits, if any. More...
 
 TransientTrackingRecHit ()
 
 TransientTrackingRecHit (TrackingRecHit::id_type id, Type type=valid)
 
 TransientTrackingRecHit (TrackingRecHit const &rh)
 
virtual ~TransientTrackingRecHit ()
 
- Public Member Functions inherited from TrackingRecHit
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...
 
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 * > &)
 
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)
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 
- Public Member Functions inherited from BasicReferenceCounted
void addReference () const
 
 BasicReferenceCounted ()
 
 BasicReferenceCounted (const BasicReferenceCounted &iRHS)
 
const BasicReferenceCountedoperator= (const BasicReferenceCounted &)
 
unsigned int references () const
 
void removeReference () const
 
virtual ~BasicReferenceCounted ()
 

Private Member Functions

virtual TransientTrackingRecHitclone () const =0
 

Additional Inherited Members

- 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

Definition at line 21 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 ( )
inline

Definition at line 31 of file TransientTrackingRecHit.h.

31 {}
TransientTrackingRecHit::TransientTrackingRecHit ( TrackingRecHit::id_type  id,
Type  type = valid 
)
inlineexplicit

Definition at line 32 of file TransientTrackingRecHit.h.

References countTTRH().

32  :
33  TrackingRecHit(id, type)
34  {countTTRH(type);}
type
Definition: HCALResponse.h:21
TrackingRecHit(DetId id, Type type=valid)
void countTTRH(TrackingRecHit::Type)
TransientTrackingRecHit::TransientTrackingRecHit ( TrackingRecHit const &  rh)
inlineexplicit

Definition at line 36 of file TransientTrackingRecHit.h.

References countTTRH(), and TrackingRecHit::type().

36  :
37  TrackingRecHit(rh.geographicalId(), rh.type())
38  {countTTRH(type());}
Type type() const
TrackingRecHit(DetId id, Type type=valid)
void countTTRH(TrackingRecHit::Type)
virtual TransientTrackingRecHit::~TransientTrackingRecHit ( )
inlinevirtual

Definition at line 40 of file TransientTrackingRecHit.h.

40 {}

Member Function Documentation

virtual bool TransientTrackingRecHit::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 in TValidTrackingRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GenericTransientTrackingRecHit.

Definition at line 72 of file TransientTrackingRecHit.h.

72 {return false;}
TransientTrackingRecHit::RecHitPointer TransientTrackingRecHit::clone ( const TrajectoryStateOnSurface ) 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, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

Definition at line 40 of file TransientTrackingRecHit.cc.

40  {
41  return RecHitPointer(const_cast<TransientTrackingRecHit*>(this));
42 }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
virtual TransientTrackingRecHit* TransientTrackingRecHit::clone ( ) const
privatepure virtual

Implements TrackingRecHit.

Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, TValidTrackingRecHit, MuonTransientTrackingRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GenericTransientTrackingRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, KFBasedPixelFitter::GCC11_FINAL, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

virtual TrackingRecHit* TransientTrackingRecHit::cloneHit ( ) const
pure virtual
virtual float TransientTrackingRecHit::clusterProbability ( ) const
inlinevirtual

cluster probability, overloaded by pixel rechits.

Reimplemented in GCC11_FINAL< T, TOPO >, and TValidTrackingRecHit.

Definition at line 84 of file TransientTrackingRecHit.h.

84 { return 1.f; }
virtual const GeomDet* TransientTrackingRecHit::det ( ) const
pure virtual
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, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

Definition at line 25 of file TransientTrackingRecHit.cc.

References det().

Referenced by Strip1DMeasurementTransformator::init().

26 {
27  return dynamic_cast<const GeomDetUnit*>(det());
28 }
virtual const GeomDet * det() const =0
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
virtual float TransientTrackingRecHit::errorGlobalR ( ) const
pure virtual
virtual float TransientTrackingRecHit::errorGlobalRPhi ( ) const
pure virtual
virtual float TransientTrackingRecHit::errorGlobalZ ( ) const
pure virtual
virtual GlobalPoint TransientTrackingRecHit::globalPosition ( ) const
pure virtual
virtual GlobalError TransientTrackingRecHit::globalPositionError ( ) const
pure virtual
virtual const TrackingRecHit* TransientTrackingRecHit::hit ( ) const
pure virtual
virtual const Surface* TransientTrackingRecHit::surface ( ) const
inlinevirtual

Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, TValidTrackingRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

Definition at line 48 of file TransientTrackingRecHit.h.

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

Referenced by AlignmentMonitorMuonResiduals::event(), GCC11_FINAL< T, TOPO >::globalPosition(), and GCC11_FINAL< T, TOPO >::globalPositionError().

48 {return &(det()->surface());}
virtual const GeomDet * det() const =0
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:35
TransientTrackingRecHit::ConstRecHitContainer TransientTrackingRecHit::transientHits ( ) const
virtual

Composite interface: returns the component hits, if any.

Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, MuonTransientTrackingRecHit, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

Definition at line 33 of file TransientTrackingRecHit.cc.

34 {
35  // no components by default
36  return ConstRecHitContainer();
37 }
std::vector< ConstRecHitPointer > ConstRecHitContainer