CMS 3D CMS Logo

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< ConstRecHitPointerConstRecHitContainer
 
using ConstRecHitPointer = std::shared_ptr< TrackingRecHit const >
 
typedef unsigned int id_type
 
typedef std::vector< ConstRecHitPointerRecHitContainer
 
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 23 of file TrackingRecHit.h.

Member Typedef Documentation

Definition at line 35 of file TrackingRecHit.h.

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

Definition at line 28 of file TrackingRecHit.h.

typedef unsigned int TrackingRecHit::id_type

Definition at line 41 of file TrackingRecHit.h.

Definition at line 34 of file TrackingRecHit.h.

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

Definition at line 27 of file TrackingRecHit.h.

Member Enumeration Documentation

definition of equality via shared input

Enumerator
all 
some 

Definition at line 55 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 50 of file TrackingRecHit.h.

Constructor & Destructor Documentation

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

Definition at line 57 of file TrackingRecHit.h.

57 : 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 58 of file TrackingRecHit.h.

58 : 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 59 of file TrackingRecHit.h.

59 : 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 62 of file TrackingRecHit.h.

62 : 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:79
unsigned int m_status
const GeomDet * m_det
TrackingRecHit::TrackingRecHit ( const GeomDet idet,
unsigned int  rt,
Type  type = valid 
)
inline

Definition at line 63 of file TrackingRecHit.h.

63 : 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:79
static const int rttiShift
unsigned int m_status
const GeomDet * m_det
TrackingRecHit::TrackingRecHit ( const GeomDet idet,
TrackingRecHit const &  rh 
)
inline

Definition at line 64 of file TrackingRecHit.h.

64 : 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 67 of file TrackingRecHit.h.

67 {}

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 FastTrackerRecHit, SiStripMatchedRecHit2D, TValidTrackingRecHit, SiPixelRecHit, GenericProjectedRecHit2D, TRecHit1DMomConstraint, TRecHit2DPosConstraint, ProjectedSiStripRecHit2D, SiStripRecHit2D, SiStripRecHit1D, TRecHit5DParamConstraint, Phase2TrackerRecHit1D, and GenericTransientTrackingRecHit.

Definition at line 166 of file TrackingRecHit.h.

Referenced by KFTrajectoryFitter::fitOne().

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

Implemented in MuonTransientTrackingRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, BeamSpotTransientTrackingRecHit, GenericProjectedRecHit2D, TRecHit5DParamConstraint, DTRecHit1D, GenericTransientTrackingRecHit, TValidTrackingRecHit, DTRecSegment2D, GEMRecHit, RPCRecHit, FastTrackerRecHit, ME0RecHit, KFBasedPixelFitter::MyBeamSpotHit, InvalidTrackingRecHitNoDet, DTChamberRecSegment2D, DTSLRecCluster, CSCRecHit2D, ProjectedSiStripRecHit2D, DTRecSegment4D, SiStripMatchedRecHit2D, SiPixelRecHit, DTRecHit1DPair, GEMCSCSegment, GEMSegment, ME0Segment, CSCSegment, DTSLRecSegment2D, SiStripRecHit2D, EmulatedME0Segment, SiStripRecHit1D, FastMatchedTrackerRecHit, FastProjectedTrackerRecHit, SiTrackerMultiRecHit, Phase2TrackerRecHit1D, FastSingleTrackerRecHit, SiStripLaserRecHit2D, InvalidTrackingRecHit, and RecHit2DLocalPos.

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

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

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

Definition at line 170 of file TrackingRecHit.h.

References clone().

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

Definition at line 78 of file TrackingRecHit.h.

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

78  {
79  auto cl = cloneSH();
80  const_cast<TrackingRecHit&>(*cl).setDet(idet); // const_cast (can be fixed editing some 100 files)
81  return cl;
82  }
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, SiStripRecHit2D, SiStripRecHit1D, Phase2TrackerRecHit1D, and InvalidTrackingRecHit.

Definition at line 76 of file TrackingRecHit.h.

References clone().

Referenced by SiTrackerMultiRecHit::clone(), cloneForFit(), and cloneSH().

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

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

Definition at line 175 of file TrackingRecHit.h.

References cloneSH().

175  {
176  assert("cloneSH"==nullptr);
177  return cloneSH(); // default
178  }
virtual RecHitPointer cloneSH() const
const GeomDet* TrackingRecHit::det ( ) const
inline

Definition at line 118 of file TrackingRecHit.h.

References m_det.

