CMS 3D CMS Logo

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:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated MuonTransientTrackingRecHit ProjectedRecHit2D TSiStripMatchedRecHit

List of all members.

Public Types

typedef TrackingRecHit::Type Type

Public Member Functions

virtual bool canImproveWithTrack () 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)
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any)
virtual ~GenericTransientTrackingRecHit ()

Static Public Member Functions

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

Protected Member Functions

 GenericTransientTrackingRecHit (const GeomDet *geom, const TrackingRecHit &rh, float weight=1., float annealing=1.)
 GenericTransientTrackingRecHit (const GenericTransientTrackingRecHit &other)
 GenericTransientTrackingRecHit (const GeomDet *geom, TrackingRecHit *rh, float weight=1., float annealing=1.)
 for derived classes convenience, does not clone!

Protected Attributes

TrackingRecHittrackingRecHit_

Private Member Functions

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

Detailed Description

Definition at line 7 of file GenericTransientTrackingRecHit.h.


Member Typedef Documentation

Type of hits: valid = valid hit missing = detector is good, but no rec hit found inactive = detector is off, so there was no hope bad = there were many bad strips within the ellipse (in Tracker) = hit is compatible with the trajectory, but chi2 is too large (in Muon System)

Reimplemented from TrackingRecHit.

Definition at line 9 of file GenericTransientTrackingRecHit.h.


Constructor & Destructor Documentation

virtual GenericTransientTrackingRecHit::~GenericTransientTrackingRecHit ( ) [inline, virtual]

Definition at line 11 of file GenericTransientTrackingRecHit.h.

References trackingRecHit_.

{delete trackingRecHit_;}
GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GeomDet geom,
const TrackingRecHit rh,
float  weight = 1.,
float  annealing = 1. 
) [inline, protected]

Definition at line 44 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::clone(), and trackingRecHit_.

Referenced by build(), and clone().

                                                                                                                      :
    TransientTrackingRecHit(geom,rh,weight,annealing) {
    trackingRecHit_ = rh.clone();
  }
GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GeomDet geom,
TrackingRecHit rh,
float  weight = 1.,
float  annealing = 1. 
) [inline, protected]

for derived classes convenience, does not clone!

Definition at line 50 of file GenericTransientTrackingRecHit.h.

                                                                                                                :
    TransientTrackingRecHit(geom,*rh,weight,annealing), trackingRecHit_(rh) {}
GenericTransientTrackingRecHit::GenericTransientTrackingRecHit ( const GenericTransientTrackingRecHit other) [inline, protected]

Definition at line 53 of file GenericTransientTrackingRecHit.h.

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

                                                                                 :
    TransientTrackingRecHit( other.det(),other,other.weight(),other.getAnnealingFactor()) {
    trackingRecHit_ = other.hit()->clone();
  }

Member Function Documentation

static RecHitPointer GenericTransientTrackingRecHit::build ( const GeomDet geom,
const TrackingRecHit rh 
) [inline, static]
virtual bool GenericTransientTrackingRecHit::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 from TransientTrackingRecHit.

Reimplemented in TSiStripMatchedRecHit.

Definition at line 25 of file GenericTransientTrackingRecHit.h.

{return false;}
virtual GenericTransientTrackingRecHit* GenericTransientTrackingRecHit::clone ( void  ) const [inline, private, virtual]
virtual int GenericTransientTrackingRecHit::dimension ( ) const [inline, virtual]
virtual const TrackingRecHit* GenericTransientTrackingRecHit::hit ( void  ) const [inline, virtual]
virtual LocalPoint GenericTransientTrackingRecHit::localPosition ( ) const [inline, virtual]
virtual LocalError GenericTransientTrackingRecHit::localPositionError ( ) const [inline, virtual]
GenericTransientTrackingRecHit& GenericTransientTrackingRecHit::operator= ( const GenericTransientTrackingRecHit t) [inline, private]

Definition at line 63 of file GenericTransientTrackingRecHit.h.

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

                                                                                        {
    trackingRecHit_ = t.hit()->clone();
    return *(this);
  }
virtual AlgebraicVector GenericTransientTrackingRecHit::parameters ( void  ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 13 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::parameters(), and trackingRecHit_.

virtual AlgebraicSymMatrix GenericTransientTrackingRecHit::parametersError ( ) const [inline, virtual]
virtual AlgebraicMatrix GenericTransientTrackingRecHit::projectionMatrix ( ) const [inline, virtual]
virtual std::vector<TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( ) [inline, virtual]

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 33 of file GenericTransientTrackingRecHit.h.

References TrackingRecHit::recHits(), and trackingRecHit_.

                                               {
    return trackingRecHit_->recHits();
  }
virtual std::vector<const TrackingRecHit*> GenericTransientTrackingRecHit::recHits ( ) const [inline, virtual]

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 30 of file GenericTransientTrackingRecHit.h.

References trackingRecHit_.

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

                                                           {
    return ((const TrackingRecHit *)(trackingRecHit_))->recHits();
  }

Member Data Documentation