![]() |
![]() |
#include <DataFormats/TrackerRecHit2D/interface/BaseSiTrackerRecHit2DLocalPos.h>
Public Member Functions | |
BaseSiTrackerRecHit2DLocalPos (const LocalPoint &p, const LocalError &e, DetId id) | |
BaseSiTrackerRecHit2DLocalPos () | |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
bool | hasPositionAndError () const |
virtual LocalPoint | localPosition () const |
virtual LocalError | localPositionError () const |
~BaseSiTrackerRecHit2DLocalPos () | |
Private Attributes | |
LocalError | err_ |
LocalPoint | pos_ |
Definition at line 8 of file BaseSiTrackerRecHit2DLocalPos.h.
BaseSiTrackerRecHit2DLocalPos::BaseSiTrackerRecHit2DLocalPos | ( | ) | [inline] |
BaseSiTrackerRecHit2DLocalPos::~BaseSiTrackerRecHit2DLocalPos | ( | ) | [inline] |
BaseSiTrackerRecHit2DLocalPos::BaseSiTrackerRecHit2DLocalPos | ( | const LocalPoint & | p, | |
const LocalError & | e, | |||
DetId | id | |||
) | [inline] |
Definition at line 15 of file BaseSiTrackerRecHit2DLocalPos.h.
00016 : RecHit2DLocalPos(id), pos_(p), err_(e){}
void BaseSiTrackerRecHit2DLocalPos::getKfComponents | ( | KfComponentsHolder & | holder | ) | const [virtual] |
Reimplemented from TrackingRecHit.
Definition at line 23 of file BaseSiTrackerRecHit2DLocalPos.cc.
References err_, KfComponentsHolder::errors(), Exception, hasPositionAndError(), KfComponentsHolder::measuredErrors(), KfComponentsHolder::measuredParams(), KfComponentsHolder::params(), pars, pos_, KfComponentsHolder::projection(), KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().
00024 { 00025 if (!hasPositionAndError()) throw cms::Exception("BaseSiTrackerRecHit2DLocalPos") << 00026 "Trying to access the KfComponents of a RecHit that was read from disk, but since CMSSW_2_1_X local positions are transient.\n"; 00027 //std::cout << "Call to KfComponentsHolder::genericFill should be optimized here " << std::endl; 00028 AlgebraicVector2 & pars = holder.params<2>(); 00029 pars[0] = pos_.x(); 00030 pars[1] = pos_.y(); 00031 00032 AlgebraicSymMatrix22 & errs = holder.errors<2>(); 00033 errs(0,0) = err_.xx(); 00034 errs(0,1) = err_.xy(); 00035 errs(1,1) = err_.yy(); 00036 00037 00038 AlgebraicMatrix25 & proj = holder.projection<2>(); 00039 proj(0,3) = 1; 00040 proj(1,4) = 1; 00041 00042 holder.measuredParams<2>() = AlgebraicVector2( & holder.tsosLocalParameters().At(3), 2 ); 00043 holder.measuredErrors<2>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix22>( 3, 3 ); 00044 00045 //std::cout << "======== MYSELF ==========" << std::endl; 00046 //holder.dump<2>(); 00047 //std::cout << "======== GENERIC ==========" << std::endl; 00048 //holder.genericFill(*this); 00049 //holder.dump<2>(); 00050 }
bool BaseSiTrackerRecHit2DLocalPos::hasPositionAndError | ( | ) | const |
Definition at line 4 of file BaseSiTrackerRecHit2DLocalPos.cc.
References err_, pos_, PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), LocalError::yy(), and PV3DBase< T, PVType, FrameType >::z().
Referenced by getKfComponents(), localPosition(), and localPositionError().
00004 { 00005 return (err_.xx() != 0) || (err_.yy() != 0) || (err_.xy() != 0) || 00006 (pos_.x() != 0) || (pos_.y() != 0) || (pos_.z() != 0); 00007 }
LocalPoint BaseSiTrackerRecHit2DLocalPos::localPosition | ( | ) | const [virtual] |
Implements RecHit2DLocalPos.
Definition at line 9 of file BaseSiTrackerRecHit2DLocalPos.cc.
References Exception, hasPositionAndError(), and pos_.
Referenced by SiPixelLorentzAngle::analyze(), SiStripRecHitsValid::analyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), SiStripFineDelayHit::closestCluster(), RoadSearchCloudMakerAlgorithm::CorrectMatchedHit(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), RoadSearchCloudMakerAlgorithm::FillPixRecHitsIntoCloud(), RoadSearchCloudMakerAlgorithm::FillRecHitsIntoCloudGeneral(), GlobalRecHitsProducer::fillTrk(), GlobalRecHitsAnalyzer::fillTrk(), ElectronSiStripSeedGenerator::findSeedsFromCluster(), SiStripFineDelayTLA::findtrackangle(), CRackTrajectoryBuilder::isDifferentStripReHit2D(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), TSiStripRecHit2DLocalPos::localPosition(), TSiPixelRecHit::localPosition(), TSiTrackerMultiRecHit::localPosition(), SiStripRecHitMatcher::match(), SiStripElectronAlgo::projectPhiBand(), SiStripMonitorTrack::RecHitInfo(), SiStripMonitorTrackEfficiency::RecHitInfo(), cms::ClusterAnalysis::RecHitInfo(), and VisCuTrackerRecHit::setEvent().
00009 { 00010 if (!hasPositionAndError()) throw cms::Exception("BaseSiTrackerRecHit2DLocalPos") << 00011 "Trying to access the localPosition of a RecHit that was read from disk, but since CMSSW_2_1_X localPosition is transient.\n"; 00012 return pos_; 00013 }
LocalError BaseSiTrackerRecHit2DLocalPos::localPositionError | ( | ) | const [virtual] |
Implements RecHit2DLocalPos.
Definition at line 15 of file BaseSiTrackerRecHit2DLocalPos.cc.
References err_, Exception, and hasPositionAndError().
Referenced by SiStripElectronAnalyzer::analyze(), SiStripRecHitsValid::analyze(), SiStripTrackingRecHitsValid::analyze(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), TSiTrackerMultiRecHit::localPositionError(), TSiPixelRecHit::localPositionError(), TSiStripRecHit2DLocalPos::localPositionError(), SiStripRecHitMatcher::match(), TSiStripRecHit2DLocalPos::parametersError(), TSiTrackerMultiRecHit::parametersError(), and TSiPixelRecHit::parametersError().
00015 { 00016 if (!hasPositionAndError()) throw cms::Exception("BaseSiTrackerRecHit2DLocalPos") << 00017 "Trying to access the localPositionError of a RecHit that was read from disk, but since CMSSW_2_1_X localPositionError is transient.\n"; 00018 return err_; 00019 }
Definition at line 30 of file BaseSiTrackerRecHit2DLocalPos.h.
Referenced by getKfComponents(), hasPositionAndError(), and localPositionError().
Definition at line 29 of file BaseSiTrackerRecHit2DLocalPos.h.
Referenced by getKfComponents(), hasPositionAndError(), and localPosition().