Referenced by DuplicateRecHits::analyze(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), GenericProjectedRecHit2D::clone(), SimpleDAFHitCollector::clone(), Traj2TrackHits::clone(), SiStripLorentzAngleCalibration::derivatives(), SiPixelLorentzAngleCalibration::derivatives(), SiStripBackplaneCalibration::derivatives(), TrackerSingleRecHit::detUnit(), detUnit(), InsideBoundsMeasurementEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), GlobalTrajectoryBuilderBase::fixTEC(), GenericProjectedRecHit2D::geographicalId(), TrajSeedMatcher::getTrajStateFromPoint(), TrajSeedMatcher::getTrajStateFromVtx(), MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), BaseTrackerRecHit::hasPositionAndError(), TkClonerImpl::makeShared(), TkClonerImpl::operator()(), GenericProjectedRecHit2D::parametersError(), MuonTransientTrackingRecHit::parametersError(), DeDxDiscriminatorLearner::processHit(), DeDxEstimatorProducer::processHit(), FastTrackerRecHitMatcher::produce(), reco::modules::CosmicTrackSplitter::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), reco::modules::TrackerTrackHitFilter::produceFromTrajectory(), TkClonerImpl::project(), RecHitPropagator::propagate(), MuonDTLocalMillepedeAlgorithm::run(), Traj2TrackHits::split(), TValidTrackingRecHit::surface(), surface(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), ClusterShapeTrajectoryFilter::toBeContinued(), InOutConversionTrackFinder::tracks(), OutInConversionTrackFinder::tracks(), and MuonTransientTrackingRecHit::transientHits().

118 { return m_det;}
const GeomDet * m_det
const GeomDetUnit * TrackingRecHit::detUnit ( ) const
virtual
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.

Referenced by getRTTI().

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.

Referenced by getRTTI().

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.

Referenced by getRTTI().

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

