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 Member Functions | Private Attributes | Friends
TrackingRecHit Class Referenceabstract

#include <TrackingRecHit.h>

Inheritance diagram for TrackingRecHit:
BaseTrackerRecHit GenericProjectedRecHit2D InvalidTrackingRecHit RecHit1D RecHit2DLocalPos RecSegment TRecHit1DMomConstraint TRecHit2DPosConstraint TRecHit5DParamConstraint TValidTrackingRecHit

Public Types

typedef std::vector
< ConstRecHitPointer
ConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector
< ConstRecHitPointer
RecHitContainer
 
using RecHitPointer = std::shared_ptr< TrackingRecHit const >
 
enum  SharedInputType { all, some }
 definition of equality via shared input More...
 
enum  Type {
  valid = 0, missing = 1, inactive = 2, bad = 3,
  missing_inner = 4, missing_outer = 5
}
 

Public Member Functions

virtual bool canImproveWithTrack () const
 
virtual TrackingRecHitclone () const =0
 
RecHitPointer cloneForFit (const GeomDet &idet) const
 
virtual TrackingRecHitcloneHit () const
 
virtual RecHitPointer cloneSH () const
 
const GeomDetdet () const
 
virtual const GeomDetUnitdetUnit () const
 
virtual int dimension () const =0
 
virtual float errorGlobalR () const
 
virtual float errorGlobalRPhi () const
 
virtual float errorGlobalZ () const
 
DetId geographicalId () const
 
virtual void getKfComponents (KfComponentsHolder &holder) const
 
unsigned int getRTTI () const
 
Type getType () const
 
virtual GlobalPoint globalPosition () const
 
virtual GlobalError globalPositionError () const
 
virtual bool hasPositionAndError () const
 to be redefined by daughter class More...
 
virtual TrackingRecHit const * hit () const
 
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 void setDet (const GeomDet &idet)
 
virtual bool sharesInput (const TrackingRecHit *other, SharedInputType what) const
 
virtual const Surfacesurface () const
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, TrackingRecHit const &rh)
 
virtual ConstRecHitContainer transientHits () const
 
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 Member Functions

virtual TrackingRecHitclone (TkCloner const &, TrajectoryStateOnSurface const &) const
 
virtual RecHitPointer cloneSH (TkCloner const &, TrajectoryStateOnSurface const &) const
 

Private Attributes

const GeomDetm_det
 
id_type m_id
 
unsigned int m_status
 

Friends

class MuonTransientTrackingRecHit
 
class TkCloner
 

Detailed Description

Definition at line 26 of file TrackingRecHit.h.

Member Typedef Documentation

Definition at line 38 of file TrackingRecHit.h.

using TrackingRecHit::ConstRecHitPointer = std::shared_ptr<TrackingRecHit const>

Definition at line 31 of file TrackingRecHit.h.

typedef unsigned int TrackingRecHit::id_type

Definition at line 44 of file TrackingRecHit.h.

Definition at line 37 of file TrackingRecHit.h.

using TrackingRecHit::RecHitPointer = std::shared_ptr<TrackingRecHit const>

Definition at line 30 of file TrackingRecHit.h.

Member Enumeration Documentation

definition of equality via shared input

Enumerator
all 
some 

Definition at line 58 of file TrackingRecHit.h.

Type of hits: valid = valid hit mwissing = 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 
missing_inner 
missing_outer 

Definition at line 53 of file TrackingRecHit.h.

Constructor & Destructor Documentation

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

Definition at line 60 of file TrackingRecHit.h.

60 : m_id(id), m_status(type), m_det(nullptr) {}
type
Definition: HCALResponse.h:21
unsigned int m_status
const GeomDet * m_det
TrackingRecHit::TrackingRecHit ( id_type  id = 0,
Type  type = valid 
)
inlineexplicit

Definition at line 61 of file TrackingRecHit.h.

61 : m_id(id), m_status(type), m_det(nullptr) {}
type
Definition: HCALResponse.h:21
unsigned int m_status
const GeomDet * m_det
TrackingRecHit::TrackingRecHit ( DetId  id,
unsigned int  rt,
Type  type = valid 
)
inline

Definition at line 62 of file TrackingRecHit.h.

