CMS 3D CMS Logo

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

TSiTrackerMultiRecHit Class Reference

#include <TSiTrackerMultiRecHit.h>

Inheritance diagram for TSiTrackerMultiRecHit:
TransientTrackingRecHit TrackingRecHit ReferenceCountedPoolAllocated BlockWipedPoolAllocated

List of all members.

Public Member Functions

virtual bool canImproveWithTrack () const
virtual RecHitPointer clone (const TrajectoryStateOnSurface &ts) const
virtual const GeomDetUnitdetUnit () const
virtual int dimension () const
virtual DetId geographicalId () const
virtual void getKfComponents (KfComponentsHolder &holder) const
virtual const TrackingRecHithit () const
virtual bool isValid () 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)
const SiTrackerMultiRecHitspecificHit () const
virtual ConstRecHitContainer transientHits () const
 Composite interface: returns the component hits, if any.
virtual ~TSiTrackerMultiRecHit ()

Static Public Member Functions

static RecHitPointer build (const GeomDet *geom, const SiTrackerMultiRecHit *rh, const ConstRecHitContainer &components, float annealing=1.)

Private Member Functions

virtual TSiTrackerMultiRecHitclone () const
 TSiTrackerMultiRecHit (const GeomDet *geom, const SiTrackerMultiRecHit *rh, const ConstRecHitContainer &components, float annealing)

Private Attributes

ConstRecHitContainer theComponents
SiTrackerMultiRecHit theHitData

Detailed Description

Definition at line 13 of file TSiTrackerMultiRecHit.h.


Constructor & Destructor Documentation

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

Definition at line 16 of file TSiTrackerMultiRecHit.h.

{}
TSiTrackerMultiRecHit::TSiTrackerMultiRecHit ( const GeomDet geom,
const SiTrackerMultiRecHit rh,
const ConstRecHitContainer components,
float  annealing 
) [inline, private]

Definition at line 63 of file TSiTrackerMultiRecHit.h.

Referenced by build(), and clone().

                                                                                      :
                TransientTrackingRecHit(geom,1, annealing), theHitData(*rh), theComponents(components){}

Member Function Documentation

static RecHitPointer TSiTrackerMultiRecHit::build ( const GeomDet geom,
const SiTrackerMultiRecHit rh,
const ConstRecHitContainer components,
float  annealing = 1. 
) [inline, static]

Definition at line 54 of file TSiTrackerMultiRecHit.h.

References TSiTrackerMultiRecHit().

                                                                                               {
                return RecHitPointer(new TSiTrackerMultiRecHit( geom, rh, components, annealing));
        }
virtual bool TSiTrackerMultiRecHit::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 48 of file TSiTrackerMultiRecHit.h.

{return true;}
TransientTrackingRecHit::RecHitPointer TSiTrackerMultiRecHit::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 15 of file TSiTrackerMultiRecHit.cc.

References clone().

                                                                                                         {
/*
        std::vector<TransientTrackingRecHit::RecHitPointer> updatedcomponents = theComponents;
        SiTrackerMultiRecHit better = theUpdator->update(ts,&theHitData, updatedcomponents);
        RecHitPointer result = TSiTrackerMultiRecHit::build( det(), &better, theUpdator, updatedcomponents );
        return result;
*/
        return this->clone();
}
virtual TSiTrackerMultiRecHit* TSiTrackerMultiRecHit::clone ( void  ) const [inline, private, virtual]

Implements TransientTrackingRecHit.

Definition at line 67 of file TSiTrackerMultiRecHit.h.

References TSiTrackerMultiRecHit().

Referenced by clone().

                                                     {
                return new TSiTrackerMultiRecHit(*this);
        }
const GeomDetUnit * TSiTrackerMultiRecHit::detUnit ( ) const [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 11 of file TSiTrackerMultiRecHit.cc.

References TransientTrackingRecHit::det().

                                                       {
  return dynamic_cast<const GeomDetUnit*>(det());
}
virtual int TSiTrackerMultiRecHit::dimension ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 29 of file TSiTrackerMultiRecHit.h.

References RecHit2DLocalPos::dimension(), and theHitData.

{return theHitData.dimension();}
virtual DetId TSiTrackerMultiRecHit::geographicalId ( ) const [inline, virtual]

Reimplemented from TrackingRecHit.

Definition at line 27 of file TSiTrackerMultiRecHit.h.

References TrackingRecHit::geographicalId(), and theHitData.

virtual void TSiTrackerMultiRecHit::getKfComponents ( KfComponentsHolder holder) const [inline, virtual]
virtual const TrackingRecHit* TSiTrackerMultiRecHit::hit ( void  ) const [inline, virtual]

Implements TransientTrackingRecHit.

Definition at line 34 of file TSiTrackerMultiRecHit.h.

References theHitData.

{return &theHitData;};
virtual bool TSiTrackerMultiRecHit::isValid ( void  ) const [inline, virtual]

Reimplemented from TrackingRecHit.

Definition at line 37 of file TSiTrackerMultiRecHit.h.

References TrackingRecHit::isValid(), and theHitData.

{return theHitData.isValid();}
virtual LocalPoint TSiTrackerMultiRecHit::localPosition ( ) const [inline, virtual]
virtual LocalError TSiTrackerMultiRecHit::localPositionError ( ) const [inline, virtual]
virtual AlgebraicVector TSiTrackerMultiRecHit::parameters ( void  ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 18 of file TSiTrackerMultiRecHit.h.

References RecHit2DLocalPos::parameters(), and theHitData.

{return theHitData.parameters();}
virtual AlgebraicSymMatrix TSiTrackerMultiRecHit::parametersError ( ) const [inline, virtual]
virtual AlgebraicMatrix TSiTrackerMultiRecHit::projectionMatrix ( ) const [inline, virtual]

Implements TrackingRecHit.

Definition at line 28 of file TSiTrackerMultiRecHit.h.

References RecHit2DLocalPos::projectionMatrix(), and theHitData.

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

Non-const access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 42 of file TSiTrackerMultiRecHit.h.

References SiTrackerMultiRecHit::recHits(), and theHitData.

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

Access to component RecHits (if any)

Implements TrackingRecHit.

Definition at line 39 of file TSiTrackerMultiRecHit.h.

References SiTrackerMultiRecHit::recHits(), and theHitData.

Referenced by TrackerDpgAnalysis::insertMeasurement().

                                                                 {
                return theHitData.recHits();
        } 
const SiTrackerMultiRecHit* TSiTrackerMultiRecHit::specificHit ( ) const [inline]

Definition at line 35 of file TSiTrackerMultiRecHit.h.

References theHitData.

{return &theHitData;}
virtual ConstRecHitContainer TSiTrackerMultiRecHit::transientHits ( ) const [inline, virtual]

Composite interface: returns the component hits, if any.

Reimplemented from TransientTrackingRecHit.

Definition at line 52 of file TSiTrackerMultiRecHit.h.

References theComponents.

{return theComponents;};

Member Data Documentation

Definition at line 61 of file TSiTrackerMultiRecHit.h.

Referenced by transientHits().