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 (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 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.

◆ 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.

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) {}
unsigned int m_status
const GeomDet * m_det

◆ 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) {}
unsigned int m_status
const GeomDet * m_det

◆ 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) {}
static const int rttiShift
unsigned int m_status
const GeomDet * m_det

◆ 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) {}
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
unsigned int m_status
const GeomDet * m_det

◆ 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) {}
static const int rttiShift
DetId geographicalId() const
The label of this GeomDet.
Definition: GeomDet.h:64
unsigned int m_status
const GeomDet * m_det

◆ 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) {}
unsigned int m_status
const GeomDet * m_det

◆ ~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, Phase2TrackerRecHit1D, SiStripRecHit2D, SiStripRecHit1D, and GenericTransientTrackingRecHit.

Definition at line 166 of file TrackingRecHit.h.

166 { return false; }

◆ clone()

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

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

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

◆ clone_()

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

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

Definition at line 171 of file TrackingRecHit.h.

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

171  {
172  assert("clone" == nullptr);
173  return clone(); // default
174  }
assert(be >=bs)
virtual TrackingRecHit * clone() const =0

◆ cloneForFit()

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

Definition at line 82 of file TrackingRecHit.h.

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

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  }
virtual RecHitPointer cloneSH() const
virtual void setDet(const GeomDet &idet)

◆ cloneHit()

virtual TrackingRecHit* TrackingRecHit::cloneHit ( ) const
inlinevirtual

Reimplemented in BeamSpotTransientTrackingRecHit, TRecHit1DMomConstraint, GenericProjectedRecHit2D, GenericTransientTrackingRecHit, and TValidTrackingRecHit.

Definition at line 76 of file TrackingRecHit.h.

References clone().

76 { return clone(); }
virtual TrackingRecHit * clone() const =0

◆ cloneSH()

virtual RecHitPointer TrackingRecHit::cloneSH ( ) const
inlinevirtual

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

Definition at line 80 of file TrackingRecHit.h.

References clone().

Referenced by cloneForFit(), and cloneSH_().

80 { return RecHitPointer(clone()); }
std::shared_ptr< TrackingRecHit const > RecHitPointer
virtual TrackingRecHit * clone() const =0

◆ 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.

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

176  {
177  assert("cloneSH" == nullptr);
178  return cloneSH(); // default
179  }
virtual RecHitPointer cloneSH() const
assert(be >=bs)

◆ 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.

References det().

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

29 { return det(); }
const GeomDet * det() const

◆ dimension()

virtual int TrackingRecHit::dimension ( ) const
pure virtual

◆ errorGlobalR()

float TrackingRecHit::errorGlobalR ( ) const
virtual

Reimplemented in BaseTrackerRecHit, TRecHit2DPosConstraint, TRecHit1DMomConstraint, TRecHit5DParamConstraint, 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 BaseTrackerRecHit, TRecHit2DPosConstraint, TRecHit1DMomConstraint, TRecHit5DParamConstraint, 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 BaseTrackerRecHit, TRecHit2DPosConstraint, TRecHit1DMomConstraint, TRecHit5DParamConstraint, 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.

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(), Phase2OTValidateRecHitBase::fillOTRecHitHistos(), Phase2ITValidateRecHitBase::fillRechitHistos(), DTTimingExtractor::fillTiming(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), GEMEfficiencyAnalyzer::findCSCSegmentBeam(), 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(), 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().

120 { return m_id; }

◆ getKfComponents()

void TrackingRecHit::getKfComponents ( KfComponentsHolder holder) const
virtual

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

Definition at line 23 of file TrackingRecHit.cc.

References KfComponentsHolder::genericFill().

Referenced by SiTrackerMultiRecHitUpdator::ComputeWeight(), and HelpertRecHit2DLocalPos::getKfComponents().

23 { holder.genericFill(*this); }
void genericFill(const TrackingRecHit &hit)
Fill in datamembers from a generic TrackingRecHit using the CLHEP matrices.

◆ getRTTI()

unsigned int TrackingRecHit::getRTTI ( ) const
inline

Definition at line 143 of file TrackingRecHit.h.

References m_status, and rttiShift.

143 { return m_status >> rttiShift; }
static const int rttiShift
unsigned int m_status

◆ getType()

Type TrackingRecHit::getType ( ) const
inline

Definition at line 140 of file TrackingRecHit.h.

References m_status, and typeMask.

Referenced by isValid().

140 { return Type(typeMask & m_status); }
unsigned int m_status
static const int typeMask

◆ globalPosition()

GlobalPoint TrackingRecHit::globalPosition ( ) const
virtual

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

Definition at line 31 of file TrackingRecHit.cc.

Referenced by EtaPhiEstimator::estimate().

31  {
32  throwError();
33  return GlobalPoint();
34 }
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10

◆ globalPositionError()

GlobalError TrackingRecHit::globalPositionError ( ) const
virtual

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

Definition at line 35 of file TrackingRecHit.cc.

35  {
36  throwError();
37  return GlobalError();
38 }
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13

◆ 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.

References recHits(), and findQualityFiles::v.

Referenced by transientHits().

9 { v = recHits(); }
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)

◆ recHitsV() [2/2]

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

Definition at line 10 of file TrackingRecHit.cc.

References recHits(), and findQualityFiles::v.

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

◆ setDet()

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

Reimplemented in ProjectedSiStripRecHit2D.

Definition at line 88 of file TrackingRecHit.h.

References m_det.

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

88 { m_det = &idet; }
const GeomDet * m_det

◆ setId()

void TrackingRecHit::setId ( id_type  iid)
inlineprotected

Definition at line 184 of file TrackingRecHit.h.

References m_id.

Referenced by DTChamberRecSegment2D::setChamberId().

184 { m_id = iid; }

◆ setRTTI()

void TrackingRecHit::setRTTI ( unsigned int  rt)
inlineprotected

Definition at line 187 of file TrackingRecHit.h.

References m_status, hcal_runs::rt, and rttiShift.

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

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

Definition at line 12 of file TrackingRecHit.cc.

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

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

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 }
tuple msg
Definition: mps_check.py:286

◆ surface()

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

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

Definition at line 123 of file TrackingRecHit.h.

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

Referenced by TrackingNtuple::fillSeeds().

123 { return &(det()->surface()); }
const GeomDet * det() const
const Plane & surface() const
The nominal surface of the GeomDet.
Definition: GeomDet.h:37

◆ transientHits()

virtual ConstRecHitContainer TrackingRecHit::transientHits ( ) const
inlinevirtual

Reimplemented in MuonTransientTrackingRecHit.

Definition at line 109 of file TrackingRecHit.h.

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

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  }
virtual void recHitsV(std::vector< const TrackingRecHit *> &) const
TransientTrackingRecHit::ConstRecHitContainer ConstRecHitContainer
The Signals That Services Can Subscribe To This is based on ActivityRegistry h
Helper function to determine trigger accepts.
Definition: Activities.doc:4

◆ type()

Type TrackingRecHit::type ( ) const
inline

Definition at line 139 of file TrackingRecHit.h.

References m_status, and typeMask.

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

139 { return Type(typeMask & m_status); }
unsigned int m_status
static const int typeMask

◆ 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().