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 GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > GCC11_FINAL< T, TOPO > InvalidTrackingRecHit RecHit1D RecHit2DLocalPos RecSegment 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 }
 

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 * > &)
 
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 28 of file TrackingRecHit.h.

Member Typedef Documentation

Definition at line 40 of file TrackingRecHit.h.

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

Definition at line 33 of file TrackingRecHit.h.

typedef unsigned int TrackingRecHit::id_type

Definition at line 46 of file TrackingRecHit.h.

Definition at line 39 of file TrackingRecHit.h.

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

Definition at line 32 of file TrackingRecHit.h.

Member Enumeration Documentation

definition of equality via shared input

Enumerator
all 
some 

Definition at line 60 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 

Definition at line 55 of file TrackingRecHit.h.

Constructor & Destructor Documentation

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

Definition at line 62 of file TrackingRecHit.h.

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

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

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

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

Definition at line 68 of file TrackingRecHit.h.

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

Definition at line 69 of file TrackingRecHit.h.

69 : 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 72 of file TrackingRecHit.h.

72 {}

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 GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, TValidTrackingRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GenericTransientTrackingRecHit.

Definition at line 170 of file TrackingRecHit.h.

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

Implemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, MuonTransientTrackingRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, TValidTrackingRecHit, DTRecHit1D, GCC11_FINAL< T, TOPO >, GenericTransientTrackingRecHit, DTRecSegment2D, GEMRecHit, RPCRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, KFBasedPixelFitter::GCC11_FINAL, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, DTChamberRecSegment2D, GCC11_FINAL< T, TOPO >, SiTrackerGSMatchedRecHit2D, GCC11_FINAL< T, TOPO >, DTSLRecCluster, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, DTRecSegment4D, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, DTRecHit1DPair, GCC11_FINAL< T, TOPO >, SiTrackerGSRecHit2D, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, DTSLRecSegment2D, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, SiTrackerMultiRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, SiStripLaserRecHit2D, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, InvalidTrackingRecHit, RecHit2DLocalPos, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GSSiTrackerRecHit2DLocalPos, GCC11_FINAL< T, TOPO >, and GCC11_FINAL< T, TOPO >.

Referenced by RPCMonitorDigi::analyze(), SeedForPhotonConversionFromQuadruplets::buildSeedBool(), Traj2TrackHits::clone(), clone(), TValidTrackingRecHit::cloneHit(), GenericTransientTrackingRecHit::cloneHit(), cloneHit(), cloneSH(), RPCSeedrecHitFinder::complete(), RPCCosmicSeedrecHitFinder::complete(), GenericTransientTrackingRecHit::GenericTransientTrackingRecHit(), MuonSeedCleaner::NChi2OfSegment(), MuonSeedCleaner::NRecHitsFromSegment(), MuonTrackProducer::produce(), cms::SimpleTrackListMerger::produce(), TrackCandidateProducer::produce(), TrajectorySeedProducer::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 GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and GSSiTrackerRecHit2DLocalPos.

Definition at line 174 of file TrackingRecHit.h.

References clone().

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

Definition at line 83 of file TrackingRecHit.h.

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

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

Reimplemented in GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GenericTransientTrackingRecHit, and TValidTrackingRecHit.

Definition at line 76 of file TrackingRecHit.h.

References clone().

76 { return clone();}
virtual TrackingRecHit * clone() const =0
virtual RecHitPointer TrackingRecHit::cloneSH ( ) const
inlinevirtual

Definition at line 81 of file TrackingRecHit.h.

References clone().

Referenced by cloneForFit(), and cloneSH().

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

Definition at line 179 of file TrackingRecHit.h.

References cloneSH().

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

Definition at line 122 of file TrackingRecHit.h.

References m_det.

