CMS 3D CMS Logo

TSiPixelRecHit Class Reference

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

Inheritance diagram for TSiPixelRecHit:

TransientTrackingRecHit TrackingRecHit ReferenceCounted

List of all members.

Public Types

typedef SiPixelRecHit::ClusterRef clusterRef

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.
const
PixelClusterParameterEstimator
cpe () const
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 void getKfComponents (KfComponentsHolder &holder) 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).
const SiPixelRecHitspecificHit () const
virtual ~TSiPixelRecHit ()

Static Public Member Functions

static RecHitPointer build (const LocalPoint &pos, const LocalError &err, const GeomDet *det, clusterRef cluster, const PixelClusterParameterEstimator *cpe, float weight=1., float annealing=1.)
static RecHitPointer build (const GeomDet *geom, const SiPixelRecHit *rh, const PixelClusterParameterEstimator *cpe, float weight=1., float annealing=1.)

Private Member Functions

virtual TSiPixelRecHitclone () const
 TSiPixelRecHit (const LocalPoint &pos, const LocalError &err, const GeomDet *det, clusterRef clust, const PixelClusterParameterEstimator *cpe, float weight, float annealing)
 Creates the TrackingRecHit internally, avoids redundent cloning.
 TSiPixelRecHit (const GeomDet *geom, const SiPixelRecHit *rh, const PixelClusterParameterEstimator *cpe, float weight, float annealing)
 This constructor copy the TrackingRecHit, it should be used when the TrackingRecHit exist already in some collection.

Private Attributes

const
PixelClusterParameterEstimator
theCPE
SiPixelRecHit theHitData


Detailed Description

Definition at line 14 of file TSiPixelRecHit.h.


Member Typedef Documentation

typedef SiPixelRecHit::ClusterRef TSiPixelRecHit::clusterRef

Definition at line 17 of file TSiPixelRecHit.h.


Constructor & Destructor Documentation

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

Definition at line 20 of file TSiPixelRecHit.h.

00020 {}

TSiPixelRecHit::TSiPixelRecHit ( const GeomDet geom,
const SiPixelRecHit rh,
const PixelClusterParameterEstimator cpe,
float  weight,
float  annealing 
) [inline, private]

This constructor copy the TrackingRecHit, it should be used when the TrackingRecHit exist already in some collection.

Definition at line 82 of file TSiPixelRecHit.h.

Referenced by build(), and clone().

00084                                                 : 
00085     TransientTrackingRecHit(geom, *rh, weight, annealing), theHitData(*rh), theCPE(cpe) {}

TSiPixelRecHit::TSiPixelRecHit ( const LocalPoint pos,
const LocalError err,
const GeomDet det,
clusterRef  clust,
const PixelClusterParameterEstimator cpe,
float  weight,
float  annealing 
) [inline, private]

Creates the TrackingRecHit internally, avoids redundent cloning.

Definition at line 88 of file TSiPixelRecHit.h.

00093                                                  :
00094     TransientTrackingRecHit(det,weight, annealing), 
00095     theHitData( pos, err, det->geographicalId(), clust),
00096     theCPE(cpe)
00097   {}
  


Member Function Documentation

static RecHitPointer TSiPixelRecHit::build ( const LocalPoint pos,
const LocalError err,
const GeomDet det,
clusterRef  cluster,
const PixelClusterParameterEstimator cpe,
float  weight = 1.,
float  annealing = 1. 
) [inline, static]

Definition at line 66 of file TSiPixelRecHit.h.

References TSiPixelRecHit(), and TransientTrackingRecHit::weight().

00070                                                                    {
00071     return RecHitPointer( new TSiPixelRecHit( pos, err, det, cluster, cpe,weight, annealing));
00072   }

static RecHitPointer TSiPixelRecHit::build ( const GeomDet geom,
const SiPixelRecHit rh,
const PixelClusterParameterEstimator cpe,
float  weight = 1.,
float  annealing = 1. 
) [inline, static]

Definition at line 60 of file TSiPixelRecHit.h.

References TSiPixelRecHit(), and TransientTrackingRecHit::weight().

Referenced by TkTransientTrackingRecHitBuilder::build(), TkPixelMeasurementDet::buildRecHit(), and clone().

00062                                                                    {
00063   return RecHitPointer( new TSiPixelRecHit( geom, rh, cpe,weight, annealing));
00064   }

virtual bool TSiPixelRecHit::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 TSiPixelRecHit.h.

00048 {return true;}

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

Implements TransientTrackingRecHit.

Definition at line 104 of file TSiPixelRecHit.h.

References TSiPixelRecHit().

