CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Types | Public Member Functions | Static Public Attributes | Protected Member Functions | Private Attributes | Friends
TrackingRecHit Class Referenceabstract

#include <TrackingRecHit.h>

Inheritance diagram for TrackingRecHit:
BaseTrackerRecHit GCC11_FINAL RecHit1D RecHit2DLocalPos RecSegment TransientTrackingRecHit GCC11_FINAL ProjectedSiStripRecHit2D SiTrackerMultiRecHit TrackerSingleRecHit DTRecHit1D DTRecHit1DPair DTSLRecCluster BaseSiTrackerRecHit2DLocalPos CSCRecHit2D GSSiTrackerRecHit2DLocalPos RPCRecHit SiStripLaserRecHit2D CSCSegment DTRecSegment2D DTRecSegment4D BeamSpotTransientTrackingRecHit GCC11_FINAL GCC11_FINAL GCC11_FINAL GCC11_FINAL GCC11_FINAL GCC11_FINAL GCC11_FINAL GenericTransientTrackingRecHit KFBasedPixelFitter::MyBeamSpotHit TransientTrackingRecHitByValue< RecHit > TransientTrackingRecHitByValue< InvalidTrackingRecHit >

Public Types

typedef unsigned int id_type
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type { valid = 0, missing = 1, inactive = 2, bad = 3 }
 

Public Member Functions

virtual TrackingRecHitclone () const =0
 
virtual int dimension () const =0
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
bool isValid () const
 
virtual LocalPoint localPosition () const =0
 
virtual LocalError localPositionError () const =0
 
virtual AlgebraicVector parameters () const =0
 
virtual AlgebraicSymMatrix parametersError () const =0
 
virtual AlgebraicMatrix projectionMatrix () const =0
 
id_type rawId () const
 
virtual std::vector< const
TrackingRecHit * > 
recHits () const =0
 Access to component RecHits (if any) More...
 
virtual std::vector
< TrackingRecHit * > 
recHits ()=0
 Non-const access to component RecHits (if any) More...
 
virtual void recHitsV (std::vector< const TrackingRecHit * > &) const
 
virtual void recHitsV (std::vector< TrackingRecHit * > &)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
Type type () const
 
virtual float weight () const
 
virtual ~TrackingRecHit ()
 

Static Public Attributes

static const int rttiShift = 24
 
static const int typeMask = 0xf
 

Protected Member Functions

void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Private Attributes

id_type m_id
 
unsigned int m_status
 

Friends

class MuonTransientTrackingRecHit
 

Detailed Description

Definition at line 11 of file TrackingRecHit.h.

Member Typedef Documentation

typedef unsigned int TrackingRecHit::id_type

Definition at line 16 of file TrackingRecHit.h.

Member Enumeration Documentation

definition of equality via shared input

Enumerator
all 
some 

Definition at line 30 of file TrackingRecHit.h.

Type of hits: valid = valid hit missing = detector is good, but no rec hit found inactive = detector is off, so there was no hope bad = there were many bad strips within the ellipse (in Tracker) = hit is compatible with the trajectory, but chi2 is too large (in Muon System)

Enumerator
valid 
missing 
inactive 
bad 

Definition at line 25 of file TrackingRecHit.h.

Constructor & Destructor Documentation

TrackingRecHit::TrackingRecHit ( DetId  id,
Type  type = valid 
)
inlineexplicit

Definition at line 32 of file TrackingRecHit.h.

32 : m_id(id), m_status(type) {}
type
Definition: HCALResponse.h:22
unsigned int m_status
TrackingRecHit::TrackingRecHit ( id_type  id = 0,
Type  type = valid 
)
inlineexplicit

Definition at line 33 of file TrackingRecHit.h.

33 : m_id(id), m_status(type) {}
type
Definition: HCALResponse.h:22
unsigned int m_status
TrackingRecHit::TrackingRecHit ( DetId  id,
unsigned int  rt,
Type  type = valid 
)
inline

