test
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 TrackingRecHit MuonTransientTrackingRecHit

Public Types

typedef TrackingRecHit::Type Type
 
- 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,
  missing_inner = 4, missing_outer = 5
}
 

Public Member Functions

virtual bool canImproveWithTrack () const override
 
TrackingRecHitcloneHit () const
 
virtual int dimension () const
 
virtual const TrackingRecHithit () const
 
virtual LocalPoint localPosition () const override
 
virtual LocalError localPositionError () const override
 
virtual AlgebraicVector parameters () const
 
virtual AlgebraicSymMatrix parametersError () const
 
virtual AlgebraicMatrix projectionMatrix () const
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const override
 Access to component RecHits (if any) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits () override
 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...
 
float errorGlobalR () const final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
virtual GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
virtual const Surfacesurface () const final
 
 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
 
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 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 ()
 

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 override
 
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  }
TValidTrackingRecHit(const GeomDet &geom)
const GeomDet * det() const

Member Function Documentation

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

Definition at line 37 of file GenericTransientTrackingRecHit.h.

References GenericTransientTrackingRecHit().

37  {
38  return RecHitPointer( new GenericTransientTrackingRecHit( *geom, *rh));
39  }
GenericTransientTrackingRecHit(const GeomDet &geom, const TrackingRecHit &rh)
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual bool GenericTransientTrackingRecHit::canImproveWithTrack ( ) const
inlineoverridevirtual

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.

Definition at line 25 of file GenericTransientTrackingRecHit.h.

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

Implements TValidTrackingRecHit.

Reimplemented in MuonTransientTrackingRecHit.

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

Reimplemented from TrackingRecHit.

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 ( ) const
inlinevirtual
virtual LocalPoint GenericTransientTrackingRecHit::localPosition ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 22 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::localPosition(), and trackingRecHit_.

Referenced by MuonTransientTrackingRecHit::parametersError().

22 {return trackingRecHit_->localPosition();}
virtual LocalPoint localPosition() const =0
virtual LocalError GenericTransientTrackingRecHit::localPositionError ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Definition at line 23 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::localPositionError(), and trackingRecHit_.

virtual LocalError localPositionError() const =0
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

Implements TrackingRecHit.

Definition at line 13 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::parameters(), and trackingRecHit_.

Referenced by MuonTransientTrackingRecHit::parametersError().

13 {return trackingRecHit_->parameters();}
virtual AlgebraicVector parameters() const =0
virtual AlgebraicSymMatrix GenericTransientTrackingRecHit::parametersError ( ) const
inlinevirtual

Implements TrackingRecHit.

Reimplemented in MuonTransientTrackingRecHit.

Definition at line 14 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::parametersError(), and trackingRecHit_.

Referenced by MuonTransientTrackingRecHit::parametersError().

virtual AlgebraicSymMatrix parametersError() const =0
virtual AlgebraicMatrix GenericTransientTrackingRecHit::projectionMatrix ( ) const
inlinevirtual

Implements TrackingRecHit.

Definition at line 15 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::projectionMatrix(), and trackingRecHit_.

virtual AlgebraicMatrix projectionMatrix() const =0
virtual std::vector<const TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( ) const
inlineoverridevirtual

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 30 of file GenericTransientTrackingRecHit.h.

References trackingRecHit_.

Referenced by MuonTransientTrackingRecHit::invalidateHit(), MuonSeedCleaner::NRecHitsFromSegment(), and MuonTransientTrackingRecHit::transientHits().

30  {
31  return ((const TrackingRecHit *)(trackingRecHit_))->recHits();
32  }
virtual std::vector<TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( )
inlineoverridevirtual

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

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