Definition at line 116 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(), TrackMerger::addSecondTrackHits(), fireworks::addSiStripClusters(), TrackDetectorAssociator::addTAMuonSegmentMatch(), CSCPairResidualsConstraint::addTrack(), AlignmentStats::analyze(), StandaloneTrackMonitor::analyze(), MuonTruth::analyze(), SiStripLAProfileBooker::analyze(), PrimaryVertexValidation::analyze(), SeedMultiplicityAnalyzer::analyze(), SiStripRecHitsValid::analyze(), TrackerDpgAnalysis::analyze(), SiStripTrackingRecHitsValid::analyze(), PixelClusterShapeExtractor::analyzeRecTracks(), reco::HitPattern::appendHit(), TrackCleaner::areSame(), SegmentToTrackAssociator::associate(), CSCHitAssociator::associateCSCHitId(), TrackerHitAssociator::associateHit(), CSCHitAssociator::associateHitId(), TrackerHitAssociator::associatePhase2TrackerRecHit(), TrackerHitAssociator::associatePixelRecHit(), TrackingRecHitLessFromGlobalPosition::barrelForwardLess(), SiPixelCoordinates::blade_coord(), SiPixelCoordinates::blade_panel_coord(), FWTrackTrackingRecHitProxyBuilder::build(), MuonTransientTrackingRecHitBuilder::build(), SeedForPhotonConversion1Leg::buildSeed(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeedBool(), reco::helper::JetMuonHitsIDHelper::calculate(), CSCPairResidualsConstraint::calculatePhi(), DTSegmentUpdator::calculateT0corr(), DTChamberRecSegment2D::chamberId(), DTRecSegment4D::chamberId(), SiPixelCoordinates::channel(), SimpleCosmicBONSeeder::checkCharge(), reco::modules::TrackerTrackHitFilter::checkHitAngle(), AlignmentTrackSelector::checkPrescaledHits(), reco::modules::TrackerTrackHitFilter::checkPXLCorrClustCharge(), TrajectoryCleanerBySharedHits::clean(), helper::MuonCollectionStoreManager::clusterRefsOK(), StripSubClusterShapeSeedFilter::compatible(), PixelClusterShapeSeedComparitor::compatibleHit(), SeedFromNuclearInteraction::construct(), CSCRecHit2D::cscDetId(), CSCSegment::cscDetId(), GEMCSCSegment::cscDetId(), SiPixelCoordinates::disk_coord(), SiPixelCoordinates::disk_ring_coord(), OutsideInMuonSeeder::doDebug(), MuonAlignmentAnalyzer::doMatching(), MuonAlignment::doMatching(), DTRecSegment4D::DTRecSegment4D(), reco::HitPattern::encode(), RecHitComparatorByPosition::equals(), MuonChi2MeasurementEstimator::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), TkAlCaRecoMonitor::fillHitmaps(), ApeEstimator::fillHitVariables(), DTTimingExtractor::fillTiming(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), DynamicTruncation::filter(), SiStripElectronAlgo::findElectron(), SiStripElectronSeedGenerator::findSeedsFromCluster(), SiStripFineDelayTLA::findtrackangle(), DTSegmentUpdator::fit(), KFTrajectoryFitter::fitOne(), GEMSegment::gemDetId(), QuickTrackAssociatorByHitsImpl::getAllSimTrackIdentifiers(), QuickTrackAssociatorByHitsImpl::getDoubleCount(), PixelTripletLowPtGenerator::getGlobalPosition(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), QuickTrackAssociatorByHitsImpl::getMatchedClusters(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackAssociatorByHitsImpl::getMatchedIds(), TrajSeedMatcher::getNrValidLayersAlongTraj(), ClusterShapeHitFilter::getpd(), ClusterShapeHitFilter::getSizes(), SiStripMonitorTrack::hitStudy(), SeedFromProtoTrack::init(), TrackerDpgAnalysis::insertMeasurement(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), Trajectory::isBad(), ClusterShapeHitFilter::isCompatible(), MuonTransientTrackingRecHit::isCSC(), CRackTrajectoryBuilder::isDifferentStripReHit2D(), MuonTransientTrackingRecHit::isDT(), MuonTransientTrackingRecHit::isGEM(), CalibrationTrackSelector::isHit2D(), AlignmentTrackSelector::isHit2D(), PrimaryVertexValidation::isHit2D(), ApeEstimator::isHit2D(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), MuonTransientTrackingRecHit::isME0(), AlignmentTrackSelector::isOkCharge(), MuonTransientTrackingRecHit::isRPC(), RPCSeedOverlapper::isShareHit(), SiPixelCoordinates::ladder_coord(), TempTrajectory::lost(), Trajectory::lost(), TrackClusterSplitter::markClusters(), FastTrackerRecHitMatcher::match(), MuonSegmentMatcher::matchDT(), ME0Segment::me0DetId(), TrackMerger::merge(), SiPixelCoordinates::module_coord(), 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<(), ME0RecHit::operator==(), GEMRecHit::operator==(), RPCRecHit::operator==(), ApeEstimator::positionAndError2(), DAFTrackProducerAlgorithm::PrintHit(), SeedClusterRemoverPhase2::process(), SeedClusterRemover::process(), HLTTrackClusterRemoverNew::process(), HITrackClusterRemover::process(), StandaloneTrackMonitor::processHit(), DeDxHitInfoProducer::processHit(), PixelClusterShapeExtractor::processPixelRecHits(), PixelClusterShapeExtractor::processRec(), ShallowRechitClustersProducer::produce(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), MuonReSeeder::produce(), SimpleTrackListMerger::produce(), TrackListMerger::produce(), FastTrackerRecHitMatcher::produce(), FakeTrackProducer< T >::produce(), TrackCandidateProducer::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(), SiPixelCoordinates::ring_coord(), SiPixelCoordinates::roc(), KFBasedPixelFitter::run(), TrackInfoProducerAlgorithm::run(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), GlobalMuonRefitter::selectMuonHits(), SiStripMatchedRecHit2D::sharesInput(), SiTrackerMultiRecHit::sharesInput(), CSCRecHit2D::sharesInput(), SiPixelCoordinates::signed_blade_coord(), SiPixelCoordinates::signed_blade_panel_coord(), SiPixelCoordinates::signed_disk_coord(), SiPixelCoordinates::signed_disk_ring_coord(), SiPixelCoordinates::signed_ladder_coord(), SiPixelCoordinates::signed_module_coord(), SiPixelCoordinates::signed_shifted_blade_panel_coord(), ctfseeding::HitExtractorSTRP::skipThis(), CRackTrajectoryBuilder::SortHits(), StartingLayerFinder::startingLayers(), DTSLRecSegment2D::superLayerId(), StripSubClusterShapeFilterBase::testLastHit(), StripSubClusterShapeTrajectoryFilter::testLastHit(), SiTrackerMultiRecHitUpdator::TIDorTEChit(), FastTSGFromPropagation::trackerSeeds(), SiStripMonitorTrack::trajectoryStudy(), MuonTrackLoader::unpackHit(), DTSegmentUpdator::update(), and QuickTrackAssociatorByHitsImpl::weightedNumberOfTrackClusters().

116 {return m_id;}
void TrackingRecHit::getKfComponents ( KfComponentsHolder holder) const
virtual
unsigned int TrackingRecHit::getRTTI ( ) const
inline
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.

Referenced by getRTTI().

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

to be redefined by daughter class

Reimplemented in BaseTrackerRecHit.

Definition at line 133 of file TrackingRecHit.h.

133 {return true;};
virtual TrackingRecHit const* TrackingRecHit::hit ( ) const
inlinevirtual

Reimplemented in KFBasedPixelFitter::MyBeamSpotHit, BeamSpotTransientTrackingRecHit, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, BaseTrackerRecHit, GenericProjectedRecHit2D, and GenericTransientTrackingRecHit.

Definition at line 70 of file TrackingRecHit.h.

Referenced by SiPixelTrackResidualSource::analyze(), SiPixelErrorEstimation::analyze(), SiStripElectronSeedGenerator::backupHitConverter(), SiPixelCoordinates::blade_coord(), SiPixelCoordinates::blade_panel_coord(), SiPixelCoordinates::channel(), DAFTrackProducerAlgorithm::checkHits(), TrajectoryCleanerBySharedHits::clean(), TValidTrackingRecHit::cloneHit(), TkGluedMeasurementDet::collectRecHits(), StripSubClusterShapeSeedFilter::compatible(), RPCSeedrecHitFinder::complete(), RPCCosmicSeedrecHitFinder::complete(), SiPixelCoordinates::disk_coord(), SiPixelCoordinates::disk_ring_coord(), ApeEstimator::fillHitVariables(), ApeEstimator::fillTrackVariables(), SiPixelCoordinates::ladder_coord(), SiStripElectronSeedGenerator::matchedHitConverter(), SiPixelCoordinates::module_coord(), DTRecHit1DPair::operator!=(), Trajectory::pixel(), MuonReSeeder::produce(), SimpleCosmicBONSeeder::produce(), SiPixelCoordinates::ring_coord(), SiPixelCoordinates::roc(), HIPAlignmentAlgorithm::run(), SiPixelCoordinates::signed_blade_coord(), SiPixelCoordinates::signed_blade_panel_coord(), SiPixelCoordinates::signed_disk_coord(), SiPixelCoordinates::signed_disk_ring_coord(), SiPixelCoordinates::signed_ladder_coord(), SiPixelCoordinates::signed_module_coord(), SiPixelCoordinates::signed_shifted_blade_panel_coord(), and ClusterShapeTrajectoryFilter::toBeContinued().

70 { return this;}
bool TrackingRecHit::isValid ( void  ) const
inline

Definition at line 139 of file TrackingRecHit.h.

References getType(), and valid.

Referenced by ntupleDataFormat._Object::_checkIsValid(), TrackMerger::addSecondTrackHits(), fireworks::addSiStripClusters(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripQualityHotStripIdentifier::algoAnalyze(), AlignmentStats::analyze(), StandaloneTrackMonitor::analyze(), PrimaryVertexValidation::analyze(), PixelClusterShapeExtractor::analyzeRecTracks(), GroupedCkfTrajectoryBuilder::backwardFit(), FWTrackTrackingRecHitProxyBuilder::build(), reco::modules::TrackerTrackHitFilter::checkHit(), DAFTrackProducerAlgorithm::checkHits(), AlignmentTrackSelector::checkPrescaledHits(), TripletFilter::checkTrack(), NuclearVertexBuilder::cleanTrackCollection(), helper::MuonCollectionStoreManager::clusterRefsOK(), LowPtClusterShapeSeedComparitor::compatible(), StripSubClusterShapeSeedFilter::compatible(), OutsideInMuonSeeder::doDebug(), RecHitComparatorByPosition::equals(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), ApeEstimator::fillHitVariables(), TrackingNtuple::fillTracks(), KFTrajectoryFitter::fitOne(), TrajAnnealing::getAnnealingWeight(), QuickTrackAssociatorByHitsImpl::getMatchedClusters(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackAssociatorByHitsImpl::getMatchedIds(), Trajectory::isBad(), AlignmentTrackSelector::isHit2D(), ApeEstimator::isHit2D(), AlignmentTrackSelector::isOkCharge(), TempTrajectory::lost(), Trajectory::lost(), TrackMerger::merge(), MuonResidualsFromTrack::MuonResidualsFromTrack(), ConversionHitChecker::nSharedHits(), ClusterShapeTrackFilter::operator()(), DAFTrackProducerAlgorithm::PrintHit(), helper::MuonCollectionStoreManager::processMuon(), helper::TrackCollectionStoreManager::processTrack(), PFConversionProducer::produce(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), MuonReSeeder::produce(), ConversionTrackMerger::produce(), SimpleTrackListMerger::produce(), TrackListMerger::produce(), HLTTrackClusterRemoverNew::produce(), TrackClusterSplitter::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), core.AutoHandle.AutoHandle::ReallyLoad(), SimpleDAFHitCollector::rightdimension(), MuonMillepedeAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), StripSubClusterShapeTrajectoryFilter::testLastHit(), and ClusterShapeTrajectoryFilter::toBeContinued().

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

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

Referenced by MuonDT2ChamberResidual::addResidual(), MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), TrackDetectorAssociator::addTAMuonSegmentMatch(), SiStripGainCosmicCalculator::algoAnalyze(), TrackCleaner::areSame(), TrackingRecHitLessFromGlobalPosition::barrelForwardLess(), FWTrackTrackingRecHitProxyBuilder::build(), SeedForPhotonConversion1Leg::buildSeed(), SeedForPhotonConversionFromQuadruplets::buildSeed(), CSCPairResidualsConstraint::calculatePhi(), GEMCSCSegFit::derivativeMatrix(), RecHitComparatorByPosition::equals(), Chi2Strip1DEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), ApeEstimator::fillHitVariables(), GEMCSCSegFit::fit2(), GEMCSCSegFit::fitlsq(), 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()(), DAFTrackProducerAlgorithm::PrintHit(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), TrackListMerger::produce(), SimpleTrackListMerger::produce(), FakeTrackProducer< T >::produce(), reco::modules::CosmicTrackSplitter::produce(), Strip1DMeasurementTransformator::projectionMatrix(), RecHitPropagator::propagate(), SiStripTrackingRecHitsValid::rechitanalysis(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), GEMCSCSegFit::setChi2(), and surface().

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 setDet(), and 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
void TrackingRecHit::setId ( id_type  iid)
inlineprotected

