CMS 3D CMS Logo

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

TRecHit5DParamConstraint Class Reference

#include <TRecHit5DParamConstraint.h>

Inheritance diagram for TRecHit5DParamConstraint:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

List of all members.

Public Member Functions

virtual bool canImproveWithTrack () const
virtual int charge () const
virtual
TransientTrackingRecHit::RecHitPointer 
clone (const TrajectoryStateOnSurface &tsos) const
virtual const GeomDetdet () const
 The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.
virtual const GeomDetUnitdetUnit () 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
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any)
virtual std::vector< const
TrackingRecHit * > 
recHits () const
 Access to component RecHits (if any)
virtual const Surfacesurface () const
virtual ~TRecHit5DParamConstraint ()

Static Public Member Functions

static
TransientTrackingRecHit::RecHitPointer 
build (const TrajectoryStateOnSurface &tsos)

Private Member Functions

virtual TRecHit5DParamConstraintclone () const
const TrajectoryStateOnSurfacetrajectoryState () const
 TRecHit5DParamConstraint (const TrajectoryStateOnSurface &tsos)
 TRecHit5DParamConstraint (const TRecHit5DParamConstraint &other)

Private Attributes

const TrajectoryStateOnSurface tsos_

Detailed Description

Definition at line 9 of file TRecHit5DParamConstraint.h.


Constructor & Destructor Documentation

TRecHit5DParamConstraint::TRecHit5DParamConstraint ( const TrajectoryStateOnSurface tsos) [inline, private]

Definition at line 14 of file TRecHit5DParamConstraint.h.

Referenced by build(), and clone().

: tsos_( tsos ) {}
TRecHit5DParamConstraint::TRecHit5DParamConstraint ( const TRecHit5DParamConstraint other) [inline, private]

Definition at line 16 of file TRecHit5DParamConstraint.h.

: tsos_( other.trajectoryState() ) {}
virtual TRecHit5DParamConstraint::~TRecHit5DParamConstraint ( ) [inline, virtual]

Definition at line 20 of file TRecHit5DParamConstraint.h.

{}

Member Function Documentation

static TransientTrackingRecHit::RecHitPointer TRecHit5DParamConstraint::build ( const TrajectoryStateOnSurface tsos) [inline, static]

Definition at line 58 of file TRecHit5DParamConstraint.h.

References TRecHit5DParamConstraint().

                                                                                            {
    return RecHitPointer( new TRecHit5DParamConstraint( tsos ) );
  }
virtual bool TRecHit5DParamConstraint::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 39 of file TRecHit5DParamConstraint.h.

{ return false; }
virtual int TRecHit5DParamConstraint::charge ( void  ) const [inline, virtual]

Definition at line 37 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::charge(), and tsos_.

{ return tsos_.charge(); }
virtual TRecHit5DParamConstraint* TRecHit5DParamConstraint::clone ( void  ) const [inline, private, virtual]

Implements TransientTrackingRecHit.

Definition at line 66 of file TRecHit5DParamConstraint.h.

References trajectoryState(), and TRecHit5DParamConstraint().

                                                  {
    return new TRecHit5DParamConstraint( this->trajectoryState() );
  }
virtual TransientTrackingRecHit::RecHitPointer TRecHit5DParamConstraint::clone ( const TrajectoryStateOnSurface ts) const [inline, 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 53 of file TRecHit5DParamConstraint.h.

References TRecHit5DParamConstraint().

                                                                                                   {
    //return new TRecHit5DParamConstraint( this->trajectoryState() );
    return new TRecHit5DParamConstraint( tsos );
  }
virtual const GeomDet* TRecHit5DParamConstraint::det ( ) const [inline, virtual]

The GomeDet* can be zero for InvalidTransientRecHits and for TConstraintRecHit2Ds.

Reimplemented from TransientTrackingRecHit.

Definition at line 49 of file TRecHit5DParamConstraint.h.

{ return 0; }
virtual const GeomDetUnit* TRecHit5DParamConstraint::detUnit ( ) const [inline, 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 from TransientTrackingRecHit.

Definition at line 47 of file TRecHit5DParamConstraint.h.

{ return 0; }
virtual int TRecHit5DParamConstraint::dimension ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 22 of file TRecHit5DParamConstraint.h.

{ return 5; }
virtual const TrackingRecHit* TRecHit5DParamConstraint::hit ( void  ) const [inline, virtual]

Implements TransientTrackingRecHit.

Definition at line 41 of file TRecHit5DParamConstraint.h.

{ return 0; }
virtual LocalPoint TRecHit5DParamConstraint::localPosition ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 33 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::localPosition(), and tsos_.

{ return tsos_.localPosition(); }
virtual LocalError TRecHit5DParamConstraint::localPositionError ( ) const [inline, virtual]
virtual AlgebraicVector TRecHit5DParamConstraint::parameters ( void  ) const [inline, virtual]
virtual AlgebraicSymMatrix TRecHit5DParamConstraint::parametersError ( ) const [inline, virtual]
virtual AlgebraicMatrix TRecHit5DParamConstraint::projectionMatrix ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 24 of file TRecHit5DParamConstraint.h.

virtual std::vector<const TrackingRecHit*> TRecHit5DParamConstraint::recHits ( ) const [inline, virtual]

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 43 of file TRecHit5DParamConstraint.h.

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

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 45 of file TRecHit5DParamConstraint.h.

{ return std::vector<TrackingRecHit*>(); }
virtual const Surface* TRecHit5DParamConstraint::surface ( ) const [inline, virtual]

Reimplemented from TransientTrackingRecHit.

Definition at line 51 of file TRecHit5DParamConstraint.h.

References TrajectoryStateOnSurface::surface(), and tsos_.

{ return &tsos_.surface(); }
const TrajectoryStateOnSurface& TRecHit5DParamConstraint::trajectoryState ( ) const [inline, private]

Definition at line 70 of file TRecHit5DParamConstraint.h.

References tsos_.

Referenced by clone().

{ return tsos_; }

Member Data Documentation