62 : m_id(id), m_status((rt<< rttiShift)|int(type)), m_det(nullptr){}
type
Definition: HCALResponse.h:21
static const int rttiShift
unsigned int m_status
const GeomDet * m_det
TrackingRecHit::TrackingRecHit ( const GeomDet idet,
Type  type = valid 
)
inlineexplicit

Definition at line 65 of file TrackingRecHit.h.

65 : m_id(idet.geographicalId()), m_status(type), m_det(&idet){}
type
Definition: HCALResponse.h:21
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:77
unsigned int m_status
const GeomDet * m_det
TrackingRecHit::TrackingRecHit ( const GeomDet idet,
unsigned int  rt,
Type  type = valid 
)
inline

Definition at line 66 of file TrackingRecHit.h.

66 : m_id(idet.geographicalId()), m_status((rt<< rttiShift)|int(type)), m_det(&idet){}
type
Definition: HCALResponse.h:21
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:77
static const int rttiShift
unsigned int m_status
const GeomDet * m_det
TrackingRecHit::TrackingRecHit ( const GeomDet idet,
TrackingRecHit const &  rh 
)
inline

Definition at line 67 of file TrackingRecHit.h.

67 : m_id(rh.m_id), m_status(rh.m_status), m_det(&idet){}
unsigned int m_status
const GeomDet * m_det
virtual TrackingRecHit::~TrackingRecHit ( )
inlinevirtual

Definition at line 70 of file TrackingRecHit.h.

70 {}

Member Function Documentation

virtual bool TrackingRecHit::canImproveWithTrack ( ) const
inlinevirtual

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&). this will be done inside the TkCloner itself

Reimplemented in SiStripMatchedRecHit2D, TValidTrackingRecHit, SiPixelRecHit, GenericProjectedRecHit2D, TRecHit1DMomConstraint, TRecHit2DPosConstraint, ProjectedSiStripRecHit2D, SiStripRecHit1D, SiStripRecHit2D, TRecHit5DParamConstraint, and GenericTransientTrackingRecHit.

Definition at line 169 of file TrackingRecHit.h.

Referenced by TkCloner::makeShared().

169 {return false;}
virtual TrackingRecHit* TrackingRecHit::clone ( ) const
pure virtual

Implemented in MuonTransientTrackingRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, BeamSpotTransientTrackingRecHit, GenericProjectedRecHit2D, TRecHit5DParamConstraint, DTRecHit1D, GenericTransientTrackingRecHit, TValidTrackingRecHit, DTRecSegment2D, GEMRecHit, RPCRecHit, KFBasedPixelFitter::MyBeamSpotHit, InvalidTrackingRecHitNoDet, DTChamberRecSegment2D, SiTrackerGSMatchedRecHit2D, DTSLRecCluster, CSCRecHit2D, ProjectedSiStripRecHit2D, DTRecSegment4D, SiStripMatchedRecHit2D, SiPixelRecHit, DTRecHit1DPair, SiTrackerGSRecHit2D, CSCSegment, DTSLRecSegment2D, SiStripRecHit1D, SiStripRecHit2D, SiTrackerMultiRecHit, SiStripLaserRecHit2D, InvalidTrackingRecHit, RecHit2DLocalPos, and GSSiTrackerRecHit2DLocalPos.

Referenced by RPCMonitorDigi::analyze(), SeedForPhotonConversionFromQuadruplets::buildSeedBool(), Traj2TrackHits::clone(), clone(), TValidTrackingRecHit::cloneHit(), GenericTransientTrackingRecHit::cloneHit(), cloneHit(), cloneSH(), RPCSeedrecHitFinder::complete(), RPCCosmicSeedrecHitFinder::complete(), CosmicMuonSeedGenerator::createSeed(), GenericTransientTrackingRecHit::GenericTransientTrackingRecHit(), MuonSeedCleaner::NChi2OfSegment(), MuonSeedCleaner::NRecHitsFromSegment(), MuonTrackProducer::produce(), SimpleTrackListMerger::produce(), TrajectorySeedProducer::produce(), TrackCandidateProducer::produce(), SimpleCosmicBONSeeder::produce(), MuonMillepedeTrackRefitter::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), reco::modules::TrackerTrackHitFilter::produceFromTrajectory(), and SeedFromProtoTrack::SeedFromProtoTrack().

virtual TrackingRecHit* TrackingRecHit::clone ( TkCloner const &  ,
TrajectoryStateOnSurface const &   
) const
inlineprivatevirtual