Referenced by BaseTrackerRecHit::BaseTrackerRecHit(), MuonDTSeedFromRecHits::bestBarrelHit(), Traj2TrackHits::clone(), CosmicMuonSeedGenerator::createSeed(), SiStripLorentzAngleCalibration::derivatives(), SiPixelLorentzAngleCalibration::derivatives(), SiStripBackplaneCalibration::derivatives(), TrackerSingleRecHit::detUnit(), detUnit(), InsideBoundsMeasurementEstimator::estimate(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), GCC11_FINAL< T, TOPO >::getKfComponents(), MuonTransientTrackingRecHit::globalDirection(), MuonTransientTrackingRecHit::globalDirectionError(), BaseTrackerRecHit::hasPositionAndError(), CurrentAlignmentKFUpdator::includeCurrentAlignmentEstimate(), GSRecHitMatcher::match(), GCC11_FINAL< T, TOPO >::parametersError(), MuonTransientTrackingRecHit::parametersError(), reco::modules::CosmicTrackSplitter::produce(), cms::CkfTrackCandidateMakerBase::produceBase(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), reco::modules::TrackerTrackHitFilter::produceFromTrajectory(), GSRecHitMatcher::projectOnly(), RecHitPropagator::propagate(), MuonDTLocalMillepedeAlgorithm::run(), TValidTrackingRecHit::surface(), BaseTrackerRecHit::surface(), surface(), MatchedHitRZCorrectionFromBending::tibMatchedHitZFixup(), ClusterShapeTrajectoryFilter::toBeContinued(), InOutConversionTrackFinder::tracks(), OutInConversionTrackFinder::tracks(), and MuonTransientTrackingRecHit::transientHits().

