CMS 3D CMS Logo

Public Member Functions | Static Public Member Functions | Private Member Functions | Private Attributes

GenericProjectedRecHit2D Class Reference

#include <GenericProjectedRecHit2D.h>

Inheritance diagram for GenericProjectedRecHit2D:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

List of all members.

Public Member Functions

virtual bool canImproveWithTrack () const
RecHitPointer clone (const TrajectoryStateOnSurface &ts) const
virtual int dimension () const
virtual DetId geographicalId () const
virtual const TrackingRecHithit () const
virtual bool isValid () const
virtual LocalPoint localPosition () const
virtual LocalError localPositionError () const
const GeomDetoriginalDet () const
virtual AlgebraicVector parameters () const
virtual AlgebraicSymMatrix parametersError () const
virtual AlgebraicMatrix projectionMatrix () const
const TrackingRecHitPropagatorpropagator () const
virtual std::vector
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any)
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any)

Static Public Member Functions

static RecHitPointer build (const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)

Private Member Functions

virtual GenericProjectedRecHit2Dclone () const
 GenericProjectedRecHit2D (const LocalPoint &pos, const LocalError &err, const GeomDet *det, const GeomDet *originaldet, const TransientTrackingRecHit::ConstRecHitPointer originalHit, const TrackingRecHitPropagator *propagator)

Private Attributes

int theDimension
LocalError theLe
LocalPoint theLp
const GeomDettheOriginalDet
TransientTrackingRecHit::ConstRecHitPointer theOriginalTransientHit
AlgebraicMatrix theProjectionMatrix
const TrackingRecHitPropagatorthePropagator

Detailed Description

Definition at line 8 of file GenericProjectedRecHit2D.h.


Constructor & Destructor Documentation

GenericProjectedRecHit2D::GenericProjectedRecHit2D ( const LocalPoint pos,
const LocalError err,
const GeomDet det,
const GeomDet originaldet,
const TransientTrackingRecHit::ConstRecHitPointer  originalHit,
const TrackingRecHitPropagator propagator 
) [private]

Definition at line 8 of file GenericProjectedRecHit2D.cc.

References originalDet(), pos, propagator(), theDimension, theLe, theLp, theOriginalDet, theOriginalTransientHit, theProjectionMatrix, and thePropagator.

Referenced by build(), and clone().

                                                                                                :
  TransientTrackingRecHit( det, originalHit->weight(), originalHit->getAnnealingFactor()) 
{
        theOriginalDet = originalDet;
        thePropagator = propagator;
        theOriginalTransientHit = originalHit;          
        theLp = pos;
        theLe = err;
        theProjectionMatrix = originalHit->projectionMatrix();
        theDimension = originalHit->dimension();        
        //theOriginalHit = originalTransientHit.hit()->clone();
}

Member Function Documentation

static RecHitPointer GenericProjectedRecHit2D::build ( const LocalPoint pos,
const LocalError err,
const GeomDet det,
const GeomDet originaldet,
const TransientTrackingRecHit::ConstRecHitPointer  originalHit,
const TrackingRecHitPropagator propagator 
) [inline, static]

Definition at line 50 of file GenericProjectedRecHit2D.h.

References GenericProjectedRecHit2D().

                                                                          {
    return RecHitPointer( new GenericProjectedRecHit2D( pos, err, det, originaldet, originalHit, propagator));
  }
virtual bool GenericProjectedRecHit2D::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.

Definition at line 46 of file GenericProjectedRecHit2D.h.

{return true;} 
TransientTrackingRecHit::RecHitPointer GenericProjectedRecHit2D::clone ( const TrajectoryStateOnSurface ts) 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 from TransientTrackingRecHit.

Definition at line 32 of file GenericProjectedRecHit2D.cc.

References TransientTrackingRecHit::det(), TrackingRecHitPropagator::project(), theOriginalTransientHit, and thePropagator.

virtual GenericProjectedRecHit2D* GenericProjectedRecHit2D::clone ( void  ) const [inline, private, virtual]