Reimplemented in ProjectedSiStripRecHit2D, SiStripMatchedRecHit2D, SiPixelRecHit, SiStripRecHit1D, SiStripRecHit2D, and GSSiTrackerRecHit2DLocalPos.

Definition at line 173 of file TrackingRecHit.h.

References clone().

173  {
174  assert("clone"==nullptr);
175  return clone(); // default
176  }
virtual TrackingRecHit * clone() const =0
RecHitPointer TrackingRecHit::cloneForFit ( const GeomDet idet) const
inline

Definition at line 81 of file TrackingRecHit.h.

References GetRecoTauVFromDQM_MC_cff::cl, cloneSH(), and setDet().

81  {
82  auto cl = cloneSH();
83  const_cast<TrackingRecHit&>(*cl).setDet(idet); // const_cast (can be fixed editing some 100 files)
84  return cl;
85  }
virtual RecHitPointer cloneSH() const
virtual void setDet(const GeomDet &idet)
virtual TrackingRecHit* TrackingRecHit::cloneHit ( ) const
inlinevirtual
virtual RecHitPointer TrackingRecHit::cloneSH ( ) const
inlinevirtual

Reimplemented in SiStripMatchedRecHit2D, SiPixelRecHit, SiStripRecHit1D, SiStripRecHit2D, SiTrackerMultiRecHit, and InvalidTrackingRecHit.

Definition at line 79 of file TrackingRecHit.h.

References clone().

Referenced by cloneForFit(), and cloneSH().

79 { return RecHitPointer(clone());}
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual TrackingRecHit * clone() const =0
virtual RecHitPointer TrackingRecHit::cloneSH ( TkCloner const &  ,
TrajectoryStateOnSurface const &   
) const
inlineprivatevirtual

Reimplemented in ProjectedSiStripRecHit2D, SiStripMatchedRecHit2D, SiPixelRecHit, SiStripRecHit1D, and SiStripRecHit2D.

Definition at line 178 of file TrackingRecHit.h.

References cloneSH().

178  {
179  assert("cloneSH"==nullptr);
180  return cloneSH(); // default
181  }
virtual RecHitPointer cloneSH() const
const GeomDet* TrackingRecHit::det ( ) const
inline

Definition at line 121 of file TrackingRecHit.h.

References m_det.

Referenced by DuplicateRecHits::analyze(), BaseTrackerRecHit::BaseTrackerRecHit(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), MuonDTSeedFromRecHits::bestBarrelHit(), GenericProjectedRecHit2D::clone(), Traj2TrackHits::clone(), CosmicMuonSeedGenerator::createSeed(), SiStripLorentzAngleCalibration::derivatives(), SiPixelLorentzAngleCalibration::derivatives(), SiStripBackplaneCalibration::derivatives(), TrackerSingleRecHit::detUnit(), detUnit(), InsideBoundsMeasurementEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), GlobalTrajectoryBuilderBase::fixTEC(), GenericProjectedRecHit2D::geographicalId(), MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), BaseTrackerRecHit::hasPositionAndError(), CurrentAlignmentKFUpdator::includeCurrentAlignmentEstimate(), TkClonerImpl::makeShared(), GSRecHitMatcher::match(), TkClonerImpl::operator()(), GenericProjectedRecHit2D::parametersError(), DeDxDiscriminatorLearner::processHit(), DeDxEstimatorProducer::processHit(), reco::modules::CosmicTrackSplitter::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), reco::modules::TrackerTrackHitFilter::produceFromTrajectory(), TkClonerImpl::project(), GSRecHitMatcher::projectOnly(), RecHitPropagator::propagate(), MuonDTLocalMillepedeAlgorithm::run(), Traj2TrackHits::split(), TValidTrackingRecHit::surface(), BaseTrackerRecHit::surface(), surface(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), ClusterShapeTrajectoryFilter::toBeContinued(), InOutConversionTrackFinder::tracks(), OutInConversionTrackFinder::tracks(), and MuonTransientTrackingRecHit::transientHits().

121 { return m_det;}
const GeomDet * m_det
const GeomDetUnit * TrackingRecHit::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 in TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, and TrackerSingleRecHit.

Definition at line 41 of file TrackingRecHit.cc.

References det().