Definition at line 183 of file TrackingRecHit.h.

References m_id.

Referenced by DTChamberRecSegment2D::setChamberId().

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

Definition at line 186 of file TrackingRecHit.h.

References m_status, and rttiShift.

186 { 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 184 of file TrackingRecHit.h.

References m_status.

Referenced by MuonTransientTrackingRecHit::invalidateHit().

184 { 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 FastTrackerRecHit, CSCRecHit2D, TrackerSingleRecHit, SiTrackerMultiRecHit, SiStripMatchedRecHit2D, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, and InvalidTrackingRecHit.

Definition at line 19 of file TrackingRecHit.cc.

References Exception, mps_alisetup::msg, and AlCaHLTBitMon_QueryRunRegistry::string.

Referenced by TrackMerger::addSecondTrackHits(), TrajectoryCleanerBySharedHits::clean(), NuclearVertexBuilder::cleanTrackCollection(), CSCSegment::duplicateSegments(), getRTTI(), 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 119 of file TrackingRecHit.h.

References det(), detUnit(), localPosition(), localPositionError(), and GeomDet::surface().

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

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

Reimplemented in MuonTransientTrackingRecHit.

Definition at line 106 of file TrackingRecHit.h.

References hfClusterShapes_cfi::hits, recHitsV(), and mps_fire::result.

106  {
108  std::vector<const TrackingRecHit*> hits;
109  recHitsV(hits);
110  for (auto h : hits) result.push_back(h->cloneSH());
111  return result;
112  }
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
virtual void recHitsV(std::vector< const TrackingRecHit * > &) const
Type TrackingRecHit::type ( ) const
inline
virtual float TrackingRecHit::weight ( ) const
inlinevirtual

Definition at line 135 of file TrackingRecHit.h.

Referenced by SiTrackerMultiRecHit::weights().

135 {return 1.;}

Friends And Related Function Documentation

friend class MuonTransientTrackingRecHit
friend

Definition at line 39 of file TrackingRecHit.h.

friend class TkCloner
friend

Definition at line 168 of file TrackingRecHit.h.

Member Data Documentation

const GeomDet* TrackingRecHit::m_det
private

Definition at line 194 of file TrackingRecHit.h.

Referenced by det(), and setDet().

id_type TrackingRecHit::m_id
private

Definition at line 190 of file TrackingRecHit.h.

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

unsigned int TrackingRecHit::m_status
private

Definition at line 192 of file TrackingRecHit.h.

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

const int TrackingRecHit::rttiShift = 24
static

Definition at line 52 of file TrackingRecHit.h.

Referenced by getRTTI(), and setRTTI().

const int TrackingRecHit::typeMask = 0xf
static

Definition at line 51 of file TrackingRecHit.h.