#include <SiStripMatchedRecHit2D.h>
Public Types | |
typedef BaseTrackerRecHit | Base |
Public Member Functions | |
virtual SiStripMatchedRecHit2D * | clone () const |
virtual int | dimension () const |
virtual OmniClusterRef const & | firstClusterRef () const |
virtual void | getKfComponents (KfComponentsHolder &holder) const |
SiStripCluster const & | monoCluster () const |
OmniClusterRef const & | monoClusterRef () const |
OmniClusterRef & | monoClusterRef () |
SiStripRecHit2D | monoHit () const |
unsigned int | monoId () 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) | |
bool | sharesInput (TrackerSingleRecHit const &other) const |
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) | |
SiStripCluster const & | stereoCluster () const |
OmniClusterRef & | stereoClusterRef () |
OmniClusterRef const & | stereoClusterRef () const |
SiStripRecHit2D | stereoHit () const |
unsigned int | stereoId () const |
~SiStripMatchedRecHit2D () | |
Private Attributes | |
OmniClusterRef | clusterMono_ |
OmniClusterRef | clusterStereo_ |
Definition at line 6 of file SiStripMatchedRecHit2D.h.
Definition at line 8 of file SiStripMatchedRecHit2D.h.
SiStripMatchedRecHit2D::SiStripMatchedRecHit2D | ( | ) | [inline] |
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 | ||
) | [inline] |
Definition at line 13 of file SiStripMatchedRecHit2D.h.
: BaseTrackerRecHit(pos, err, id, trackerHitRTTI::match), clusterMono_(rMono->omniClusterRef()), clusterStereo_(rStereo->omniClusterRef()){}
virtual SiStripMatchedRecHit2D* SiStripMatchedRecHit2D::clone | ( | void | ) | const [inline, virtual] |
Implements TrackingRecHit.
Definition at line 42 of file SiStripMatchedRecHit2D.h.
References SiStripMatchedRecHit2D().
Referenced by TkGluedMeasurementDet::HitCollectorForRecHits::add(), and SiStripRecHitMatcher::match().
{return new SiStripMatchedRecHit2D( * this);}
virtual int SiStripMatchedRecHit2D::dimension | ( | ) | const [inline, virtual] |
virtual OmniClusterRef const& SiStripMatchedRecHit2D::firstClusterRef | ( | ) | const [inline, virtual] |
Implements BaseTrackerRecHit.
Definition at line 25 of file SiStripMatchedRecHit2D.h.
References monoClusterRef().
Referenced by sharesInput().
{ return monoClusterRef();}
virtual void SiStripMatchedRecHit2D::getKfComponents | ( | KfComponentsHolder & | holder | ) | const [inline, virtual] |
Implements BaseTrackerRecHit.
Definition at line 45 of file SiStripMatchedRecHit2D.h.
References BaseTrackerRecHit::getKfComponents2D().
{ getKfComponents2D(holder); }
SiStripCluster const& SiStripMatchedRecHit2D::monoCluster | ( | ) | const [inline] |
Definition at line 37 of file SiStripMatchedRecHit2D.h.
References monoClusterRef(), and OmniClusterRef::stripCluster().
Referenced by SiStripQualityHotStripIdentifier::algoAnalyze(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), TSiStripMatchedRecHit::clone(), PixelClusterShapeSeedComparitor::compatibleHit(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), CalibrationTrackSelector::isOkCharge(), ShallowTrackClustersProducer::produce(), ShallowGainCalibration::produce(), and TSiStripMatchedRecHit::transientHits().
{ return monoClusterRef().stripCluster(); }
OmniClusterRef& SiStripMatchedRecHit2D::monoClusterRef | ( | ) | [inline] |
Definition at line 32 of file SiStripMatchedRecHit2D.h.
References clusterMono_.
{ return clusterMono_;}
OmniClusterRef const& SiStripMatchedRecHit2D::monoClusterRef | ( | ) | const [inline] |
Definition at line 29 of file SiStripMatchedRecHit2D.h.
References clusterMono_.
Referenced by TSiStripMatchedRecHit::clone(), cms::clusterProduct(), helper::ClusterStorer::ClusterHitRecord< SiStripRecHit2D::ClusterRef >rekey(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), firstClusterRef(), HitComparator::less(), monoCluster(), monoHit(), HLTTrackClusterRemover::process(), SeedClusterRemover::process(), TrackClusterRemover::process(), ClusterRemovalRefSetter::reKey(), sharesClusters(), sharesInput(), ctfseeding::HitExtractorSTRP::skipThis(), and TSiStripMatchedRecHit::transientHits().
{ return clusterMono_;}
SiStripRecHit2D SiStripMatchedRecHit2D::monoHit | ( | ) | const [inline] |
Definition at line 19 of file SiStripMatchedRecHit2D.h.
References monoClusterRef(), and monoId().
Referenced by helper::ClusterStorer::addCluster(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), TrackerHitAssociator::associateMatchedRecHit(), SimpleCosmicBONSeeder::checkCharge(), helper::MuonCollectionStoreManager::clusterRefsOK(), RoadSearchCloudMakerAlgorithm::CorrectMatchedHit(), VertexTrackCompatibilityEstimator< 5 >::estimate(), JPTJetAnalyzer::fillSiStripHitSoN(), SiStripFineDelayTLA::findtrackangle(), AlignmentTrackSelector::isOkCharge(), PlotRecTracks::printRecTracks(), DeDxDiscriminatorProducer::produce(), ctfseeding::HitExtractorSTRP::skipThis(), CRackTrajectoryBuilder::SortHits(), ClusterShapeTrajectoryFilter::toBeContinued(), SiStripMonitorTrack::trackStudy(), and TSiStripMatchedRecHit::transientHits().
{ return SiStripRecHit2D(monoId(),monoClusterRef());}
unsigned int SiStripMatchedRecHit2D::monoId | ( | ) | const [inline] |
Definition at line 22 of file SiStripMatchedRecHit2D.h.
References TrackingRecHit::rawId().
Referenced by PixelClusterShapeSeedComparitor::compatibleHit(), monoHit(), DeDxDiscriminatorProducer::produce(), and ShallowGainCalibration::produce().
{ return rawId()+2;}
std::vector< const TrackingRecHit * > SiStripMatchedRecHit2D::recHits | ( | ) | const [virtual] |
Access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 34 of file SiStripMatchedRecHit2D.cc.
References HI_PhotonSkim_cff::rechits.
std::vector< TrackingRecHit * > SiStripMatchedRecHit2D::recHits | ( | ) | [virtual] |
Non-const access to component RecHits (if any)
Implements TrackingRecHit.
Definition at line 40 of file SiStripMatchedRecHit2D.cc.
References HI_PhotonSkim_cff::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 6 of file SiStripMatchedRecHit2D.cc.
References TrackingRecHit::all, firstClusterRef(), TrackingRecHit::geographicalId(), trackerHitRTTI::isMatched(), monoClusterRef(), BaseTrackerRecHit::sameDetModule(), sharesClusters(), and stereoClusterRef().
Referenced by TrackerSingleRecHit::sharesInput().
{ if (what==all && (geographicalId() != other->geographicalId())) return false; if (!sameDetModule(*other)) return false; if (trackerHitRTTI::isMatched(*other) ) { const SiStripMatchedRecHit2D* otherMatched = static_cast<const SiStripMatchedRecHit2D*>(other); return sharesClusters(*this, *otherMatched,what); } if (what==all) return false; // what about multi??? auto const & otherClus = reinterpret_cast<const BaseTrackerRecHit *>(other)->firstClusterRef(); return (otherClus==stereoClusterRef()) || (otherClus==monoClusterRef()); }
bool SiStripMatchedRecHit2D::sharesInput | ( | TrackerSingleRecHit const & | other | ) | const |
Definition at line 28 of file SiStripMatchedRecHit2D.cc.
References monoClusterRef(), TrackerSingleRecHit::sameCluster(), and stereoClusterRef().
{ return other.sameCluster(monoClusterRef()) || other.sameCluster(stereoClusterRef()); }
SiStripCluster const& SiStripMatchedRecHit2D::stereoCluster | ( | ) | const [inline] |
Definition at line 34 of file SiStripMatchedRecHit2D.h.
References stereoClusterRef(), and OmniClusterRef::stripCluster().
Referenced by SiStripQualityHotStripIdentifier::algoAnalyze(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripGainFromData::algoAnalyze(), TSiStripMatchedRecHit::clone(), PixelClusterShapeSeedComparitor::compatibleHit(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), CalibrationTrackSelector::isOkCharge(), ShallowTrackClustersProducer::produce(), ShallowGainCalibration::produce(), and TSiStripMatchedRecHit::transientHits().
{ return stereoClusterRef().stripCluster(); }
OmniClusterRef const& SiStripMatchedRecHit2D::stereoClusterRef | ( | ) | const [inline] |
Definition at line 28 of file SiStripMatchedRecHit2D.h.
References clusterStereo_.
Referenced by TSiStripMatchedRecHit::clone(), helper::ClusterStorer::ClusterHitRecord< SiStripRecHit2D::ClusterRef >rekey(), TSiStripMatchedRecHit::ComputeCoarseLocalPosition(), HitComparator::less(), HLTTrackClusterRemover::process(), SeedClusterRemover::process(), TrackClusterRemover::process(), ClusterRemovalRefSetter::reKey(), sharesClusters(), sharesInput(), ctfseeding::HitExtractorSTRP::skipThis(), stereoCluster(), stereoHit(), and TSiStripMatchedRecHit::transientHits().
{ return clusterStereo_;}
OmniClusterRef& SiStripMatchedRecHit2D::stereoClusterRef | ( | ) | [inline] |
Definition at line 31 of file SiStripMatchedRecHit2D.h.
References clusterStereo_.
{ return clusterStereo_;}
SiStripRecHit2D SiStripMatchedRecHit2D::stereoHit | ( | ) | const [inline] |
Definition at line 18 of file SiStripMatchedRecHit2D.h.
References stereoClusterRef(), and stereoId().
Referenced by helper::ClusterStorer::addCluster(), SiStripLAProfileBooker::analyze(), SiStripTrackingRecHitsValid::analyze(), TrackerHitAssociator::associateMatchedRecHit(), SimpleCosmicBONSeeder::checkCharge(), helper::MuonCollectionStoreManager::clusterRefsOK(), VertexTrackCompatibilityEstimator< 5 >::estimate(), JPTJetAnalyzer::fillSiStripHitSoN(), SiStripFineDelayTLA::findtrackangle(), AlignmentTrackSelector::isOkCharge(), PlotRecTracks::printRecTracks(), DeDxDiscriminatorProducer::produce(), ctfseeding::HitExtractorSTRP::skipThis(), CRackTrajectoryBuilder::SortHits(), ClusterShapeTrajectoryFilter::toBeContinued(), SiStripMonitorTrack::trackStudy(), and TSiStripMatchedRecHit::transientHits().
{ return SiStripRecHit2D(stereoId(),stereoClusterRef()) ;}
unsigned int SiStripMatchedRecHit2D::stereoId | ( | ) | const [inline] |
Definition at line 21 of file SiStripMatchedRecHit2D.h.
References TrackingRecHit::rawId().
Referenced by PixelClusterShapeSeedComparitor::compatibleHit(), DeDxDiscriminatorProducer::produce(), ShallowGainCalibration::produce(), and stereoHit().
{ return rawId()+1;}
Definition at line 58 of file SiStripMatchedRecHit2D.h.
Referenced by monoClusterRef().
Definition at line 58 of file SiStripMatchedRecHit2D.h.
Referenced by stereoClusterRef().