Referenced by Traj2TrackHits::clone(), Chi2Strip1DEstimator::estimate(), Chi2Switching1DEstimator::estimate(), Strip1DMeasurementTransformator::init(), DeDxDiscriminatorLearner::processHit(), HSCPDeDxInfoProducer::processHit(), DeDxEstimatorProducer::processHit(), HSCPDeDxInfoProducer::produce(), DeDxEstimatorProducer::produce(), and KFSwitching1DUpdator::update().

42 {
43  return det();
44 }
const GeomDet * det() const
virtual int TrackingRecHit::dimension ( ) const
pure virtual
float TrackingRecHit::errorGlobalR ( ) const
virtual

Reimplemented in BaseTrackerRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, and TValidTrackingRecHit.

Definition at line 50 of file TrackingRecHit.cc.

50 { throwError(); return 0;}
float TrackingRecHit::errorGlobalRPhi ( ) const
virtual

Reimplemented in BaseTrackerRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, and TValidTrackingRecHit.

Definition at line 52 of file TrackingRecHit.cc.

52 { throwError(); return 0;}
float TrackingRecHit::errorGlobalZ ( ) const
virtual

Reimplemented in BaseTrackerRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, and TValidTrackingRecHit.

Definition at line 51 of file TrackingRecHit.cc.

51 { throwError(); return 0;}
DetId TrackingRecHit::geographicalId ( ) const
inline

Definition at line 119 of file TrackingRecHit.h.

References m_id.

Referenced by TkGluedMeasurementDet::HitCollectorForSimpleHits::add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements::add(), CRackTrajectoryBuilder::AddHit(), TkGluedMeasurementDet::HitCollectorForSimpleHits::addProjected(), TkGluedMeasurementDet::HitCollectorForFastMeasurements::addProjected(), MuonDT2ChamberResidual::addResidual(), MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), fireworks::addSiStripClusters(), TrackDetectorAssociator::addTAMuonSegmentMatch(), CSCPairResidualsConstraint::addTrack(), SiStripGainFromCalibTree::algoAnalyze(), AlignmentStats::analyze(), MuonTruth::analyze(), SiStripLAProfileBooker::analyze(), SeedMultiplicityAnalyzer::analyze(), SiStripRecHitsValid::analyze(), TrackerDpgAnalysis::analyze(), SiStripTrackingRecHitsValid::analyze(), reco::HitPattern::appendHit(), TrackCleaner::areSame(), SegmentToTrackAssociator::associate(), MuonTruth::associateCSCHitId(), TrackerHitAssociator::associateHit(), MuonTruth::associateHitId(), TrackerHitAssociator::associateHitId(), TrackerHitAssociator::associatePixelRecHit(), TrackingRecHitLessFromGlobalPosition::barrelForwardLess(), FWTrackTrackingRecHitProxyBuilder::build(), MuonTransientTrackingRecHitBuilder::build(), SeedForPhotonConversion1Leg::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeed(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeedBool(), 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(), helper::MuonCollectionStoreManager::clusterRefsOK(), StripSubClusterShapeSeedFilter::compatible(), PixelClusterShapeSeedComparitor::compatibleHit(), SeedFromNuclearInteraction::construct(), CosmicMuonSeedGenerator::createSeed(), CSCRecHit2D::cscDetId(), CSCSegment::cscDetId(), OutsideInMuonSeeder::doDebug(), MuonAlignmentAnalyzer::doMatching(), MuonAlignment::doMatching(), DTRecSegment4D::DTRecSegment4D(), reco::HitPattern::encode(), RecHitComparatorByPosition::equals(), MuonChi2MeasurementEstimator::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), TkAlCaRecoMonitor::fillHitmaps(), DTTimingExtractor::fillTiming(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), DynamicTruncation::filter(), SETFilter::findChi2(), SiStripElectronAlgo::findElectron(), SiStripElectronSeedGenerator::findSeedsFromCluster(), SiStripFineDelayTLA::findtrackangle(), DTSegmentUpdator::fit(), KFTrajectoryFitter::fitOne(), PixelTripletLowPtGenerator::getGlobalPosition(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), QuickTrackAssociatorByHits::getMatchedClusters(), MuonAssociatorByHits::getMatchedIds(), TrackAssociatorByHits::getMatchedIds(), ClusterShapeHitFilter::getpd(), ClusterShapeHitFilter::getSizes(), SiStripMonitorTrack::hitStudy(), SeedFromProtoTrack::init(), TrackerRecHit::init(), TrackerDpgAnalysis::insertMeasurement(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), Trajectory::isBad(), ClusterShapeHitFilter::isCompatible(), RPCCosmicSeedrecHitFinder::iscorssEdge(), MuonTransientTrackingRecHit::isCSC(), CRackTrajectoryBuilder::isDifferentStripReHit2D(), 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(), TrackMerger::merge(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonSeedCleaner::NChi2OfSegment(), MuonSeedCleaner::NRecHitsFromSegment(), RecHitComparatorByPosition::operator()(), CompareHitPairsY::operator()(), HitComparatorByRadius::operator()(), TrackMerger::MomentumSort::operator()(), CompareDetY_plus::operator()(), CompareHitY::operator()(), HitComparator::operator()(), CompareHitY_plus::operator()(), CompareDetY_minus::operator()(), operator<(), GEMRecHit::operator==(), RPCRecHit::operator==(), QuadrupletSeedMerger::printHit(), QuadrupletSeedMerger::printNtuplet(), SeedClusterRemover::process(), HLTTrackClusterRemoverNew::process(), HITrackClusterRemover::process(), ShallowRechitClustersProducer::produce(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), MuonReSeeder::produce(), TrackListMerger::produce(), SimpleTrackListMerger::produce(), TrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), FakeTrackProducer< T >::produce(), reco::CentralityProducer::produce(), ShallowGainCalibration::produce(), TrackClusterSplitter::produce(), cms::CosmicTrackFinder::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), reco::modules::TrackerTrackHitFilter::produceFromTrajectory(), SiStripElectronAlgo::projectPhiBand(), recHitDet(), DTSegmentUpdator::rejectBadHits(), helper::ClusterStorer::ClusterHitRecord< ClusterRefType >::rekey(), KFBasedPixelFitter::run(), TrackInfoProducerAlgorithm::run(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), GlobalMuonRefitter::selectMuonHits(), SiStripMatchedRecHit2D::sharesInput(), SiTrackerMultiRecHit::sharesInput(), SiTrackerGSMatchedRecHit2D::sharesInput(), CSCRecHit2D::sharesInput(), ctfseeding::HitExtractorSTRP::skipThis(), CRackTrajectoryBuilder::SortHits(), StartingLayerFinder::startingLayers(), DTSLRecSegment2D::superLayerId(), StripSubClusterShapeFilterBase::testLastHit(), StripSubClusterShapeTrajectoryFilter::testLastHit(), FastTSGFromPropagation::trackerSeeds(), SiStripMonitorTrack::trajectoryStudy(), MuonTrackLoader::unpackHit(), and DTSegmentUpdator::update().

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