Definition at line 35 of file TrackingRecHit.h.

35 : m_id(id), m_status((rt<< rttiShift)|int(type)) {}
type
Definition: HCALResponse.h:22
static const int rttiShift
unsigned int m_status
virtual TrackingRecHit::~TrackingRecHit ( )
inlinevirtual

Definition at line 38 of file TrackingRecHit.h.

38 {}

Member Function Documentation

virtual TrackingRecHit* TrackingRecHit::clone ( ) const
pure virtual
virtual int TrackingRecHit::dimension ( ) const
pure virtual
DetId TrackingRecHit::geographicalId ( ) const
inline

Definition at line 62 of file TrackingRecHit.h.

References m_id.

Referenced by CRackTrajectoryBuilder::AddHit(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), MuonCSCChamberResidual::addResidual(), fireworks::addSiStripClusters(), TrackDetectorAssociator::addTAMuonSegmentMatch(), CSCPairResidualsConstraint::addTrack(), AlignmentStats::analyze(), MuonTruth::analyze(), SiStripMonitorMuonHLT::analyzeOnTrackClusters(), reco::HitPattern::appendHit(), TrackCleaner::areSame(), SegmentToTrackAssociator::associate(), MuonTruth::associateCSCHitId(), TrackerHitAssociator::associateHit(), MuonTruth::associateHitId(), TrackerHitAssociator::associateHitId(), TrackingRecHitLessFromGlobalPosition::barrelForwardLess(), SortHitsByGlobalPosition::barrelForwardLess(), SortHitPointersByGlobalPosition::barrelForwardLess(), MuonTransientTrackingRecHitBuilder::build(), FWTrackTrackingRecHitProxyBuilder::build(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedForPhotonConversion1Leg::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeed(), reco::helper::JetMuonHitsIDHelper::calculate(), CSCPairResidualsConstraint::calculatePhi(), DTSegmentUpdator::calculateT0corr(), DTChamberRecSegment2D::chamberId(), DTRecSegment4D::chamberId(), SimpleCosmicBONSeeder::checkCharge(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), AlignmentTrackSelector::checkPrescaledHits(), reco::modules::TrackerTrackHitFilter::checkPXLCorrClustCharge(), RectangularEtaPhiTrackingRegion::checkRZOld(), TrajectoryCleanerBySharedHits::clean(), cms::clusterProduct(), helper::MuonCollectionStoreManager::clusterRefsOK(), PixelClusterShapeSeedComparitor::compatibleHit(), SeedFromNuclearInteraction::construct(), CSCRecHit2D::cscDetId(), CSCSegment::cscDetId(), MuonAlignmentAnalyzer::doMatching(), MuonAlignment::doMatching(), DTRecSegment4D::DTRecSegment4D(), reco::HitPattern::encode(), RecHitComparatorByPosition::equals(), EnergyLossPlain::estimate(), MuonChi2MeasurementEstimator::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), TkAlCaRecoMonitor::fillHitmaps(), JPTJetAnalyzer::fillSiStripHitSoN(), DTTimingExtractor::fillTiming(), DynamicTruncation::filter(), DTSegmentUpdator::fit(), KFTrajectoryFitter::fit(), PixelTripletLowPtGenerator::getGlobalPosition(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), MuonAssociatorByHits::getMatchedIds(), TrackAssociatorByHits::getMatchedIds(), PlotRecTracks::getPixelInfo(), PlotRecTracks::getStripInfo(), SeedFromProtoTrack::init(), TrackerRecHit::init(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectoryFromTriplet(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), SortHitsByGlobalPosition::insideOutLess(), SortHitPointersByGlobalPosition::insideOutLess(), Trajectory::isBad(), MuonTransientTrackingRecHit::isCSC(), MuonTransientTrackingRecHit::isDT(), CalibrationTrackSelector::isHit2D(), AlignmentTrackSelector::isHit2D(), PrimaryVertexValidation::isHit2D(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), AlignmentTrackSelector::isOkCharge(), MuonTransientTrackingRecHit::isRPC(), RPCSeedOverlapper::isShareHit(), Trajectory::lost(), TempTrajectory::lost(), TrackClusterSplitter::markClusters(), GSRecHitMatcher::match(), MuonSegmentMatcher::matchDT(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonSeedCleaner::NChi2OfSegment(), MuonSeedCleaner::NRecHitsFromSegment(), RecHitComparatorByPosition::operator()(), EqualsBySharesInput::operator()(), CompareHitPairsY::operator()(), HitComparatorByRadius::operator()(), HashByDetId::operator()(), TrackingRecHitLess::operator()(), OuterHitCompatibility::operator()(), CompareHitY::operator()(), CompareDetY_plus::operator()(), CompareHitY_plus::operator()(), HitComparator::operator()(), CompareDetY_minus::operator()(), SortHitsByY::operator()(), SortHitPointersByY::operator()(), operator<(), RPCRecHit::operator==(), PlotRecTracks::printRecTracks(), HLTTrackClusterRemover::process(), TrackClusterRemover::process(), SeedClusterRemover::process(), AlignmentPrescaler::produce(), TrajectorySeedProducer::produce(), TrackCandidateProducer::produce(), TkAlCaOverlapTagger::produce(), cms::TrackListMerger::produce(), cms::SimpleTrackListMerger::produce(), AlignmentMuonHIPTrajectorySelector::produce(), TrackClusterSplitter::produce(), cms::CosmicTrackFinder::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), reco::modules::TrackerTrackHitFilter::produceFromTrajectory(), GSRecHitMatcher::projectOnly(), recHitDet(), PixelTrackCleanerBySharedHits::recHitsAreEqual(), DTSegmentUpdator::rejectBadHits(), ClusterRemovalRefSetter::reKey(), helper::ClusterStorer::ClusterHitRecord< ClusterRefType >::rekey(), KFBasedPixelFitter::run(), TrackInfoProducerAlgorithm::run(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), RoadSearchCloudMakerAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), SeedFromGenericPairOrTriplet::seedFromPair(), SeedFromGenericPairOrTriplet::seedFromTriplet(), SiTrackerMultiRecHit::sharesInput(), SiTrackerGSMatchedRecHit2D::sharesInput(), CSCRecHit2D::sharesInput(), StartingLayerFinder::startingLayers(), DTSLRecSegment2D::superLayerId(), FastTSGFromPropagation::trackerSeeds(), SiStripMonitorTrack::trackStudy(), and DTSegmentUpdator::update().

