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 | Static Public Member Functions | Protected Member Functions | Protected Attributes | Private Member Functions
GenericTransientTrackingRecHit Class Reference

#include <GenericTransientTrackingRecHit.h>

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

Public Types

typedef TrackingRecHit::Type Type
 
- Public Types inherited from TValidTrackingRecHit
typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
 
typedef
ConstReferenceCountingPointer
< TransientTrackingRecHit
ConstRecHitPointer
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
typedef
ReferenceCountingPointer
< TransientTrackingRecHit
RecHitPointer
 
- Public Types inherited from TransientTrackingRecHit
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
 
TrackingRecHitcloneHit () const
 
virtual int dimension () const
 
virtual const TrackingRecHithit () const
 
virtual LocalPoint localPosition () const
 
virtual LocalError localPositionError () const
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any) More...
 
virtual ~GenericTransientTrackingRecHit ()
 
- Public Member Functions inherited from TValidTrackingRecHit
TrackingRecHitcloneHit () const
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
virtual const GeomDetdet () const GCC11_FINAL
 The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds. More...
 
float errorGlobalR () const GCC11_FINAL
 
float errorGlobalRPhi () const GCC11_FINAL
 
float errorGlobalZ () const GCC11_FINAL
 
virtual GlobalPoint globalPosition () const GCC11_FINAL
 
GlobalError globalPositionError () const GCC11_FINAL
 
TrackingRecHitGlobalState globalState () const
 
virtual const Surfacesurface () const GCC11_FINAL
 
 TValidTrackingRecHit (const GeomDet *geom)
 
template<typename... Args>
 TValidTrackingRecHit (const GeomDet *geom, Args &&...args)
 
- Public Member Functions inherited from TransientTrackingRecHit
virtual RecHitPointer clone (const TrajectoryStateOnSurface &) const
 
virtual const GeomDetUnitdetUnit () 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
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
 
id_type rawId () const
 
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 ()
 

Static Public Member Functions

static RecHitPointer build (const GeomDet *geom, const TrackingRecHit *rh)
 

Protected Member Functions

 GenericTransientTrackingRecHit (const GeomDet *geom, const TrackingRecHit &rh)
 
 GenericTransientTrackingRecHit (const GeomDet *geom, TrackingRecHit *rh)
 for derived classes convenience, does not clone! More...
 
 GenericTransientTrackingRecHit (const GenericTransientTrackingRecHit &other)
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Protected Attributes

TrackingRecHittrackingRecHit_
 

Private Member Functions

virtual
GenericTransientTrackingRecHit
clone () const
 
GenericTransientTrackingRecHitoperator= (const GenericTransientTrackingRecHit &t)
 

Additional Inherited Members

- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 

Detailed Description

Definition at line 7 of file GenericTransientTrackingRecHit.h.

Member Typedef Documentation

Definition at line 9 of file GenericTransientTrackingRecHit.h.

Constructor & Destructor Documentation

virtual GenericTransientTrackingRecHit::~GenericTransientTrackingRecHit ( )
inlinevirtual

Definition at line 11 of file GenericTransientTrackingRecHit.h.

References trackingRecHit_.

GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GeomDet geom,
const TrackingRecHit rh 
)
inlineprotected

Definition at line 44 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::clone(), and trackingRecHit_.

Referenced by build(), and clone().

44  :
45  TValidTrackingRecHit(geom,rh) {
46  trackingRecHit_ = rh.clone();
47  }
TValidTrackingRecHit(const GeomDet *geom)
virtual TrackingRecHit * clone() const =0
GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GeomDet geom,
TrackingRecHit rh 
)
inlineprotected

for derived classes convenience, does not clone!

Definition at line 50 of file GenericTransientTrackingRecHit.h.

50  :
51  TValidTrackingRecHit(geom,*rh), trackingRecHit_(rh) {}
TValidTrackingRecHit(const GeomDet *geom)
GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GenericTransientTrackingRecHit other)
inlineprotected

Definition at line 53 of file GenericTransientTrackingRecHit.h.

References cloneHit(), and trackingRecHit_.

53  :
54  TValidTrackingRecHit( other.det(),other) {
55  trackingRecHit_ = other.cloneHit();
56  }
virtual const GeomDet * det() const GCC11_FINAL
The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
TValidTrackingRecHit(const GeomDet *geom)

Member Function Documentation

static RecHitPointer GenericTransientTrackingRecHit::build ( const GeomDet geom,
const TrackingRecHit rh 
)
inlinestatic

Definition at line 37 of file GenericTransientTrackingRecHit.h.

References GenericTransientTrackingRecHit().

Referenced by FastPixelHitMatcher::compatibleHits().

37  {
38  return RecHitPointer( new GenericTransientTrackingRecHit( geom, *rh));
39  }
ReferenceCountingPointer< TransientTrackingRecHit > RecHitPointer
GenericTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit &rh)
virtual bool GenericTransientTrackingRecHit::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 TValidTrackingRecHit.

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 >, and GCC11_FINAL< T, TOPO >.

Definition at line 25 of file GenericTransientTrackingRecHit.h.

25 {return false;}
virtual GenericTransientTrackingRecHit* GenericTransientTrackingRecHit::clone ( void  ) const
inlineprivatevirtual

Implements TValidTrackingRecHit.

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 >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, MuonTransientTrackingRecHit, 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 >, 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 >.

Definition at line 70 of file GenericTransientTrackingRecHit.h.

References GenericTransientTrackingRecHit().

70  {
71  return new GenericTransientTrackingRecHit(*this);
72  }
GenericTransientTrackingRecHit(const GeomDet *geom, const TrackingRecHit &rh)
TrackingRecHit* GenericTransientTrackingRecHit::cloneHit ( ) const
inlinevirtual

Implements TransientTrackingRecHit.

Reimplemented in GCC11_FINAL< T, TOPO >.

Definition at line 28 of file GenericTransientTrackingRecHit.h.

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

Referenced by GenericTransientTrackingRecHit(), and operator=().

28 { return hit()->clone();}
virtual const TrackingRecHit * hit() const
virtual TrackingRecHit * clone() const =0
virtual int GenericTransientTrackingRecHit::dimension ( ) const
inlinevirtual
virtual const TrackingRecHit* GenericTransientTrackingRecHit::hit ( void  ) const
inlinevirtual
virtual LocalPoint GenericTransientTrackingRecHit::localPosition ( ) const
inlinevirtual
virtual LocalError GenericTransientTrackingRecHit::localPositionError ( ) const
inlinevirtual
GenericTransientTrackingRecHit& GenericTransientTrackingRecHit::operator= ( const GenericTransientTrackingRecHit t)
inlineprivate

Definition at line 63 of file GenericTransientTrackingRecHit.h.

References cloneHit(), and trackingRecHit_.

63  {
65  return *(this);
66  }
virtual AlgebraicVector GenericTransientTrackingRecHit::parameters ( void  ) const
inlinevirtual
virtual AlgebraicSymMatrix GenericTransientTrackingRecHit::parametersError ( ) const
inlinevirtual
virtual AlgebraicMatrix GenericTransientTrackingRecHit::projectionMatrix ( ) const
inlinevirtual
virtual std::vector<const TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( ) const
inlinevirtual
virtual std::vector<TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( )
inlinevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

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 >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

Definition at line 33 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::recHits(), and trackingRecHit_.

33  {
34  return trackingRecHit_->recHits();
35  }
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)

Member Data Documentation

TrackingRecHit* GenericTransientTrackingRecHit::trackingRecHit_
protected