Implements TransientTrackingRecHit.

Definition at line 75 of file GenericProjectedRecHit2D.h.

References GenericProjectedRecHit2D().

                                                  {
    return new GenericProjectedRecHit2D(*this);
  }
virtual int GenericProjectedRecHit2D::dimension ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 27 of file GenericProjectedRecHit2D.h.

References theDimension.

{return theDimension;}
virtual DetId GenericProjectedRecHit2D::geographicalId ( ) const [inline, virtual]

Reimplemented from TrackingRecHit.

Definition at line 25 of file GenericProjectedRecHit2D.h.

References TransientTrackingRecHit::det(), and GeomDet::geographicalId().

{return det() ? det()->geographicalId() : DetId();}
virtual const TrackingRecHit* GenericProjectedRecHit2D::hit ( void  ) const [inline, virtual]

Implements TransientTrackingRecHit.

Definition at line 30 of file GenericProjectedRecHit2D.h.

References theOriginalTransientHit.

{return theOriginalTransientHit->hit();};       
virtual bool GenericProjectedRecHit2D::isValid ( void  ) const [inline, virtual]

Reimplemented from TrackingRecHit.

Definition at line 32 of file GenericProjectedRecHit2D.h.

{return true;}
virtual LocalPoint GenericProjectedRecHit2D::localPosition ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 19 of file GenericProjectedRecHit2D.h.

References theLp.

{return theLp;}
virtual LocalError GenericProjectedRecHit2D::localPositionError ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 21 of file GenericProjectedRecHit2D.h.

References theLe.

Referenced by parametersError().

{return theLe;}  
const GeomDet* GenericProjectedRecHit2D::originalDet ( ) const [inline]

Definition at line 48 of file GenericProjectedRecHit2D.h.

References theOriginalDet.

Referenced by GenericProjectedRecHit2D().

{return theOriginalDet;}
AlgebraicVector GenericProjectedRecHit2D::parameters ( void  ) const [virtual]
virtual AlgebraicSymMatrix GenericProjectedRecHit2D::parametersError ( ) const [inline, virtual]
virtual AlgebraicMatrix GenericProjectedRecHit2D::projectionMatrix ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 23 of file GenericProjectedRecHit2D.h.

References theProjectionMatrix.

const TrackingRecHitPropagator* GenericProjectedRecHit2D::propagator ( void  ) const [inline]

Definition at line 44 of file GenericProjectedRecHit2D.h.

References thePropagator.

Referenced by GenericProjectedRecHit2D().

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

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 34 of file GenericProjectedRecHit2D.h.

                                                           {
        //return theOriginalTransientHit->hit()->recHits();
        return std::vector<const TrackingRecHit*>();
  }
virtual std::vector<TrackingRecHit*> GenericProjectedRecHit2D::recHits ( ) [inline, virtual]

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 39 of file GenericProjectedRecHit2D.h.

                                               {
        //should it do something different?
        return std::vector<TrackingRecHit*>();
  }

Member Data Documentation

Definition at line 68 of file GenericProjectedRecHit2D.h.

Referenced by dimension(), and GenericProjectedRecHit2D().

Definition at line 64 of file GenericProjectedRecHit2D.h.

Referenced by GenericProjectedRecHit2D(), and localPositionError().

Definition at line 63 of file GenericProjectedRecHit2D.h.

Referenced by GenericProjectedRecHit2D(), localPosition(), and parameters().

Definition at line 61 of file GenericProjectedRecHit2D.h.

Referenced by GenericProjectedRecHit2D(), and originalDet().

Definition at line 62 of file GenericProjectedRecHit2D.h.

Referenced by clone(), GenericProjectedRecHit2D(), and hit().

Definition at line 65 of file GenericProjectedRecHit2D.h.

Referenced by GenericProjectedRecHit2D(), and projectionMatrix().

Definition at line 66 of file GenericProjectedRecHit2D.h.

Referenced by clone(), GenericProjectedRecHit2D(), and propagator().