62 {return m_id;}
void TrackingRecHit::getKfComponents ( KfComponentsHolder holder) const
virtual

Reimplemented in BaseTrackerRecHit, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, SiTrackerMultiRecHit, BaseSiTrackerRecHit2DLocalPos, GSSiTrackerRecHit2DLocalPos, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, ProjectedSiStripRecHit2D, GCC11_FINAL, and GCC11_FINAL.

Definition at line 27 of file TrackingRecHit.cc.

References KfComponentsHolder::genericFill().

Referenced by HelpertRecHit2DLocalPos::getKfComponents().

27  {
28  holder.genericFill(*this);
29 }
void genericFill(const TrackingRecHit &hit)
Fill in datamembers from a generic TrackingRecHit using the CLHEP matrices.
unsigned int TrackingRecHit::getRTTI ( ) const
inline

Definition at line 77 of file TrackingRecHit.h.

References m_status, and rttiShift.

Referenced by trackerHitRTTI::rtti().

77 { return m_status >> rttiShift;}
static const int rttiShift
unsigned int m_status
Type TrackingRecHit::getType ( ) const
inline
virtual bool TrackingRecHit::hasPositionAndError ( ) const
inlinevirtual

to be redefined by daughter class

Reimplemented in BaseTrackerRecHit, and BaseSiTrackerRecHit2DLocalPos.