Reimplemented in BaseTrackerRecHit, SiPixelRecHit, ProjectedSiStripRecHit2D, SiStripMatchedRecHit2D, SiStripRecHit1D, SiStripRecHit2D, SiTrackerMultiRecHit, and GSSiTrackerRecHit2DLocalPos.

Definition at line 30 of file TrackingRecHit.cc.

References KfComponentsHolder::genericFill().

Referenced by HelpertRecHit2DLocalPos::getKfComponents().

30  {
31  holder.genericFill(*this);
32 }
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 144 of file TrackingRecHit.h.

References m_status, and rttiShift.

Referenced by trackerHitRTTI::rtti().

144 { return m_status >> rttiShift;}
static const int rttiShift
unsigned int m_status
Type TrackingRecHit::getType ( ) const
inline
GlobalPoint TrackingRecHit::globalPosition ( ) const
virtual
GlobalError TrackingRecHit::globalPositionError ( ) const
virtual

Reimplemented in BaseTrackerRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, and TValidTrackingRecHit.

Definition at line 48 of file TrackingRecHit.cc.

48 { throwError(); return GlobalError();}
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:11
virtual bool TrackingRecHit::hasPositionAndError ( ) const
inlinevirtual

to be redefined by daughter class

Reimplemented in BaseTrackerRecHit.

Definition at line 136 of file TrackingRecHit.h.

136 {return true;};
virtual TrackingRecHit const* TrackingRecHit::hit ( void  ) const
inlinevirtual
bool TrackingRecHit::isValid ( void  ) const
inline

Definition at line 142 of file TrackingRecHit.h.

References getType(), and valid.

