#include <TSiPixelRecHit.h>
Public Types | |
typedef SiPixelRecHit::ClusterRef | clusterRef |
Public Member Functions | |
virtual bool | canImproveWithTrack () const |
virtual RecHitPointer | clone (const TrajectoryStateOnSurface &ts) const |
virtual float | clusterProbability () const |
Probability of the compatibility of the track with the pixel cluster shape. | |
const PixelClusterParameterEstimator * | cpe () const |
virtual const GeomDetUnit * | detUnit () const |
virtual int | dimension () const |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
virtual const TrackingRecHit * | hit () 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 SiPixelRecHit * | specificHit () const |
virtual | ~TSiPixelRecHit () |
Static Public Member Functions | |
static RecHitPointer | build (const GeomDet *geom, const SiPixelRecHit *rh, const PixelClusterParameterEstimator *cpe, bool computeCoarseLocalPosition=false) |
static RecHitPointer | build (const LocalPoint &pos, const LocalError &err, const GeomDet *det, const clusterRef &cluster, const PixelClusterParameterEstimator *cpe) |
Private Member Functions | |
virtual TSiPixelRecHit * | clone () const |
TSiPixelRecHit (const GeomDet *geom, const SiPixelRecHit *rh, const PixelClusterParameterEstimator *cpe, bool computeCoarseLocalPosition) | |
TSiPixelRecHit (const LocalPoint &pos, const LocalError &err, const GeomDet *det, const clusterRef &clust, const PixelClusterParameterEstimator *cpe) | |
Private Attributes | |
unsigned int | theClusterProbComputationFlag |
const PixelClusterParameterEstimator * | theCPE |
SiPixelRecHit | theHitData |
Definition at line 14 of file TSiPixelRecHit.h.
Definition at line 17 of file TSiPixelRecHit.h.
virtual TSiPixelRecHit::~TSiPixelRecHit | ( | ) | [inline, virtual] |
Definition at line 20 of file TSiPixelRecHit.h.
{}
TSiPixelRecHit::TSiPixelRecHit | ( | const GeomDet * | geom, |
const SiPixelRecHit * | rh, | ||
const PixelClusterParameterEstimator * | cpe, | ||
bool | computeCoarseLocalPosition | ||
) | [private] |
This private constructor copies the TrackingRecHit. It should be used when the TrackingRecHit exist already in some collection.
Definition at line 28 of file TSiPixelRecHit.cc.
References SiPixelRecHit::cluster(), PixelClusterParameterEstimator::clusterProbComputationFlag(), GeomDet::geographicalId(), relativeConstraints::geom, BaseTrackerRecHit::hasPositionAndError(), ClusterParameterEstimator< T >::localParameters(), LogDebug, PixelClusterParameterEstimator::rawQualityWord(), SiPixelRecHit::setRawQualityWord(), theClusterProbComputationFlag, theCPE, and theHitData.
Referenced by build(), and clone().
: TransientTrackingRecHit(geom, *rh), theCPE(cpe), theHitData(*rh) { if (! (rh->hasPositionAndError() || !computeCoarseLocalPosition)) { const GeomDetUnit* gdu = dynamic_cast<const GeomDetUnit*>(geom); if (gdu){ PixelClusterParameterEstimator::LocalValues lval= theCPE->localParameters(*rh->cluster(), *gdu); LogDebug("TSiPixelRecHit")<<"calculating coarse position/error."; theHitData = SiPixelRecHit(lval.first, lval.second,geom->geographicalId(),rh->cluster()); }else{ edm::LogError("TSiPixelRecHit") << " geomdet does not cast into geomdet unit. cannot create pixel local parameters."; } } // Additionally, fill the SiPixeRecHitQuality from the PixelCPE. theHitData.setRawQualityWord( cpe->rawQualityWord() ); theClusterProbComputationFlag = cpe->clusterProbComputationFlag(); }
TSiPixelRecHit::TSiPixelRecHit | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const GeomDet * | det, | ||
const clusterRef & | clust, | ||
const PixelClusterParameterEstimator * | cpe | ||
) | [private] |
Another private constructor. It creates the TrackingRecHit internally, avoiding redundent cloning.
Definition at line 54 of file TSiPixelRecHit.cc.
References PixelClusterParameterEstimator::clusterProbComputationFlag(), PixelClusterParameterEstimator::rawQualityWord(), SiPixelRecHit::setRawQualityWord(), theClusterProbComputationFlag, and theHitData.
: TransientTrackingRecHit(det), theCPE(cpe), theHitData( pos, err, det->geographicalId(), clust) { // Additionally, fill the SiPixeRecHitQuality from the PixelCPE. theHitData.setRawQualityWord( cpe->rawQualityWord() ); theClusterProbComputationFlag = cpe->clusterProbComputationFlag(); }
static RecHitPointer TSiPixelRecHit::build | ( | const GeomDet * | geom, |
const SiPixelRecHit * | rh, | ||
const PixelClusterParameterEstimator * | cpe, | ||
bool | computeCoarseLocalPosition = false |
||
) | [inline, static] |
Definition at line 60 of file TSiPixelRecHit.h.
References TSiPixelRecHit().
Referenced by clone(), and TkTransientTrackingRecHitBuilder::oldbuild().
{ return RecHitPointer( new TSiPixelRecHit( geom, rh, cpe, computeCoarseLocalPosition)); }
static RecHitPointer TSiPixelRecHit::build | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const GeomDet * | det, | ||
const clusterRef & | cluster, | ||
const PixelClusterParameterEstimator * | cpe | ||
) | [inline, static] |
Definition at line 66 of file TSiPixelRecHit.h.
References TSiPixelRecHit().
{ return RecHitPointer( new TSiPixelRecHit( pos, err, det, cluster, cpe)); }
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.
{return true;}
virtual TSiPixelRecHit* TSiPixelRecHit::clone | ( | void | ) | const [inline, private, virtual] |
Implements TransientTrackingRecHit.
Definition at line 103 of file TSiPixelRecHit.h.
References TSiPixelRecHit().
{ return new TSiPixelRecHit(*this); }
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(), ClusterParameterEstimator< T >::localParameters(), specificHit(), theCPE, theHitData, and TSiPixelRecHit().
{ if (theCPE == 0){ return new TSiPixelRecHit( det(), &theHitData, 0,false); }else{ const SiPixelCluster& clust = *specificHit()->cluster(); PixelClusterParameterEstimator::LocalValues lv = theCPE->localParameters( clust, *detUnit(), ts); return TSiPixelRecHit::build( lv.first, lv.second, det(), specificHit()->cluster(), theCPE); } }
virtual float TSiPixelRecHit::clusterProbability | ( | ) | const [inline, virtual] |
Probability of the compatibility of the track with the pixel cluster shape.
Reimplemented from TransientTrackingRecHit.
Definition at line 75 of file TSiPixelRecHit.h.
References SiPixelRecHit::clusterProbability(), theClusterProbComputationFlag, and theHitData.
{ return theHitData.clusterProbability( theClusterProbComputationFlag ); }
const PixelClusterParameterEstimator* TSiPixelRecHit::cpe | ( | ) | const [inline] |
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().
{ return static_cast<const GeomDetUnit*>(det()); }
virtual int TSiPixelRecHit::dimension | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 30 of file TSiPixelRecHit.h.
References SiPixelRecHit::dimension(), and theHitData.
{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(), HelpertRecHit2DLocalPos::getKfComponents(), and theHitData.
{ HelpertRecHit2DLocalPos().getKfComponents(holder, theHitData, *det()); }
virtual const TrackingRecHit* TSiPixelRecHit::hit | ( | void | ) | const [inline, virtual] |
Implements TransientTrackingRecHit.
Definition at line 39 of file TSiPixelRecHit.h.
References theHitData.
Referenced by recHits().
{return &theHitData;};
virtual LocalPoint TSiPixelRecHit::localPosition | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 32 of file TSiPixelRecHit.h.
References BaseTrackerRecHit::localPosition(), and theHitData.
Referenced by TrackerDpgAnalysis::insertMeasurement().
{return theHitData.localPosition();}
virtual LocalError TSiPixelRecHit::localPositionError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 33 of file TSiPixelRecHit.h.
References BaseTrackerRecHit::localPositionError(), and theHitData.
{return theHitData.localPositionError();}
virtual AlgebraicVector TSiPixelRecHit::parameters | ( | void | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 22 of file TSiPixelRecHit.h.
References BaseTrackerRecHit::parameters(), and theHitData.
{return theHitData.parameters();}
virtual AlgebraicSymMatrix TSiPixelRecHit::parametersError | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 24 of file TSiPixelRecHit.h.
References TransientTrackingRecHit::det(), BaseTrackerRecHit::localPositionError(), HelpertRecHit2DLocalPos::parError(), and theHitData.
{ return HelpertRecHit2DLocalPos().parError( theHitData.localPositionError(), *det()); // return theHitData->parametersError(); }
virtual AlgebraicMatrix TSiPixelRecHit::projectionMatrix | ( | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 29 of file TSiPixelRecHit.h.
References BaseTrackerRecHit::projectionMatrix(), and theHitData.
{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 TrackerSingleRecHit::recHits(), and theHitData.
{ return theHitData.recHits(); }
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().
const SiPixelRecHit* TSiPixelRecHit::specificHit | ( | ) | const [inline] |
Definition at line 57 of file TSiPixelRecHit.h.
References theHitData.
Referenced by clone(), and TkAlCaOverlapTagger::produce().
{return &theHitData;};
unsigned int TSiPixelRecHit::theClusterProbComputationFlag [private] |
Definition at line 84 of file TSiPixelRecHit.h.
Referenced by clusterProbability(), and TSiPixelRecHit().
const PixelClusterParameterEstimator* TSiPixelRecHit::theCPE [private] |
Definition at line 82 of file TSiPixelRecHit.h.
Referenced by clone(), cpe(), and TSiPixelRecHit().
SiPixelRecHit TSiPixelRecHit::theHitData [private] |
Definition at line 83 of file TSiPixelRecHit.h.
Referenced by clone(), clusterProbability(), dimension(), getKfComponents(), hit(), localPosition(), localPositionError(), parameters(), parametersError(), projectionMatrix(), recHits(), specificHit(), and TSiPixelRecHit().