Definition at line 69 of file TrackingRecHit.h.

69 {return true;};
bool TrackingRecHit::isValid ( void  ) const
inline

Definition at line 75 of file TrackingRecHit.h.

References getType(), and valid.

Referenced by fireworks::addSiStripClusters(), SiStripQualityHotStripIdentifier::algoAnalyze(), AlignmentStats::analyze(), GroupedCkfTrajectoryBuilder::backwardFit(), FWTrackTrackingRecHitProxyBuilder::build(), reco::modules::TrackerTrackHitFilter::checkHit(), AlignmentTrackSelector::checkPrescaledHits(), TrajectoryCleanerMerger::clean(), TrajectoryCleanerBySharedHits::clean(), NuclearVertexBuilder::cleanTrackCollection(), helper::MuonCollectionStoreManager::clusterRefsOK(), RecHitComparatorByPosition::equals(), cms::HICSeedMeasurementEstimator::estimate(), MRHChi2MeasurementEstimator::estimate(), EnergyLossPlain::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), KFTrajectoryFitter::fit(), NuclearTester::fwdEstimate(), MuonAssociatorByHits::getMatchedIds(), TrackAssociatorByHits::getMatchedIds(), Trajectory::isBad(), AlignmentTrackSelector::isHit2D(), AlignmentTrackSelector::isOkCharge(), Trajectory::lost(), TempTrajectory::lost(), MuonResidualsFromTrack::MuonResidualsFromTrack(), ConversionHitChecker::nSharedHits(), PlotRecTracks::printRecTracks(), helper::MuonCollectionStoreManager::processMuon(), helper::TrackCollectionStoreManager::processTrack(), PFConversionProducer::produce(), AlignmentPrescaler::produce(), HLTTrackClusterRemover::produce(), TrackClusterRemover::produce(), TkAlCaOverlapTagger::produce(), ConversionTrackMerger::produce(), cms::TrackListMerger::produce(), cms::SimpleTrackListMerger::produce(), AlignmentMuonHIPTrajectorySelector::produce(), TrackClusterSplitter::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), ClusterRemovalRefSetter::reKey(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), reco::modules::MultiTrackSelector::select(), SiTrackerGSMatchedRecHit2D::sharesInput(), and ClusterShapeTrajectoryFilter::toBeContinued().

75 {return getType()==valid;}
Type getType() const
virtual LocalPoint TrackingRecHit::localPosition ( ) const
pure virtual