Referenced by fireworks::addSiStripClusters(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripQualityHotStripIdentifier::algoAnalyze(), AlignmentStats::analyze(), GroupedCkfTrajectoryBuilder::backwardFit(), MuonCSCSeedFromRecHits::bestEndcapHit(), FWTrackTrackingRecHitProxyBuilder::build(), reco::modules::TrackerTrackHitFilter::checkHit(), DAFTrackProducerAlgorithm::checkHits(), AlignmentTrackSelector::checkPrescaledHits(), CosmicMuonSeedGenerator::checkQuality(), TripletFilter::checkTrack(), TrajectoryCleanerBySharedHits::clean(), NuclearVertexBuilder::cleanTrackCollection(), helper::MuonCollectionStoreManager::clusterRefsOK(), LowPtClusterShapeSeedComparitor::compatible(), StripSubClusterShapeSeedFilter::compatible(), MuonSeedOrcaPatternRecognition::complete(), OutsideInMuonSeeder::doDebug(), RecHitComparatorByPosition::equals(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), KFFittingSmoother::fitOne(), KFTrajectoryFitter::fitOne(), TrajAnnealing::getAnnealingWeight(), QuickTrackAssociatorByHits::getMatchedClusters(), MuonAssociatorByHits::getMatchedIds(), TrackAssociatorByHits::getMatchedIds(), GroupedCkfTrajectoryBuilder::groupedIntermediaryClean(), Trajectory::isBad(), AlignmentTrackSelector::isHit2D(), AlignmentTrackSelector::isOkCharge(), Trajectory::lost(), TempTrajectory::lost(), TrackMerger::merge(), MuonResidualsFromTrack::MuonResidualsFromTrack(), ConversionHitChecker::nSharedHits(), ClusterShapeTrackFilter::operator()(), helper::MuonCollectionStoreManager::processMuon(), helper::TrackCollectionStoreManager::processTrack(), PFConversionProducer::produce(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), MuonReSeeder::produce(), TrackListMerger::produce(), SimpleTrackListMerger::produce(), HLTTrackClusterRemoverNew::produce(), ConversionTrackMerger::produce(), HITrackClusterRemover::produce(), DeDxEstimatorProducer::produce(), TrackClusterSplitter::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), core.AutoHandle.AutoHandle::ReallyLoad(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), SiTrackerGSMatchedRecHit2D::sharesInput(), StripSubClusterShapeTrajectoryFilter::testLastHit(), and ClusterShapeTrajectoryFilter::toBeContinued().

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

Implemented in DTRecSegment2D, DTSLRecCluster, BaseTrackerRecHit, DTRecHit1D, DTRecSegment4D, GEMRecHit, RPCRecHit, CSCRecHit2D, RecHit1D, DTRecHit1DPair, BeamSpotTransientTrackingRecHit, KFBasedPixelFitter::MyBeamSpotHit, TRecHit2DPosConstraint, CSCSegment, TRecHit1DMomConstraint, InvalidTrackingRecHit, TRecHit5DParamConstraint, RecHit2DLocalPos, GenericProjectedRecHit2D, GenericTransientTrackingRecHit, and SiStripLaserRecHit2D.

Referenced by MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), MuonDT2ChamberResidual::addResidual(), TrackDetectorAssociator::addTAMuonSegmentMatch(), SiStripGainCosmicCalculator::algoAnalyze(), TrackCleaner::areSame(), TrackingRecHitLessFromGlobalPosition::barrelForwardLess(), FWTrackTrackingRecHitProxyBuilder::build(), SeedForPhotonConversion1Leg::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeed(), CSCPairResidualsConstraint::calculatePhi(), RectangularEtaPhiTrackingRegion::checkRZOld(), RecHitComparatorByPosition::equals(), Chi2Strip1DEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), KFTrajectoryFitter::fitOne(), PixelTripletLowPtGenerator::getGlobalPosition(), TValidTrackingRecHit::globalPosition(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), RPCSeedOverlapper::isShareHit(), GenericTransientTrackingRecHit::localPosition(), MuonResidualsFromTrack::MuonResidualsFromTrack(), RecHitComparatorByPosition::operator()(), CompareHitPairsY::operator()(), CompareHitY::operator()(), HitComparator::operator()(), CompareHitY_plus::operator()(), QuadrupletSeedMerger::printHit(), QuadrupletSeedMerger::printNtuplet(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), TrackListMerger::produce(), SimpleTrackListMerger::produce(), FakeTrackProducer< T >::produce(), reco::modules::CosmicTrackSplitter::produce(), Strip1DMeasurementTransformator::projectionMatrix(), RecHitPropagator::propagate(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), and TrackCandidateProducer::sameLocalParameters().

