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, inactive_inner = 6, inactive_outer = 7
}
 

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 (const GeomDet &idet, TrackingRecHit const &rh)
 
 TrackingRecHit (const GeomDet &idet, Type type=valid)
 
 TrackingRecHit (const GeomDet &idet, unsigned int rt, Type type=valid)
 
 TrackingRecHit (DetId id, Type type=valid)
 
 TrackingRecHit (DetId id, unsigned int rt, Type type=valid)
 
 TrackingRecHit (id_type id=0, Type type=valid)
 
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 21 of file TrackingRecHit.h.

Member Typedef Documentation

◆ ConstRecHitContainer

Definition at line 32 of file TrackingRecHit.h.

◆ ConstRecHitPointer

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

Definition at line 25 of file TrackingRecHit.h.

◆ id_type

typedef unsigned int TrackingRecHit::id_type

Definition at line 36 of file TrackingRecHit.h.

◆ RecHitContainer

Definition at line 31 of file TrackingRecHit.h.

◆ RecHitPointer

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

Definition at line 24 of file TrackingRecHit.h.

Member Enumeration Documentation

◆ SharedInputType

definition of equality via shared input

Enumerator
all 
some 

Definition at line 59 of file TrackingRecHit.h.

59 { all, some };

◆ Type

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 
inactive_inner 
inactive_outer 

Definition at line 45 of file TrackingRecHit.h.

45  {
46  valid = 0,
47  missing = 1,
48  inactive = 2,
49  bad = 3,
50  missing_inner = 4,
51  missing_outer = 5,
52  inactive_inner = 6,
53  inactive_outer = 7
54  };

Constructor & Destructor Documentation

◆ TrackingRecHit() [1/6]

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

Definition at line 61 of file TrackingRecHit.h.

61 : m_id(id), m_status(type), m_det(nullptr) {}

◆ TrackingRecHit() [2/6]

TrackingRecHit::TrackingRecHit ( id_type  id = 0,
Type  type = valid 
)
inlineexplicit

Definition at line 62 of file TrackingRecHit.h.

62 : m_id(id), m_status(type), m_det(nullptr) {}

◆ TrackingRecHit() [3/6]

TrackingRecHit::TrackingRecHit ( DetId  id,
unsigned int  rt,
Type  type = valid 
)
inline

Definition at line 63 of file TrackingRecHit.h.

64  : m_id(id), m_status((rt << rttiShift) | int(type)), m_det(nullptr) {}

◆ TrackingRecHit() [4/6]

TrackingRecHit::TrackingRecHit ( const GeomDet idet,
Type  type = valid 
)
inlineexplicit

Definition at line 66 of file TrackingRecHit.h.

67  : m_id(idet.geographicalId()), m_status(type), m_det(&idet) {}

◆ TrackingRecHit() [5/6]

TrackingRecHit::TrackingRecHit ( const GeomDet idet,
unsigned int  rt,
Type  type = valid 
)
inline

Definition at line 68 of file TrackingRecHit.h.

69  : m_id(idet.geographicalId()), m_status((rt << rttiShift) | int(type)), m_det(&idet) {}

◆ TrackingRecHit() [6/6]

TrackingRecHit::TrackingRecHit ( const GeomDet idet,
TrackingRecHit const &  rh 
)
inline

Definition at line 70 of file TrackingRecHit.h.

70 : m_id(rh.m_id), m_status(rh.m_status), m_det(&idet) {}

◆ ~TrackingRecHit()

virtual TrackingRecHit::~TrackingRecHit ( )
inlinevirtual

Definition at line 72 of file TrackingRecHit.h.

72 {}

Member Function Documentation

◆ canImproveWithTrack()

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

Definition at line 166 of file TrackingRecHit.h.

166 { return false; }

◆ clone()

virtual TrackingRecHit* TrackingRecHit::clone ( ) const
pure virtual

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

Referenced by RPCMonitorDigi::analyze(), SeedForPhotonConversionFromQuadruplets::buildSeedBool(), SimpleDAFHitCollector::clone(), Traj2TrackHits::clone(), clone_(), TValidTrackingRecHit::cloneHit(), GenericTransientTrackingRecHit::cloneHit(), cloneHit(), cloneSH(), RPCSeedrecHitFinder::complete(), RPCCosmicSeedrecHitFinder::complete(), MkFitOutputConverter::convertCandidates(), GenericTransientTrackingRecHit::GenericTransientTrackingRecHit(), MuonSeedCleaner::NChi2OfSegment(), MuonSeedCleaner::NRecHitsFromSegment(), MuonTrackProducer::produce(), SimpleCosmicBONSeeder::produce(), MuonMillepedeTrackRefitter::produce(), SeedingOTEDProducer::run(), and SeedFromProtoTrack::SeedFromProtoTrack().