Implemented in DTRecSegment2D, DTSLRecCluster, DTRecHit1D, DTRecSegment4D, RPCRecHit, RecHit1D, CSCRecHit2D, DTRecHit1DPair, BaseTrackerRecHit, BeamSpotTransientTrackingRecHit, KFBasedPixelFitter::MyBeamSpotHit, GCC11_FINAL, CSCSegment, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, RecHit2DLocalPos, GCC11_FINAL, GenericTransientTrackingRecHit, SiStripLaserRecHit2D, BaseSiTrackerRecHit2DLocalPos, GSSiTrackerRecHit2DLocalPos, TransientTrackingRecHitByValue< RecHit >, and TransientTrackingRecHitByValue< InvalidTrackingRecHit >.

Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), TrackDetectorAssociator::addTAMuonSegmentMatch(), SiStripGainCosmicCalculator::algoAnalyze(), SiStripTrackingRecHitsValid::analyze(), TrackCleaner::areSame(), TrackingRecHitLessFromGlobalPosition::barrelForwardLess(), SortHitsByGlobalPosition::barrelForwardLess(), SortHitPointersByGlobalPosition::barrelForwardLess(), FWTrackTrackingRecHitProxyBuilder::build(), SeedForPhotonConversion1Leg::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeed(), CSCPairResidualsConstraint::calculatePhi(), RectangularEtaPhiTrackingRegion::checkRZOld(), RecHitComparatorByPosition::equals(), Chi2StripEstimator::estimate(), Chi2Strip1DEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), RoadSearchTrackCandidateMakerAlgorithm::extrapolateTrajectory(), KFTrajectoryFitter::fit(), PixelTripletLowPtGenerator::getGlobalPosition(), PlotRecTracks::getPixelInfo(), PlotRecTracks::getStripInfo(), TransientTrackingRecHit::globalPosition(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectoryFromTriplet(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), SortHitsByGlobalPosition::insideOutLess(), SortHitPointersByGlobalPosition::insideOutLess(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), RPCSeedOverlapper::isShareHit(), GenericTransientTrackingRecHit::localPosition(), MuonResidualsFromTrack::MuonResidualsFromTrack(), RecHitComparatorByPosition::operator()(), CompareHitPairsY::operator()(), OuterHitCompatibility::operator()(), CompareHitY::operator()(), CompareHitY_plus::operator()(), HitComparator::operator()(), SortHitsByY::operator()(), SortHitPointersByY::operator()(), GCC11_FINAL::parameters(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), cms::TrackListMerger::produce(), cms::SimpleTrackListMerger::produce(), AlignmentMuonHIPTrajectorySelector::produce(), reco::modules::CosmicTrackSplitter::produce(), Strip1DMeasurementTransformator::projectionMatrix(), RecHitPropagator::propagate(), PixelTrackCleanerBySharedHits::recHitsAreEqual(), RoadSearchCloudMakerAlgorithm::run(), TrackCandidateProducer::sameLocalParameters(), SeedFromGenericPairOrTriplet::seedFromPair(), and SeedFromGenericPairOrTriplet::seedFromTriplet().

virtual LocalError TrackingRecHit::localPositionError ( ) const
pure virtual

Implemented in DTRecSegment2D, DTSLRecCluster, DTRecHit1D, DTRecSegment4D, RPCRecHit, RecHit1D, DTRecHit1DPair, CSCRecHit2D, BaseTrackerRecHit, BeamSpotTransientTrackingRecHit, KFBasedPixelFitter::MyBeamSpotHit, GCC11_FINAL, CSCSegment, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, GCC11_FINAL, RecHit2DLocalPos, GCC11_FINAL, GCC11_FINAL, GenericTransientTrackingRecHit, BaseSiTrackerRecHit2DLocalPos, GSSiTrackerRecHit2DLocalPos, SiStripLaserRecHit2D, TransientTrackingRecHitByValue< RecHit >, and TransientTrackingRecHitByValue< InvalidTrackingRecHit >.

Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), TrackDetectorAssociator::addTAMuonSegmentMatch(), SiStripTrackingRecHitsValid::analyze(), CSCPairResidualsConstraint::calculatePhi(), Chi2StripEstimator::estimate(), Chi2Strip1DEstimator::estimate(), ConversionForwardEstimator::estimate(), ConversionBarrelEstimator::estimate(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), KFTrajectoryFitter::fit(), RoadSearchTrackCandidateMakerAlgorithm::initialTrajectory(), GenericTransientTrackingRecHit::localPositionError(), MuonResidualsFromTrack::MuonResidualsFromTrack(), GCC11_FINAL::parametersError(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), AlignmentMuonHIPTrajectorySelector::produce(), TrackingRecHitProjector< ResultingHit >::project(), RecHitPropagator::propagate(), TrackCandidateProducer::sameLocalParameters(), and TransientTrackingRecHit::setPositionErrors().

virtual AlgebraicVector TrackingRecHit::parameters ( ) const
pure virtual
virtual AlgebraicSymMatrix TrackingRecHit::parametersError ( ) const
pure virtual
virtual AlgebraicMatrix TrackingRecHit::projectionMatrix ( ) const
pure virtual
id_type TrackingRecHit::rawId ( ) const
inline

Definition at line 61 of file TrackingRecHit.h.

References m_id.