122 { 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 GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and TrackerSingleRecHit.

Definition at line 41 of file TrackingRecHit.cc.

References det().

Referenced by Traj2TrackHits::clone(), and Strip1DMeasurementTransformator::init().

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

Reimplemented in BaseTrackerRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and TValidTrackingRecHit.

Definition at line 50 of file TrackingRecHit.cc.

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

Reimplemented in BaseTrackerRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and TValidTrackingRecHit.

Definition at line 52 of file TrackingRecHit.cc.

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

Reimplemented in BaseTrackerRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, and TValidTrackingRecHit.

Definition at line 51 of file TrackingRecHit.cc.

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

Definition at line 120 of file TrackingRecHit.h.

References m_id.

Referenced by CRackTrajectoryBuilder::AddHit(), MuonDT2ChamberResidual::addResidual(), MuonCSCChamberResidual::addResidual(), MuonDT13ChamberResidual::addResidual(), fireworks::addSiStripClusters(), TrackDetectorAssociator::addTAMuonSegmentMatch(), CSCPairResidualsConstraint::addTrack(), AlignmentStats::analyze(), reco::HitPattern::appendHit(), TrackCleaner::areSame(), SegmentToTrackAssociator::associate(), TrackerHitAssociator::associateHit(), TrackerHitAssociator::associateHitId(), 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(), TrajectoryCleanerBySharedHits::clean(), cms::clusterProduct(), helper::MuonCollectionStoreManager::clusterRefsOK(), PixelClusterShapeSeedComparitor::compatibleHit(), SeedFromNuclearInteraction::construct(), CosmicMuonSeedGenerator::createSeed(), 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(), DynamicTruncation::filter(), SETFilter::findChi2(), DTSegmentUpdator::fit(), PixelTripletLowPtGenerator::getGlobalPosition(), HitInfo::getInfo(), ValidHitPairFilter::getLayer(), QuickTrackAssociatorByHits::getMatchedClusters(), MuonAssociatorByHits::getMatchedIds(), TrackAssociatorByHits::getMatchedIds(), SeedFromProtoTrack::init(), TrackerRecHit::init(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), Trajectory::isBad(), RPCCosmicSeedrecHitFinder::iscorssEdge(), MuonTransientTrackingRecHit::isCSC(), MuonTransientTrackingRecHit::isDT(), CalibrationTrackSelector::isHit2D(), AlignmentTrackSelector::isHit2D(), PrimaryVertexValidation::isHit2D(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), AlignmentTrackSelector::isOkCharge(), MuonTransientTrackingRecHit::isRPC(), RPCSeedOverlapper::isShareHit(), Trajectory::lost(), TempTrajectory::lost(), TrackClusterSplitter::markClusters(), GSRecHitMatcher::match(), MuonSegmentMatcher::matchDT(), TrackMerger::merge(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonSeedCleaner::NChi2OfSegment(), MuonSeedCleaner::NRecHitsFromSegment(), RecHitComparatorByPosition::operator()(), CompareHitPairsY::operator()(), HitComparatorByRadius::operator()(), TrackingRecHitLess::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(), HLTTrackClusterRemoverNew::process(), SeedClusterRemover::process(), TrackClusterRemover::process(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), MuonReSeeder::produce(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::produce(), TrackCandidateProducer::produce(), TrajectorySeedProducer::produce(), FakeTrackProducer< T >::produce(), TrackClusterSplitter::produce(), cms::CosmicTrackFinder::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), reco::modules::TrackerTrackHitFilter::produceFromTrajectory(), recHitDet(), DTSegmentUpdator::rejectBadHits(), ClusterRemovalRefSetter::reKey(), helper::ClusterStorer::ClusterHitRecord< ClusterRefType >::rekey(), KFBasedPixelFitter::run(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), GlobalMuonRefitter::selectMuonHits(), SiTrackerMultiRecHit::sharesInput(), SiTrackerGSMatchedRecHit2D::sharesInput(), StartingLayerFinder::startingLayers(), DTSLRecSegment2D::superLayerId(), FastTSGFromPropagation::trackerSeeds(), and DTSegmentUpdator::update().

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

Reimplemented in BaseTrackerRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, SiTrackerMultiRecHit, GCC11_FINAL< T, TOPO >, 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 145 of file TrackingRecHit.h.

References m_status, and rttiShift.

Referenced by trackerHitRTTI::rtti().

145 { 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
virtual bool TrackingRecHit::hasPositionAndError ( ) const
inlinevirtual

to be redefined by daughter class

Reimplemented in BaseTrackerRecHit.

Definition at line 137 of file TrackingRecHit.h.

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

Definition at line 143 of file TrackingRecHit.h.

References getType(), and valid.

Referenced by fireworks::addSiStripClusters(), SiStripQualityHotStripIdentifier::algoAnalyze(), AlignmentStats::analyze(), GroupedCkfTrajectoryBuilder::backwardFit(), MuonCSCSeedFromRecHits::bestEndcapHit(), FWTrackTrackingRecHitProxyBuilder::build(), reco::modules::TrackerTrackHitFilter::checkHit(), AlignmentTrackSelector::checkPrescaledHits(), CosmicMuonSeedGenerator::checkQuality(), TrajectoryCleanerBySharedHits::clean(), NuclearVertexBuilder::cleanTrackCollection(), helper::MuonCollectionStoreManager::clusterRefsOK(), MuonSeedOrcaPatternRecognition::complete(), OutsideInMuonSeeder::doDebug(), RecHitComparatorByPosition::equals(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), QuickTrackAssociatorByHits::getMatchedClusters(), MuonAssociatorByHits::getMatchedIds(), TrackAssociatorByHits::getMatchedIds(), GroupedCkfTrajectoryBuilder::groupedIntermediaryClean(), Trajectory::isBad(), AlignmentTrackSelector::isHit2D(), AlignmentTrackSelector::isOkCharge(), Trajectory::lost(), TempTrajectory::lost(), TrackMerger::merge(), MuonResidualsFromTrack::MuonResidualsFromTrack(), ConversionHitChecker::nSharedHits(), helper::MuonCollectionStoreManager::processMuon(), reco::modules::MultiTrackSelector::processMVA(), helper::TrackCollectionStoreManager::processTrack(), PFConversionProducer::produce(), AlignmentPrescaler::produce(), TkAlCaOverlapTagger::produce(), MuonReSeeder::produce(), HLTTrackClusterRemoverNew::produce(), ConversionTrackMerger::produce(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::produce(), TrackClusterRemover::produce(), TrackClusterSplitter::produce(), reco::modules::CosmicTrackSplitter::produce(), reco::modules::TrackerTrackHitFilter::produceFromTrack(), ClusterRemovalRefSetter::reKey(), MuonMillepedeAlgorithm::run(), HIPAlignmentAlgorithm::run(), MuonDTLocalMillepedeAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), reco::modules::MultiTrackSelector::select(), SiTrackerGSMatchedRecHit2D::sharesInput(), and ClusterShapeTrajectoryFilter::toBeContinued().

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

Implemented in DTRecSegment2D, DTSLRecCluster, BaseTrackerRecHit, DTRecHit1D, DTRecSegment4D, GEMRecHit, RPCRecHit, GCC11_FINAL< T, TOPO >, RecHit1D, DTRecHit1DPair, GCC11_FINAL< T, TOPO >, KFBasedPixelFitter::GCC11_FINAL, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, InvalidTrackingRecHit, GCC11_FINAL< T, TOPO >, GCC11_FINAL< T, TOPO >, RecHit2DLocalPos, 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(), RecHitComparatorByPosition::equals(), ForwardMeasurementEstimator::estimate(), BarrelMeasurementEstimator::estimate(), AlignmentMonitorTemplate::event(), AlignmentMonitorMuonResiduals::event(), AlignmentMonitorGeneric::event(), PixelTripletLowPtGenerator::getGlobalPosition(), TValidTrackingRecHit::globalPosition(), GCC11_FINAL< T, TOPO >::globalPosition(), TrackingRecHitLessFromGlobalPosition::insideOutLess(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), RPCSeedOverlapper::isShareHit(), GenericTransientTrackingRecHit::localPosition(), MuonResidualsFromTrack::MuonResidualsFromTrack(), RecHitComparatorByPosition::operator()(), CompareHitPairsY::operator()(), CompareHitY::operator()(), HitComparator::operator()(), CompareHitY_plus::operator()(), GCC11_FINAL< T, TOPO >::parameters(), QuadrupletSeedMerger::printHit(), QuadrupletSeedMerger::printNtuplet(), HIPAlignmentAlgorithm::processHit1D(), HIPAlignmentAlgorithm::processHit2D(), cms::SimpleTrackListMerger::produce(), cms::TrackListMerger::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)
void TrackingRecHit::setDet ( const GeomDet idet)
inline

Definition at line 88 of file TrackingRecHit.h.

References m_det.

Referenced by cloneForFit().

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

Definition at line 187 of file TrackingRecHit.h.

References m_id.

Referenced by DTChamberRecSegment2D::setChamberId().

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

Definition at line 190 of file TrackingRecHit.h.

References m_status, and rttiShift.

190 { 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 188 of file TrackingRecHit.h.

References m_status.

Referenced by MuonTransientTrackingRecHit::invalidateHit().

188 { 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 GCC11_FINAL< T, TOPO >, TrackerSingleRecHit, SiTrackerGSMatchedRecHit2D, SiTrackerGSRecHit2D, SiTrackerMultiRecHit, 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(), cms::SimpleTrackListMerger::produce(), and SeedFilter::seeds().

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
virtual ConstRecHitContainer TrackingRecHit::transientHits ( ) const
inlinevirtual

Reimplemented in GCC11_FINAL< T, TOPO >, and MuonTransientTrackingRecHit.

Definition at line 110 of file TrackingRecHit.h.

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

110  {
112  std::vector<const TrackingRecHit*> hits;
113  recHitsV(hits);
114  for (auto h : hits) result.push_back(h->cloneSH());
115  return result;
116  }
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 44 of file TrackingRecHit.h.

friend class TkCloner
friend

Definition at line 172 of file TrackingRecHit.h.

Member Data Documentation

const GeomDet* TrackingRecHit::m_det
private

Definition at line 198 of file TrackingRecHit.h.

Referenced by det(), and setDet().

id_type TrackingRecHit::m_id
private

Definition at line 194 of file TrackingRecHit.h.

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

unsigned int TrackingRecHit::m_status
private

Definition at line 196 of file TrackingRecHit.h.

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

const int TrackingRecHit::rttiShift = 24
static

Definition at line 57 of file TrackingRecHit.h.

Referenced by getRTTI(), and setRTTI().

const int TrackingRecHit::typeMask = 0xf
static

Definition at line 56 of file TrackingRecHit.h.

Referenced by getType(), and type().