◆ clone_()

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

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

Definition at line 171 of file TrackingRecHit.h.

171  {
172  assert("clone" == nullptr);
173  return clone(); // default
174  }

References cms::cuda::assert(), and clone().

◆ cloneForFit()

RecHitPointer TrackingRecHit::cloneForFit ( const GeomDet idet) const
inline

Definition at line 82 of file TrackingRecHit.h.

82  {
83  auto cl = cloneSH();
84  const_cast<TrackingRecHit&>(*cl).setDet(idet); // const_cast (can be fixed editing some 100 files)
85  return cl;
86  }

References GetRecoTauVFromDQM_MC_cff::cl, and cloneSH().

◆ cloneHit()

virtual TrackingRecHit* TrackingRecHit::cloneHit ( ) const
inlinevirtual

◆ cloneSH()

virtual RecHitPointer TrackingRecHit::cloneSH ( ) const
inlinevirtual

Reimplemented in VectorHit, SiStripMatchedRecHit2D, SiPixelRecHit, SiStripRecHit2D, SiStripRecHit1D, Phase2TrackerRecHit1D, and InvalidTrackingRecHit.

Definition at line 80 of file TrackingRecHit.h.

80 { return RecHitPointer(clone()); }

References clone().

Referenced by cloneForFit(), and cloneSH_().

◆ cloneSH_()

virtual RecHitPointer TrackingRecHit::cloneSH_ ( TkCloner const &  ,
TrajectoryStateOnSurface const &   
) const
inlineprivatevirtual

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

Definition at line 176 of file TrackingRecHit.h.

176  {
177  assert("cloneSH" == nullptr);
178  return cloneSH(); // default
179  }

References cms::cuda::assert(), and cloneSH().

◆ det()

const GeomDet* TrackingRecHit::det ( ) const
inline

◆ detUnit()

const GeomDetUnit * TrackingRecHit::detUnit ( ) const
virtual

CAUTION: the GeomDetUnit* is zero for composite hits (matched hits in the tracker, segments in the muon). Always check this pointer before using it!

Reimplemented in TRecHit1DMomConstraint, and TrackerSingleRecHit.

Definition at line 29 of file TrackingRecHit.cc.

29 { return det(); }

References det().

Referenced by FastTrackerRecHitSplitter::buildSplitStripHit(), SimpleDAFHitCollector::clone(), Traj2TrackHits::clone(), Chi2Switching1DEstimator::estimate(), and KFSwitching1DUpdator::update().

◆ dimension()

virtual int TrackingRecHit::dimension ( ) const
pure virtual

◆ errorGlobalR()

float TrackingRecHit::errorGlobalR ( ) const
virtual

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

Definition at line 40 of file TrackingRecHit.cc.

40  {
41  throwError();
42  return 0;
43 }

◆ errorGlobalRPhi()

float TrackingRecHit::errorGlobalRPhi ( ) const
virtual

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

Definition at line 48 of file TrackingRecHit.cc.

48  {
49  throwError();
50  return 0;
51 }

◆ errorGlobalZ()

float TrackingRecHit::errorGlobalZ ( ) const
virtual

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

Definition at line 44 of file TrackingRecHit.cc.

44  {
45  throwError();
46  return 0;
47 }

◆ geographicalId()

DetId TrackingRecHit::geographicalId ( ) const
inline

Definition at line 120 of file TrackingRecHit.h.

120 { return m_id; }

References m_id.

