#include <SiStripMatchedRecHit2D.h>
Public Member Functions | |
virtual SiStripMatchedRecHit2D * | clone () const |
const SiStripRecHit2D * | monoHit () const |
SiStripRecHit2D * | monoHit () |
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) | |
virtual bool | sharesInput (const TrackingRecHit *other, SharedInputType what) const |
SiStripMatchedRecHit2D () | |
SiStripMatchedRecHit2D (const LocalPoint &pos, const LocalError &err, const DetId &id, const SiStripRecHit2D *rMono, const SiStripRecHit2D *rStereo) | |
SiStripRecHit2D * | stereoHit () |
const SiStripRecHit2D * | stereoHit () const |
~SiStripMatchedRecHit2D () | |
Private Attributes | |
SiStripRecHit2D | componentMono_ |
SiStripRecHit2D | componentStereo_ |
Definition at line 8 of file SiStripMatchedRecHit2D.h.
SiStripMatchedRecHit2D::SiStripMatchedRecHit2D | ( | ) | [inline] |
Definition at line 10 of file SiStripMatchedRecHit2D.h.
Referenced by clone(), and sharesInput().
SiStripMatchedRecHit2D::~SiStripMatchedRecHit2D | ( | ) | [inline] |
Definition at line 11 of file SiStripMatchedRecHit2D.h.
{}
SiStripMatchedRecHit2D::SiStripMatchedRecHit2D | ( | const LocalPoint & | pos, |
const LocalError & | err, | ||
const DetId & | id, | ||
const SiStripRecHit2D * | rMono, | ||
const SiStripRecHit2D * | rStereo | ||
) |
Definition at line 4 of file SiStripMatchedRecHit2D.cc.
: BaseSiTrackerRecHit2DLocalPos(pos, err, id), componentMono_(*rMono),componentStereo_(*rStereo){}
SiStripMatchedRecHit2D * SiStripMatchedRecHit2D::clone | ( | void | ) | const [virtual] |
Implements RecHit2DLocalPos.
Definition at line 8 of file SiStripMatchedRecHit2D.cc.
References SiStripMatchedRecHit2D().
Referenced by TkGluedMeasurementDet::HitCollectorForRecHits::add(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), and SiStripRecHitMatcher::match().
{ return new SiStripMatchedRecHit2D( * this); }
const SiStripRecHit2D* SiStripMatchedRecHit2D::monoHit | ( | ) | const [inline] |
Definition at line 15 of file SiStripMatchedRecHit2D.h.
References componentMono_.
Referenced by helper::ClusterStorer::addCluster(), SiStripQualityHotStripIdentifier::algoAnalyze(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), TrackerHitAssociator::associateMatchedRecHit(), SimpleCosmicBONSeeder::checkCharge(), TSiStripMatchedRecHit::clone(), SiStripFineDelayHit::closestCluster(), cms::clusterProduct(), helper::MuonCollectionStoreManager::clusterRefsOK(), helper::ClusterStorer::ClusterHitRecord< SiStripRecHit2D::ClusterRef >rekey(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), RoadSearchCloudMakerAlgorithm::CorrectMatchedHit(), VertexTrackCompatibilityEstimator< 5 >::estimate(), JPTJetAnalyzer::fillSiStripHitSoN(), SiStripFineDelayTLA::findtrackangle(), AlignmentTrackSelector::isOkCharge(), CalibrationTrackSelector::isOkCharge(), TrackHitFilter::keepThisHit(), HitComparator::less(), SiStripRecHitMatcher::match(), PlotRecTracks::printRecTracks(), TrackClusterRemover::process(), ShallowTrackClustersProducer::produce(), DeDxDiscriminatorProducer::produce(), ShallowGainCalibration::produce(), ClusterRemovalRefSetter::reKey(), sharesInput(), CRackTrajectoryBuilder::SortHits(), ClusterShapeTrajectoryFilter::toBeContinued(), SiStripMonitorTrack::trackStudy(), and TSiStripMatchedRecHit::transientHits().
{ return &componentMono_;}
SiStripRecHit2D* SiStripMatchedRecHit2D::monoHit | ( | ) | [inline] |
Definition at line 19 of file SiStripMatchedRecHit2D.h.
References componentMono_.
{ return &componentMono_;}
std::vector< TrackingRecHit * > SiStripMatchedRecHit2D::recHits | ( | ) | [virtual] |
Non-const access to component RecHits (if any)
Reimplemented from RecHit2DLocalPos.
Definition at line 45 of file SiStripMatchedRecHit2D.cc.
References componentMono_, and componentStereo_.
{ std::vector<TrackingRecHit*> rechits(2); rechits[0]=&componentMono_; rechits[1]=&componentStereo_; return rechits; }
std::vector< const TrackingRecHit * > SiStripMatchedRecHit2D::recHits | ( | ) | const [virtual] |
Access to component RecHits (if any)
Reimplemented from RecHit2DLocalPos.
Definition at line 37 of file SiStripMatchedRecHit2D.cc.
References componentMono_, and componentStereo_.
{ std::vector<const TrackingRecHit*> rechits(2); rechits[0]=&componentMono_; rechits[1]=&componentStereo_; return rechits; }
bool SiStripMatchedRecHit2D::sharesInput | ( | const TrackingRecHit * | other, |
SharedInputType | what | ||
) | const [virtual] |
Returns true if the two TrackingRecHits are using the same input information (like Digis, Clusters, etc), false otherwise. The second argument specifies how much sharing is needed in order to return true: the value "all" means that all inputs of the two hits must be identical; the value "some" means that at least one of the inputs is in common.
Reimplemented from TrackingRecHit.
Definition at line 14 of file SiStripMatchedRecHit2D.cc.
References TrackingRecHit::all, TrackingRecHit::geographicalId(), monoHit(), SiStripRecHit2D::sharesInput(), SiStripMatchedRecHit2D(), and stereoHit().
{ if (what==all && (geographicalId() != other->geographicalId())) return false; if ( typeid(*other)!=typeid(SiStripMatchedRecHit2D)){ if (what==all) return false; else return (monoHit()->sharesInput( other,what)|| stereoHit()->sharesInput( other,what)); } else{ const SiStripMatchedRecHit2D* otherMatched = static_cast<const SiStripMatchedRecHit2D*>(other); if ( what == all) { return (monoHit()->sharesInput( otherMatched->monoHit(),what) && stereoHit()->sharesInput( otherMatched->stereoHit(),what)); } else { return (monoHit()->sharesInput( otherMatched->monoHit(),what) || stereoHit()->sharesInput( otherMatched->stereoHit(),what)); } } }
const SiStripRecHit2D* SiStripMatchedRecHit2D::stereoHit | ( | ) | const [inline] |
Definition at line 14 of file SiStripMatchedRecHit2D.h.
References componentStereo_.
Referenced by helper::ClusterStorer::addCluster(), SiStripQualityHotStripIdentifier::algoAnalyze(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), TrackerHitAssociator::associateMatchedRecHit(), SimpleCosmicBONSeeder::checkCharge(), TSiStripMatchedRecHit::clone(), SiStripFineDelayHit::closestCluster(), helper::MuonCollectionStoreManager::clusterRefsOK(), helper::ClusterStorer::ClusterHitRecord< SiStripRecHit2D::ClusterRef >rekey(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), VertexTrackCompatibilityEstimator< 5 >::estimate(), JPTJetAnalyzer::fillSiStripHitSoN(), SiStripFineDelayTLA::findtrackangle(), AlignmentTrackSelector::isOkCharge(), CalibrationTrackSelector::isOkCharge(), TrackHitFilter::keepThisHit(), HitComparator::less(), SiStripRecHitMatcher::match(), PlotRecTracks::printRecTracks(), TrackClusterRemover::process(), ShallowTrackClustersProducer::produce(), ShallowGainCalibration::produce(), DeDxDiscriminatorProducer::produce(), ClusterRemovalRefSetter::reKey(), sharesInput(), CRackTrajectoryBuilder::SortHits(), ClusterShapeTrajectoryFilter::toBeContinued(), SiStripMonitorTrack::trackStudy(), and TSiStripMatchedRecHit::transientHits().
{ return &componentStereo_;}
SiStripRecHit2D* SiStripMatchedRecHit2D::stereoHit | ( | ) | [inline] |
Definition at line 18 of file SiStripMatchedRecHit2D.h.
References componentStereo_.
{ return &componentStereo_;}
Definition at line 31 of file SiStripMatchedRecHit2D.h.
Definition at line 31 of file SiStripMatchedRecHit2D.h.
Referenced by recHits(), and stereoHit().