Referenced by GCC11_FINAL::monoId(), and GCC11_FINAL::stereoId().

61 { return m_id;}
virtual std::vector<const TrackingRecHit*> TrackingRecHit::recHits ( ) const
pure virtual
virtual std::vector<TrackingRecHit*> TrackingRecHit::recHits ( )
pure virtual
void TrackingRecHit::recHitsV ( std::vector< const TrackingRecHit * > &  v) const
virtual

Definition at line 7 of file TrackingRecHit.cc.

References recHits().

7  {
8  v = recHits();
9 }
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
mathSSE::Vec4< T > v
void TrackingRecHit::recHitsV ( std::vector< TrackingRecHit * > &  v)
virtual

Definition at line 11 of file TrackingRecHit.cc.

References recHits().

11  {
12  v = recHits();
13 }
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
mathSSE::Vec4< T > v
void TrackingRecHit::setId ( id_type  iid)
inlineprotected

Definition at line 88 of file TrackingRecHit.h.

References m_id.

Referenced by DTChamberRecSegment2D::setChamberId().

88 { m_id=iid;}
void TrackingRecHit::setRTTI ( unsigned int  rt)
inlineprotected

Definition at line 91 of file TrackingRecHit.h.

References m_status, and rttiShift.

91 { m_status &= (rt<< rttiShift);} // can be done only once...
static const int rttiShift
unsigned int m_status
void TrackingRecHit::setType ( Type  ttype)
inlineprotected

Definition at line 89 of file TrackingRecHit.h.

References m_status.

Referenced by MuonTransientTrackingRecHit::invalidateHit().

89 { m_status=ttype;}
unsigned int m_status
bool TrackingRecHit::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 in CSCRecHit2D, TrackerSingleRecHit, SiTrackerGSMatchedRecHit2D, SiTrackerGSRecHit2D, GCC11_FINAL, SiTrackerMultiRecHit, GCC11_FINAL, ProjectedSiStripRecHit2D, and GSSiTrackerRecHit2DLocalPos.

Definition at line 16 of file TrackingRecHit.cc.

References edm::hlt::Exception, and lumiQueryAPI::msg.

Referenced by TrajectoryCleanerBySharedHits::clean(), NuclearVertexBuilder::cleanTrackCollection(), ConversionHitChecker::nSharedHits(), EqualsBySharesInput::operator()(), PFConversionProducer::produce(), ConversionTrackMerger::produce(), cms::TrackListMerger::produce(), cms::SimpleTrackListMerger::produce(), SeedFilter::seeds(), TrackerSingleRecHit::sharesInput(), and CSCSegment::sharesRecHits().

16  {
17  //
18  // for the time being: don't force implementation in all derived classes
19  // but throw exception to indicate missing implementation
20  //
21  std::string msg("Missing implementation of TrackingRecHit::sharedInput in ");
22  msg += typeid(*this).name();
23  throw cms::Exception(msg);
24  return false;
25 }
Type TrackingRecHit::type ( ) const
inline
virtual float TrackingRecHit::weight ( ) const
inlinevirtual

Definition at line 71 of file TrackingRecHit.h.

71 {return 1.;}

Friends And Related Function Documentation

friend class MuonTransientTrackingRecHit
friend

Definition at line 14 of file TrackingRecHit.h.

Member Data Documentation

id_type TrackingRecHit::m_id
private

Definition at line 95 of file TrackingRecHit.h.

Referenced by geographicalId(), rawId(), and setId().

unsigned int TrackingRecHit::m_status
private

Definition at line 97 of file TrackingRecHit.h.

Referenced by getRTTI(), getType(), setRTTI(), setType(), and type().

const int TrackingRecHit::rttiShift = 24
static

Definition at line 27 of file TrackingRecHit.h.

Referenced by getRTTI(), and setRTTI().

const int TrackingRecHit::typeMask = 0xf
static

Definition at line 26 of file TrackingRecHit.h.

Referenced by getType(), and type().