virtual LocalError TrackingRecHit::localPositionError ( ) const
pure virtual
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
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 10 of file TrackingRecHit.cc.

References recHits().

Referenced by transientHits().

10  {
11  v = recHits();
12 }
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
void TrackingRecHit::recHitsV ( std::vector< TrackingRecHit * > &  v)
virtual

Definition at line 14 of file TrackingRecHit.cc.

References recHits().

14  {
15  v = recHits();
16 }
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
virtual void TrackingRecHit::setDet ( const GeomDet idet)
inlinevirtual

Reimplemented in ProjectedSiStripRecHit2D.

Definition at line 87 of file TrackingRecHit.h.

References m_det.

Referenced by cloneForFit(), and ProjectedSiStripRecHit2D::setDet().

87 {m_det = &idet;}
const GeomDet * m_det
void TrackingRecHit::setId ( id_type  iid)
inlineprotected

Definition at line 186 of file TrackingRecHit.h.

References m_id.

Referenced by DTChamberRecSegment2D::setChamberId().

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

Definition at line 189 of file TrackingRecHit.h.

References m_status, and rttiShift.

189 { 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 187 of file TrackingRecHit.h.

References m_status.

Referenced by MuonTransientTrackingRecHit::invalidateHit().

187 { 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, SiTrackerMultiRecHit, SiStripMatchedRecHit2D, SiTrackerGSRecHit2D, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, InvalidTrackingRecHit, and GSSiTrackerRecHit2DLocalPos.

Definition at line 19 of file TrackingRecHit.cc.

References edm::hlt::Exception, producerFileCleanner::msg, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TrajectoryCleanerBySharedHits::clean(), NuclearVertexBuilder::cleanTrackCollection(), TrackMerger::merge(), ConversionHitChecker::nSharedHits(), PFConversionProducer::produce(), ConversionTrackMerger::produce(), SimpleTrackListMerger::produce(), SeedFilter::seeds(), and CSCSegment::sharesRecHits().

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

Reimplemented in BaseTrackerRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, InvalidTrackingRecHitNoDet, TRecHit5DParamConstraint, and TValidTrackingRecHit.

Definition at line 122 of file TrackingRecHit.h.

References det(), and GeomDet::surface().

Referenced by AlignmentMonitorMuonResiduals::event(), and KFTrajectoryFitter::fitOne().

122 {return &(det()->surface());}
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:40
const GeomDet * det() const
virtual ConstRecHitContainer TrackingRecHit::transientHits ( ) const
inlinevirtual

Reimplemented in MuonTransientTrackingRecHit.

Definition at line 109 of file TrackingRecHit.h.

References h, recHitsV(), and query::result.

109  {
111  std::vector<const TrackingRecHit*> hits;
112  recHitsV(hits);
113  for (auto h : hits) result.push_back(h->cloneSH());
114  return result;
115  }
tuple result
Definition: query.py:137
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
virtual void recHitsV(std::vector< const TrackingRecHit * > &) const
Type TrackingRecHit::type ( ) const
inline
virtual float TrackingRecHit::weight ( ) const
inlinevirtual

Friends And Related Function Documentation

friend class MuonTransientTrackingRecHit
friend

Definition at line 42 of file TrackingRecHit.h.

friend class TkCloner
friend

Definition at line 171 of file TrackingRecHit.h.

Member Data Documentation

const GeomDet* TrackingRecHit::m_det
private

Definition at line 197 of file TrackingRecHit.h.

Referenced by det(), and setDet().

id_type TrackingRecHit::m_id
private

Definition at line 193 of file TrackingRecHit.h.

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

unsigned int TrackingRecHit::m_status
private

Definition at line 195 of file TrackingRecHit.h.

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

const int TrackingRecHit::rttiShift = 24
static

Definition at line 55 of file TrackingRecHit.h.

Referenced by getRTTI(), and setRTTI().

const int TrackingRecHit::typeMask = 0xf
static

Definition at line 54 of file TrackingRecHit.h.

Referenced by getType(), and type().