00104                                          {
00105     return new TSiPixelRecHit(*this);
00106   }

TSiPixelRecHit::RecHitPointer TSiPixelRecHit::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 7 of file TSiPixelRecHit.cc.

References build(), SiPixelRecHit::cluster(), TransientTrackingRecHit::det(), detUnit(), TransientTrackingRecHit::getAnnealingFactor(), ClusterParameterEstimator< T >::localParameters(), TrajectoryStateOnSurface::localParameters(), lv, specificHit(), theCPE, theHitData, TSiPixelRecHit(), and TransientTrackingRecHit::weight().

00008 {
00009   if (theCPE == 0){
00010     return new TSiPixelRecHit( det(), &theHitData, 0, weight(), getAnnealingFactor());
00011   }else{
00012     const SiPixelCluster& clust = *specificHit()->cluster();  
00013     PixelClusterParameterEstimator::LocalValues lv = 
00014       theCPE->localParameters( clust, *detUnit(), ts.localParameters());
00015     return TSiPixelRecHit::build( lv.first, lv.second, det(), specificHit()->cluster(), theCPE, weight(), getAnnealingFactor());
00016   }
00017 }

const PixelClusterParameterEstimator* TSiPixelRecHit::cpe (  )  const [inline]

Definition at line 58 of file TSiPixelRecHit.h.

References theCPE.

00058 {return theCPE;}

const GeomDetUnit * TSiPixelRecHit::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 19 of file TSiPixelRecHit.cc.

References TransientTrackingRecHit::det().

Referenced by clone().

00020 {
00021   return static_cast<const GeomDetUnit*>(det());
00022 }

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

Implements TrackingRecHit.

Definition at line 30 of file TSiPixelRecHit.h.

References RecHit2DLocalPos::dimension(), and theHitData.

00030 {return theHitData.dimension();}

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

Reimplemented from TrackingRecHit.

Definition at line 35 of file TSiPixelRecHit.h.

References TransientTrackingRecHit::det(), and theHitData.

00035                                                                     {
00036       HelpertRecHit2DLocalPos().getKfComponents(holder, theHitData, *det()); 
00037   }

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

Implements TransientTrackingRecHit.

Definition at line 39 of file TSiPixelRecHit.h.

References theHitData.

Referenced by recHits().

00039 {return &theHitData;};

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

Implements TrackingRecHit.

Definition at line 32 of file TSiPixelRecHit.h.

References BaseSiTrackerRecHit2DLocalPos::localPosition(), and theHitData.

00032 {return theHitData.localPosition();}

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

Implements TrackingRecHit.

Definition at line 33 of file TSiPixelRecHit.h.

References BaseSiTrackerRecHit2DLocalPos::localPositionError(), and theHitData.

00033 {return theHitData.localPositionError();}

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

Implements TrackingRecHit.

Definition at line 22 of file TSiPixelRecHit.h.

References RecHit2DLocalPos::parameters(), and theHitData.

00022 {return theHitData.parameters();}

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

Implements TrackingRecHit.

Definition at line 24 of file TSiPixelRecHit.h.

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

00024                                                      {
00025     return HelpertRecHit2DLocalPos().parError( theHitData.localPositionError(), *det()); 
00026     // return theHitData->parametersError();
00027   }

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

Implements TrackingRecHit.

Definition at line 29 of file TSiPixelRecHit.h.

References RecHit2DLocalPos::projectionMatrix(), and theHitData.

00029 {return theHitData.projectionMatrix();}

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

Non-const access to component RecHits (if any).

Implements TrackingRecHit.

Definition at line 44 of file TSiPixelRecHit.h.

References RecHit2DLocalPos::recHits(), and theHitData.

00044                                                {
00045     return theHitData.recHits();
00046   }

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

Access to component RecHits (if any).

Implements TrackingRecHit.

Definition at line 41 of file TSiPixelRecHit.h.

References hit(), and TrackingRecHit::recHits().

00041                                                            {
00042     return hit()->recHits();
00043   }

const SiPixelRecHit* TSiPixelRecHit::specificHit (  )  const [inline]

Definition at line 57 of file TSiPixelRecHit.h.

References theHitData.

Referenced by clone().

00057 {return &theHitData;};


Member Data Documentation

const PixelClusterParameterEstimator* TSiPixelRecHit::theCPE [private]

Definition at line 78 of file TSiPixelRecHit.h.

Referenced by clone(), and cpe().

SiPixelRecHit TSiPixelRecHit::theHitData [private]

Definition at line 77 of file TSiPixelRecHit.h.

Referenced by clone(), dimension(), getKfComponents(), hit(), 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:38 2009 for CMSSW by  doxygen 1.5.4