Referenced by TkGluedMeasurementDet::HitCollectorForSimpleHits::add(), TkGluedMeasurementDet::HitCollectorForFastMeasurements::add(), CRackTrajectoryBuilder::AddHit(), fireworks::addSiStripClusters(), TrackDetectorAssociator::addTAMuonSegmentMatch(), SiStripLAProfileBooker::analyze(), SeedMultiplicityAnalyzer::analyze(), TrackerDpgAnalysis::analyze(), SiStripTrackingRecHitsValid::analyze(), SegmentToTrackAssociator::associate(), CSCHitAssociator::associateCSCHitId(), TrackerHitAssociator::associateHit(), CSCHitAssociator::associateHitId(), TrackerHitAssociator::associatePhase2TrackerRecHit(), TrackerHitAssociator::associatePixelRecHit(), SiPixelCoordinates::blade_coord(), SiPixelCoordinates::blade_panel_coord(), FWTrackTrackingRecHitProxyBuilder::build(), DTSegmentUpdator::calculateT0corr(), DTChamberRecSegment2D::chamberId(), DTRecSegment4D::chamberId(), SiPixelCoordinates::channel(), TrajectoryCleanerBySharedHits::clean(), CSCRecHit2D::cscDetId(), CSCSegment::cscDetId(), GEMCSCSegment::cscDetId(), SiPixelCoordinates::disk_coord(), SiPixelCoordinates::disk_ring_coord(), MuonAlignmentAnalyzer::doMatching(), DTRecSegment4D::DTRecSegment4D(), DTTimingExtractor::fillTiming(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), SiStripFineDelayTLA::findtrackangle(), DTSegmentUpdator::fit(), GEMSegment::gemDetId(), QuickTrackAssociatorByHitsImpl::getAllSimTrackIdentifiers(), QuickTrackAssociatorByHitsImpl::getDoubleCount(), MuonAssociatorByHitsHelper::getMatchedIds(), TrajSeedMatcher::getNrValidLayersAlongTraj(), track_associator::hitsToClusterRefs(), SiStripMonitorTrack::hitStudy(), SeedFromProtoTrack::init(), TrackerDpgAnalysis::insertMeasurement(), MTDTransientTrackingRecHit::isBTL(), MuonTransientTrackingRecHit::isCSC(), CRackTrajectoryBuilder::isDifferentStripReHit2D(), MuonTransientTrackingRecHit::isDT(), MTDTransientTrackingRecHit::isETL(), MuonTransientTrackingRecHit::isGEM(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), MuonTransientTrackingRecHit::isME0(), MuonTransientTrackingRecHit::isRPC(), SiPixelCoordinates::ladder_coord(), FastTrackerRecHitMatcher::match(), MuonSegmentMatcher::matchDT(), ME0Segment::me0DetId(), SiPixelCoordinates::module_coord(), MuonResidualsFromTrack::MuonResidualsFromTrack(), MuonSeedCleaner::NChi2OfSegment(), MuonSeedCleaner::NRecHitsFromSegment(), CompareHitPairsY::operator()(), CompareDetY_plus::operator()(), CompareHitY::operator()(), TrackMerger::MomentumSort::operator()(), CompareHitY_plus::operator()(), CompareDetY_minus::operator()(), operator<<(), ME0RecHit::operator==(), GEMRecHit::operator==(), RPCRecHit::operator==(), DeDxHitInfoProducer::processHit(), TrackListMerger::produce(), FakeTrackProducer< T >::produce(), TrackCandidateProducer::produce(), ShallowGainCalibration::produce(), reco::modules::CosmicTrackSplitter::produce(), DTSegmentUpdator::rejectBadHits(), helper::ClusterStorer::ClusterHitRecord< ClusterRefType >::rekey(), SiPixelCoordinates::ring_coord(), SiPixelCoordinates::roc(), TrackInfoProducerAlgorithm::run(), BaseTrackerRecHit::sameDetModule(), GlobalMuonRefitter::selectMuonHits(), SiStripMatchedRecHit2D::sharesInput(), SiTrackerMultiRecHit::sharesInput(), VectorHit::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(), DTSLRecSegment2D::superLayerId(), FastTSGFromPropagation::trackerSeeds(), SiStripMonitorTrack::trajectoryStudy(), DTSegmentUpdator::update(), and QuickTrackAssociatorByHitsImpl::weightedNumberOfTrackClusters().

◆ getKfComponents()

void TrackingRecHit::getKfComponents ( KfComponentsHolder holder) const
virtual

◆ getRTTI()

unsigned int TrackingRecHit::getRTTI ( ) const
inline

Definition at line 143 of file TrackingRecHit.h.

143 { return m_status >> rttiShift; }

References m_status, and rttiShift.

◆ getType()

Type TrackingRecHit::getType ( ) const
inline

Definition at line 140 of file TrackingRecHit.h.

140 { return Type(typeMask & m_status); }

References m_status, and typeMask.

Referenced by isValid().

◆ globalPosition()

GlobalPoint TrackingRecHit::globalPosition ( ) const
virtual

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

Definition at line 31 of file TrackingRecHit.cc.

31  {
32  throwError();
33  return GlobalPoint();
34 }

Referenced by EtaPhiEstimator::estimate().

◆ globalPositionError()

GlobalError TrackingRecHit::globalPositionError ( ) const
virtual

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

Definition at line 35 of file TrackingRecHit.cc.

35  {
36  throwError();
37  return GlobalError();
38 }

◆ hasPositionAndError()

virtual bool TrackingRecHit::hasPositionAndError ( ) const
inlinevirtual

to be redefined by daughter class

