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

Definition at line 166 of file TrackingRecHit.h.

Referenced by KFTrajectoryFitter::fitOne(), and TkCloner::makeShared().

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

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

Referenced by RPCMonitorDigi::analyze(), SeedForPhotonConversionFromQuadruplets::buildSeedBool(), SimpleDAFHitCollector::clone(), 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(), SimpleCosmicBONSeeder::produce(), MuonMillepedeTrackRefitter::produce(), reco::modules::CosmicTrackSplitter::produce(), TrajectorySeedProducer::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 ProjectedSiStripRecHit2D, SiStripMatchedRecHit2D, SiPixelRecHit, SiStripRecHit1D, SiStripRecHit2D, and GSSiTrackerRecHit2DLocalPos.

Definition at line 170 of file TrackingRecHit.h.

References assert(), and clone().

170  {
171  assert("clone"==nullptr);
172  return clone(); // default
173  }
assert(m_qm.get())
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, SiStripRecHit1D, SiStripRecHit2D, and InvalidTrackingRecHit.

Definition at line 76 of file TrackingRecHit.h.

References clone().

Referenced by cloneForFit(), and cloneSH().

76 { 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 175 of file TrackingRecHit.h.

References assert(), and cloneSH().

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

Definition at line 118 of file TrackingRecHit.h.

References m_det.

Referenced by DuplicateRecHits::analyze(), BaseTrackerRecHit::BaseTrackerRecHit(), BeamSpotTransientTrackingRecHit::BeamSpotTransientTrackingRecHit(), MuonDTSeedFromRecHits::bestBarrelHit(), GenericProjectedRecHit2D::clone(), SimpleDAFHitCollector::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(), TkClonerImpl::makeShared(), GSRecHitMatcher::match(), TkClonerImpl::operator()(), GenericProjectedRecHit2D::parametersError(), MuonTransientTrackingRecHit::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().

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.

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 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(), fireworks::addSiStripClusters(), TrackDetectorAssociator::addTAMuonSegmentMatch(), CSCPairResidualsConstraint::addTrack(), SiStripGainFromCalibTree::algoAnalyze(), AlignmentStats::analyze(), StandaloneTrackMonitor::analyze(), MuonTruth::analyze(), SiStripLAProfileBooker::analyze(), SeedMultiplicityAnalyzer::analyze(), SiStripRecHitsValid::analyze(), TrackerDpgAnalysis::analyze(), SiStripTrackingRecHitsValid::analyze(), reco::HitPattern::appendHit(), TrackCleaner::areSame(), SegmentToTrackAssociator::associate(), CSCHitAssociator::associateCSCHitId(), TrackerHitAssociator::associateHit(), CSCHitAssociator::associateHitId(), TrackerHitAssociator::associateHitId(), TrackerHitAssociator::associatePixelRecHit(), TrackingRecHitLessFromGlobalPosition::barrelForwardLess(), FWTrackTrackingRecHitProxyBuilder::build(), MuonTransientTrackingRecHitBuilder::build(), SeedFromConsecutiveHitsCreator::buildSeed(), SeedForPhotonConversion1Leg::buildSeed(), SeedForPhotonConversionFromQuadruplets::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(), GEMCSCSegment::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(), QuickTrackAssociatorByHitsImpl::getMatchedClusters(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackAssociatorByHitsImpl::getMatchedIds(), ClusterShapeHitFilter::getpd(), ClusterShapeHitFilter::getSizes(), SiStripMonitorTrack::hitStudy(), SeedFromProtoTrack::init(), TrajectorySeedHitCandidate::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<(), ME0RecHit::operator==(), RPCRecHit::operator==(), GEMRecHit::operator==(), QuadrupletSeedMerger::printHit(), DAFTrackProducerAlgorithm::PrintHit(), QuadrupletSeedMerger::printNtuplet(), SeedClusterRemover::process(), HLTTrackClusterRemoverNew::process(), HITrackClusterRemover::process(), StandaloneTrackMonitor::processHit(), ShallowRechitClustersProducer::produce(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), MuonReSeeder::produce(), SimpleTrackListMerger::produce(), TrackListMerger::produce(), FakeTrackProducer< T >::produce(), TrackCandidateProducer::produce(), reco::CentralityProducer::produce(), ShallowGainCalibration::produce(), TrackClusterSplitter::produce(), cms::CosmicTrackFinder::produce(), reco::modules::CosmicTrackSplitter::produce(), TrajectorySeedProducer::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(), SiTrackerMultiRecHitUpdator::TIDorTEChit(), FastTSGFromPropagation::trackerSeeds(), SiStripMonitorTrack::trajectoryStudy(), MuonTrackLoader::unpackHit(), and DTSegmentUpdator::update().

116 {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 141 of file TrackingRecHit.h.

References m_status, and rttiShift.

Referenced by trackerHitRTTI::rtti().

141 { 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:12
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
bool TrackingRecHit::isValid ( void  ) const
inline

Definition at line 139 of file TrackingRecHit.h.

References getType(), and valid.

Referenced by fireworks::addSiStripClusters(), DeDxDiscriminatorLearner::algoAnalyze(), SiStripQualityHotStripIdentifier::algoAnalyze(), AlignmentStats::analyze(), StandaloneTrackMonitor::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(), QuickTrackAssociatorByHitsImpl::getMatchedClusters(), MuonAssociatorByHitsHelper::getMatchedIds(), TrackAssociatorByHitsImpl::getMatchedIds(), GroupedCkfTrajectoryBuilder::groupedIntermediaryClean(), Trajectory::isBad(), AlignmentTrackSelector::isHit2D(), AlignmentTrackSelector::isOkCharge(), Trajectory::lost(), TempTrajectory::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(), TrackListMerger::produce(), SimpleTrackListMerger::produce(), HLTTrackClusterRemoverNew::produce(), HITrackClusterRemover::produce(), DeDxEstimatorProducer::produce(), TrackClusterSplitter::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), core.AutoHandle.AutoHandle::ReallyLoad(), SimpleDAFHitCollector::rightdimension(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), SiTrackerGSMatchedRecHit2D::sharesInput(), StripSubClusterShapeTrajectoryFilter::testLastHit(), and ClusterShapeTrajectoryFilter::toBeContinued().

139 {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, ME0RecHit, BeamSpotTransientTrackingRecHit, KFBasedPixelFitter::MyBeamSpotHit, GEMCSCSegment, 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(), GEMCSCSegFit::derivativeMatrix(), RecHitComparatorByPosition::equals(), Chi2Strip1DEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), GEMCSCSegFit::fit2(), GEMCSCSegFit::fitlsq(), 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(), DAFTrackProducerAlgorithm::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 GEMCSCSegFit::setChi2().

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 84 of file TrackingRecHit.h.

References m_det.

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

84 {m_det = &idet;}
const GeomDet * m_det
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 CSCRecHit2D, TrackerSingleRecHit, SiTrackerGSMatchedRecHit2D, SiTrackerMultiRecHit, SiStripMatchedRecHit2D, SiTrackerGSRecHit2D, TRecHit1DMomConstraint, TRecHit2DPosConstraint, TRecHit5DParamConstraint, InvalidTrackingRecHit, and GSSiTrackerRecHit2DLocalPos.

Definition at line 19 of file TrackingRecHit.cc.

References edm::hlt::Exception, visualization-live-secondInstance_cfg::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 119 of file TrackingRecHit.h.

References det(), 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:40
const GeomDet * det() const
virtual ConstRecHitContainer TrackingRecHit::transientHits ( ) const
inlinevirtual

Reimplemented in MuonTransientTrackingRecHit.

Definition at line 106 of file TrackingRecHit.h.

References h, recHitsV(), and query::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  }
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 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.

Referenced by getType(), and type().