CMS 3D CMS Logo

TSiTrackerMultiRecHit Class Reference

#include <RecoTracker/TransientTrackingRecHit/interface/TSiTrackerMultiRecHit.h>

Inheritance diagram for TSiTrackerMultiRecHit:

TransientTrackingRecHit TrackingRecHit ReferenceCounted

List of all members.

Public Member Functions

virtual bool canImproveWithTrack () const
 Returns true if the clone( const TrajectoryStateOnSurface&) method returns an improved hit, false if it returns an identical copy.
virtual RecHitPointer clone (const TrajectoryStateOnSurface &ts) const
 Returns a copy of the hit with parameters and errors computed with respect to the TrajectoryStateOnSurface given as argument.
virtual const GeomDetUnitdetUnit () const
 CAUTION: the GeomDetUnit* is zero for composite hits (matched hits in the tracker, segments in the muon).
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
< TrackingRecHit * > 
recHits ()
 Non-const access to component RecHits (if any).
virtual std::vector< const
TrackingRecHit * > 
recHits () 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.

00016 {}

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().

00064                                                                                       :
00065                 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().

Referenced by SiTrackerMultiRecHitUpdator::update().

00055                                                                                                {
00056                 return RecHitPointer(new TSiTrackerMultiRecHit( geom, rh, components, annealing));
00057         }

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.

00048 {return true;}

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

Implements TransientTrackingRecHit.

Definition at line 67 of file TSiTrackerMultiRecHit.h.

References TSiTrackerMultiRecHit().

Referenced by clone().

00067                                                      {
00068                 return new TSiTrackerMultiRecHit(*this);
00069         }

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().

00015                                                                                                          {
00016 /*
00017         std::vector<TransientTrackingRecHit::RecHitPointer> updatedcomponents = theComponents;
00018         SiTrackerMultiRecHit better = theUpdator->update(ts,&theHitData, updatedcomponents);
00019         RecHitPointer result = TSiTrackerMultiRecHit::build( det(), &better, theUpdator, updatedcomponents );
00020         return result;
00021 */
00022         return this->clone();
00023 }

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().

00011                                                        {
00012   return dynamic_cast<const GeomDetUnit*>(det());
00013 }

virtual int TSiTrackerMultiRecHit::dimension (  )  const [inline, virtual]

Implements TrackingRecHit.

Definition at line 29 of file TSiTrackerMultiRecHit.h.

References RecHit2DLocalPos::dimension(), and theHitData.

00029 {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.

00027 {return theHitData.geographicalId();}

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

Reimplemented from TrackingRecHit.

Definition at line 24 of file TSiTrackerMultiRecHit.h.

References TransientTrackingRecHit::det(), and theHitData.

00024                                                                           {
00025             HelpertRecHit2DLocalPos().getKfComponents(holder, theHitData, *det()); 
00026         }

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

Implements TransientTrackingRecHit.

Definition at line 34 of file TSiTrackerMultiRecHit.h.

References theHitData.

00034 {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.

00037 {return theHitData.isValid();}

virtual LocalPoint TSiTrackerMultiRecHit::localPosition (  )  const [inline, virtual]

Implements TrackingRecHit.

Definition at line 31 of file TSiTrackerMultiRecHit.h.

References BaseSiTrackerRecHit2DLocalPos::localPosition(), and theHitData.

00031 {return theHitData.localPosition();}

virtual LocalError TSiTrackerMultiRecHit::localPositionError (  )  const [inline, virtual]

Implements TrackingRecHit.

Definition at line 32 of file TSiTrackerMultiRecHit.h.

References BaseSiTrackerRecHit2DLocalPos::localPositionError(), and theHitData.

00032 {return theHitData.localPositionError();}

virtual AlgebraicVector TSiTrackerMultiRecHit::parameters ( void   )  const [inline, virtual]

Implements TrackingRecHit.

Definition at line 18 of file TSiTrackerMultiRecHit.h.

References RecHit2DLocalPos::parameters(), and theHitData.

00018 {return theHitData.parameters();}

virtual AlgebraicSymMatrix TSiTrackerMultiRecHit::parametersError (  )  const [inline, virtual]

Implements TrackingRecHit.

Definition at line 19 of file TSiTrackerMultiRecHit.h.

References TransientTrackingRecHit::det(), BaseSiTrackerRecHit2DLocalPos::localPositionError(), and theHitData.

00019                                                            {
00020                 return HelpertRecHit2DLocalPos().parError( theHitData.localPositionError(), *det());
00021                 //return theHitData.parametersError();
00022         }

virtual AlgebraicMatrix TSiTrackerMultiRecHit::projectionMatrix (  )  const [inline, virtual]

Implements TrackingRecHit.

Definition at line 28 of file TSiTrackerMultiRecHit.h.

References RecHit2DLocalPos::projectionMatrix(), and theHitData.

00028 {return theHitData.projectionMatrix();}

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.

00042                                                      {
00043                 return theHitData.recHits();
00044         }       

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.

00039                                                                  {
00040                 return theHitData.recHits();
00041         } 

const SiTrackerMultiRecHit* TSiTrackerMultiRecHit::specificHit (  )  const [inline]

Definition at line 35 of file TSiTrackerMultiRecHit.h.

References theHitData.

00035 {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.

00052 {return theComponents;};


Member Data Documentation

ConstRecHitContainer TSiTrackerMultiRecHit::theComponents [private]

Definition at line 61 of file TSiTrackerMultiRecHit.h.

Referenced by transientHits().

SiTrackerMultiRecHit TSiTrackerMultiRecHit::theHitData [private]

Definition at line 59 of file TSiTrackerMultiRecHit.h.

Referenced by dimension(), geographicalId(), getKfComponents(), hit(), isValid(), localPosition(), localPositionError(), parameters(), parametersError(), projectionMatrix(), recHits(), and specificHit().


The documentation for this class was generated from the following files:
Generated on Tue Jun 9 18:34:39 2009 for CMSSW by  doxygen 1.5.4