Reimplemented in VectorHit, and BaseTrackerRecHit.

Definition at line 135 of file TrackingRecHit.h.

135 { return true; };

◆ hit()

virtual TrackingRecHit const* TrackingRecHit::hit ( ) const
inlinevirtual

◆ isValid()

bool TrackingRecHit::isValid ( void  ) const
inline

◆ localPosition()

virtual LocalPoint TrackingRecHit::localPosition ( ) const
pure virtual

◆ localPositionError()

virtual LocalError TrackingRecHit::localPositionError ( ) const
pure virtual

◆ parameters()

virtual AlgebraicVector TrackingRecHit::parameters ( ) const
pure virtual

◆ parametersError()

virtual AlgebraicSymMatrix TrackingRecHit::parametersError ( ) const
pure virtual

◆ projectionMatrix()

virtual AlgebraicMatrix TrackingRecHit::projectionMatrix ( ) const
pure virtual

◆ rawId()

id_type TrackingRecHit::rawId ( ) const
inline

◆ recHits() [1/2]

virtual std::vector<const TrackingRecHit*> TrackingRecHit::recHits ( ) const
pure virtual

◆ recHits() [2/2]

virtual std::vector<TrackingRecHit*> TrackingRecHit::recHits ( )
pure virtual

◆ recHitsV() [1/2]

void TrackingRecHit::recHitsV ( std::vector< const TrackingRecHit * > &  v) const
virtual

Definition at line 9 of file TrackingRecHit.cc.

9 { v = recHits(); }

References recHits(), and findQualityFiles::v.

Referenced by transientHits().

◆ recHitsV() [2/2]

void TrackingRecHit::recHitsV ( std::vector< TrackingRecHit * > &  v)
virtual

Definition at line 10 of file TrackingRecHit.cc.

10 { v = recHits(); }

References recHits(), and findQualityFiles::v.

◆ setDet()

virtual void TrackingRecHit::setDet ( const GeomDet idet)
inlinevirtual

Reimplemented in ProjectedSiStripRecHit2D.

Definition at line 88 of file TrackingRecHit.h.

88 { m_det = &idet; }

References m_det.

Referenced by ProjectedSiStripRecHit2D::setDet().

◆ setId()

void TrackingRecHit::setId ( id_type  iid)
inlineprotected

Definition at line 184 of file TrackingRecHit.h.

184 { m_id = iid; }

References m_id.

Referenced by DTChamberRecSegment2D::setChamberId().

◆ setRTTI()

void TrackingRecHit::setRTTI ( unsigned int  rt)
inlineprotected

Definition at line 187 of file TrackingRecHit.h.

187 { m_status &= (rt << rttiShift); } // can be done only once...

References m_status, hcal_runs::rt, and rttiShift.

◆ setType()

void TrackingRecHit::setType ( Type  ttype)
inlineprotected

◆ sharesInput()

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, FastTrackerRecHit, VectorHit, SiTrackerMultiRecHit, SiStripMatchedRecHit2D, InvalidTrackingRecHit, FTLTrackingRecHit< ObjRef >, TrackerSingleRecHit, FTLTrackingRecHit< ObjRef >, FTLTrackingRecHit< ObjRef >, TRecHit2DPosConstraint, TRecHit5DParamConstraint, and TRecHit1DMomConstraint.

Definition at line 12 of file TrackingRecHit.cc.

12  {
13  //
14  // for the time being: don't force implementation in all derived classes
15  // but throw exception to indicate missing implementation
16  //
17  std::string msg("Missing implementation of TrackingRecHit::sharedInput in ");
18  msg += typeid(*this).name();
19  throw cms::Exception(msg);
20  return false;
21 }

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

Referenced by TrajectoryCleanerBySharedHits::clean(), ConversionHitChecker::nSharedHits(), ConversionTrackMerger::produce(), CSCSegment::sharesRecHits(), and CSCSegment::testSharesAllInSpecificRecHits().

◆ surface()

virtual const Surface* TrackingRecHit::surface ( ) const
inlinevirtual

◆ transientHits()

virtual ConstRecHitContainer TrackingRecHit::transientHits ( ) const
inlinevirtual

Reimplemented in MuonTransientTrackingRecHit.

Definition at line 109 of file TrackingRecHit.h.

109  {
111  std::vector<const TrackingRecHit*> hits;
112  recHitsV(hits);
113  for (auto h : hits)
114  result.push_back(h->cloneSH());
115  return result;
116  }

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

◆ type()

Type TrackingRecHit::type ( ) const
inline

Definition at line 139 of file TrackingRecHit.h.

139 { return Type(typeMask & m_status); }

References m_status, and typeMask.

Referenced by reco::modules::CosmicTrackSplitter::produce().

◆ weight()

virtual float TrackingRecHit::weight ( ) const
inlinevirtual

Definition at line 137 of file TrackingRecHit.h.

137 { return 1.; }

Friends And Related Function Documentation

◆ MuonTransientTrackingRecHit

friend class MuonTransientTrackingRecHit
friend

Definition at line 34 of file TrackingRecHit.h.

◆ TkCloner

friend class TkCloner
friend

Definition at line 169 of file TrackingRecHit.h.

Member Data Documentation

◆ m_det

const GeomDet* TrackingRecHit::m_det
private

Definition at line 194 of file TrackingRecHit.h.

Referenced by det(), and setDet().

◆ m_id

id_type TrackingRecHit::m_id
private

Definition at line 190 of file TrackingRecHit.h.

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

◆ m_status

unsigned int TrackingRecHit::m_status
private

Definition at line 192 of file TrackingRecHit.h.

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

◆ rttiShift

const int TrackingRecHit::rttiShift = 24
static

Definition at line 56 of file TrackingRecHit.h.

Referenced by getRTTI(), and setRTTI().

◆ typeMask

const int TrackingRecHit::typeMask = 0xf
static

Definition at line 55 of file TrackingRecHit.h.

Referenced by getType(), and type().

TrackingRecHit::typeMask
static const int typeMask
Definition: TrackingRecHit.h:55
TrackingRecHit::missing_inner
Definition: TrackingRecHit.h:50
TrackingRecHit::m_id
id_type m_id
Definition: TrackingRecHit.h:190
hfClusterShapes_cfi.hits
hits
Definition: hfClusterShapes_cfi.py:5
hcal_runs.rt
rt
Definition: hcal_runs.py:76
TrackingRecHit::det
const GeomDet * det() const
Definition: TrackingRecHit.h:122
cms::cuda::assert
assert(be >=bs)
TrackingRecHit::m_status
unsigned int m_status
Definition: TrackingRecHit.h:192
mps_check.msg
tuple msg
Definition: mps_check.py:285
TrackingRecHit::RecHitPointer
std::shared_ptr< TrackingRecHit const > RecHitPointer
Definition: TrackingRecHit.h:24
findQualityFiles.v
v
Definition: findQualityFiles.py:179
TrackingRecHit::rttiShift
static const int rttiShift
Definition: TrackingRecHit.h:56
GetRecoTauVFromDQM_MC_cff.cl
cl
Definition: GetRecoTauVFromDQM_MC_cff.py:38
GlobalError
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
GeomDet::surface
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37
KfComponentsHolder::genericFill
void genericFill(const TrackingRecHit &hit)
Fill in datamembers from a generic TrackingRecHit using the CLHEP matrices.
Definition: KfComponentsHolder.cc:22
TrackingRecHit::Type
Type
Definition: TrackingRecHit.h:45
h
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
TrackingRecHit::some
Definition: TrackingRecHit.h:59
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrackingRecHit::inactive_inner
Definition: TrackingRecHit.h:52
TrackingRecHit::bad
Definition: TrackingRecHit.h:49
GeomDet::geographicalId
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
TrackingRecHit::getType
Type getType() const
Definition: TrackingRecHit.h:140
TrackingRecHit::all
Definition: TrackingRecHit.h:59
type
type
Definition: SiPixelVCal_PayloadInspector.cc:37
TrackingRecHit::missing
Definition: TrackingRecHit.h:47
TrackingRecHit::inactive_outer
Definition: TrackingRecHit.h:53
createfilelist.int
int
Definition: createfilelist.py:10
TrackingRecHit::missing_outer
Definition: TrackingRecHit.h:51
TrackingRecHit::m_det
const GeomDet * m_det
Definition: TrackingRecHit.h:194
TrackingRecHit::clone
virtual TrackingRecHit * clone() const =0
TrackingRecHit::valid
Definition: TrackingRecHit.h:46
TrackingRecHit::recHits
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
ConstRecHitContainer
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
Definition: MillePedeAlignmentAlgorithm.cc:74
Exception
Definition: hltDiff.cc:246
TrackingRecHit::cloneSH
virtual RecHitPointer cloneSH() const
Definition: TrackingRecHit.h:80
TrackingRecHit::recHitsV
virtual void recHitsV(std::vector< const TrackingRecHit * > &) const
Definition: TrackingRecHit.cc:9
TrackingRecHit::inactive
Definition: TrackingRecHit.h:48
mps_fire.result
result
Definition: mps_fire.py:311