CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Protected Attributes | Static Private Member Functions
BaseTrackerRecHit Class Referenceabstract

#include <BaseTrackerRecHit.h>

Inheritance diagram for BaseTrackerRecHit:
TrackingRecHit FastTrackerRecHit SiStripMatchedRecHit2D SiTrackerMultiRecHit TrackerSingleRecHit VectorHit FastMatchedTrackerRecHit FastProjectedTrackerRecHit FastSingleTrackerRecHit MTDTrackingRecHit Phase2TrackerRecHit1D ProjectedSiStripRecHit2D SiPixelRecHit SiStripRecHit1D SiStripRecHit2D

Public Member Functions

 BaseTrackerRecHit ()
 
 BaseTrackerRecHit (DetId id, trackerHitRTTI::RTTI rt)
 
 BaseTrackerRecHit (const GeomDet &idet, trackerHitRTTI::RTTI rt)
 
 BaseTrackerRecHit (const LocalPoint &p, const LocalError &e, GeomDet const &idet, trackerHitRTTI::RTTI rt)
 
virtual float clusterProbability () const
 cluster probability, overloaded by pixel rechits. More...
 
int dimension () const override=0
 
float errorGlobalR () const final
 
float errorGlobalRPhi () const final
 
float errorGlobalZ () const final
 
virtual OmniClusterRef const & firstClusterRef () const =0
 
void getKfComponents (KfComponentsHolder &holder) const override=0
 
void getKfComponents1D (KfComponentsHolder &holder) const
 
void getKfComponents2D (KfComponentsHolder &holder) const
 
GlobalPoint globalPosition () const final
 
GlobalError globalPositionError () const final
 
TrackingRecHitGlobalState globalState () const
 
bool hasPositionAndError () const override
 to be redefined by daughter class More...
 
BaseTrackerRecHit const * hit () const final
 
bool isMatched () const
 
bool isMulti () const
 
virtual bool isPhase2 () const
 
virtual bool isPixel () const
 
bool isProjected () const
 
bool isProjMono () const
 
bool isProjStereo () const
 
bool isSingle () const
 
LocalPoint localPosition () const override
 
LocalError localPositionError () const override
 
const LocalErrorlocalPositionErrorFast () const
 
const LocalPointlocalPositionFast () const
 
AlgebraicVector parameters () const override
 
AlgebraicSymMatrix parametersError () const override
 
AlgebraicMatrix projectionMatrix () const override
 
trackerHitRTTI::RTTI rtti () const
 
bool sameDetModule (TrackingRecHit const &hit) const
 
const Surfacesurface () const final
 
 ~BaseTrackerRecHit () override
 
- Public Member Functions inherited from TrackingRecHit
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
 
DetId geographicalId () const
 
unsigned int getRTTI () const
 
Type getType () const
 
bool isValid () const
 
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
 
 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 ()
 

Protected Attributes

LocalError err_
 
LocalPoint pos_
 
unsigned int qualWord_
 

Static Private Member Functions

static void check ()
 

Additional Inherited Members

- Public Types inherited from TrackingRecHit
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, inactive_inner = 6, inactive_outer = 7
}
 
- Static Public Attributes inherited from TrackingRecHit
static const int rttiShift = 24
 
static const int typeMask = 0xf
 
- Protected Member Functions inherited from TrackingRecHit
void setId (id_type iid)
 
void setRTTI (unsigned int rt)
 
void setType (Type ttype)
 

Detailed Description

Definition at line 15 of file BaseTrackerRecHit.h.

Constructor & Destructor Documentation

BaseTrackerRecHit::BaseTrackerRecHit ( )
inline

Definition at line 17 of file BaseTrackerRecHit.h.

17 : qualWord_(0) {}
unsigned int qualWord_
BaseTrackerRecHit::~BaseTrackerRecHit ( )
inlineoverride

Definition at line 22 of file BaseTrackerRecHit.h.

22 {}
BaseTrackerRecHit::BaseTrackerRecHit ( DetId  id,
trackerHitRTTI::RTTI  rt 
)
inline

Definition at line 25 of file BaseTrackerRecHit.h.

25 : TrackingRecHit(id, (unsigned int)(rt)), qualWord_(0) {}
list rt
Definition: hcal_runs.py:76
TrackingRecHit(DetId id, Type type=valid)
unsigned int qualWord_
BaseTrackerRecHit::BaseTrackerRecHit ( const GeomDet idet,
trackerHitRTTI::RTTI  rt 
)
inline

Definition at line 26 of file BaseTrackerRecHit.h.

27  : TrackingRecHit(idet, (unsigned int)(rt)), qualWord_(0) {}
list rt
Definition: hcal_runs.py:76
TrackingRecHit(DetId id, Type type=valid)
unsigned int qualWord_
BaseTrackerRecHit::BaseTrackerRecHit ( const LocalPoint p,
const LocalError e,
GeomDet const &  idet,
trackerHitRTTI::RTTI  rt 
)
inline

Definition at line 29 of file BaseTrackerRecHit.h.

References runTheMatrix::const, TrackingRecHit::det(), err_, LocalError::valid(), LocalError::xx(), LocalError::xy(), and LocalError::yy().

30  : TrackingRecHit(idet, (unsigned int)(rt)), pos_(p), err_(e), qualWord_(0) {
31  auto trackerDet = static_cast<TrackerGeomDet const*>(det());
32  LocalError lape = trackerDet->localAlignmentError();
33  if (lape.valid())
34  err_ = LocalError(err_.xx() + lape.xx(), err_.xy() + lape.xy(), err_.yy() + lape.yy());
35  }
bool valid() const
Definition: LocalError.h:20
float xx() const
Definition: LocalError.h:22
list rt
Definition: hcal_runs.py:76
float xy() const
Definition: LocalError.h:23
float yy() const
Definition: LocalError.h:24
const GeomDet * det() const
TrackingRecHit(DetId id, Type type=valid)
unsigned int qualWord_

Member Function Documentation

static void BaseTrackerRecHit::check ( )
inlinestaticprivate
virtual float BaseTrackerRecHit::clusterProbability ( ) const
inlinevirtual

cluster probability, overloaded by pixel rechits.

Definition at line 108 of file BaseTrackerRecHit.h.

108 { return 1.f; }
int BaseTrackerRecHit::dimension ( ) const
overridepure virtual
float BaseTrackerRecHit::errorGlobalR ( ) const
inlinefinalvirtual

Reimplemented from TrackingRecHit.

Definition at line 90 of file BaseTrackerRecHit.h.

References globalPosition(), globalPositionError(), and mathSSE::sqrt().

90 { return std::sqrt(globalPositionError().rerr(globalPosition())); }
GlobalError globalPositionError() const final
T sqrt(T t)
Definition: SSEVec.h:19
GlobalPoint globalPosition() const final
float BaseTrackerRecHit::errorGlobalRPhi ( ) const
inlinefinalvirtual

Reimplemented from TrackingRecHit.

Definition at line 92 of file BaseTrackerRecHit.h.

References globalPosition(), globalPositionError(), PV3DBase< T, PVType, FrameType >::perp(), and mathSSE::sqrt().

92  {
93  return globalPosition().perp() * sqrt(globalPositionError().phierr(globalPosition()));
94  }
T perp() const
Definition: PV3DBase.h:69
GlobalError globalPositionError() const final
T sqrt(T t)
Definition: SSEVec.h:19
GlobalPoint globalPosition() const final
float BaseTrackerRecHit::errorGlobalZ ( ) const
inlinefinalvirtual

Reimplemented from TrackingRecHit.

Definition at line 91 of file BaseTrackerRecHit.h.

References globalPositionError(), and mathSSE::sqrt().

91 { return std::sqrt(globalPositionError().czz()); }
GlobalError globalPositionError() const final
T sqrt(T t)
Definition: SSEVec.h:19
virtual OmniClusterRef const& BaseTrackerRecHit::firstClusterRef ( ) const
pure virtual
void BaseTrackerRecHit::getKfComponents ( KfComponentsHolder holder) const
overridepure virtual
void BaseTrackerRecHit::getKfComponents1D ( KfComponentsHolder holder) const

Definition at line 35 of file BaseTrackerRecHit.cc.

References err_, KfComponentsHolder::errors(), hasPositionAndError(), ProjectMatrix< T, N, D >::index, KfComponentsHolder::measuredErrors(), KfComponentsHolder::measuredParams(), KfComponentsHolder::params(), pos_, KfComponentsHolder::projFunc(), KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), PV3DBase< T, PVType, FrameType >::x(), and LocalError::xx().

Referenced by SiStripRecHit1D::getKfComponents(), SiTrackerMultiRecHit::getKfComponents(), and FastTrackerRecHit::getKfComponents().

35  {
36 #if defined(DO_THROW_UNINITIALIZED)
37  if (!hasPositionAndError())
38  throwExceptionUninitialized("getKfComponents");
39 #endif
40  AlgebraicVector1 &pars = holder.params<1>();
41  pars[0] = pos_.x();
42 
43  AlgebraicSymMatrix11 &errs = holder.errors<1>();
44  errs(0, 0) = err_.xx();
45 
46  ProjectMatrix<double, 5, 1> &pf = holder.projFunc<1>();
47  pf.index[0] = 3;
48 
49  holder.measuredParams<1>() = AlgebraicVector1(holder.tsosLocalParameters().At(3));
50  holder.measuredErrors<1>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix11>(3, 3);
51 }
float xx() const
Definition: LocalError.h:22
ROOT::Math::SVector< double, 1 > AlgebraicVector1
AlgebraicROOTObject< D, D >::SymMatrix & measuredErrors()
bool hasPositionAndError() const override
to be redefined by daughter class
AlgebraicROOTObject< D >::Vector & params()
AlgebraicROOTObject< D, D >::SymMatrix & errors()
ProjectMatrix< double, 5, D > & projFunc()
ROOT::Math::SMatrix< double, 1, 1, ROOT::Math::MatRepSym< double, 1 > > AlgebraicSymMatrix11
const AlgebraicVector5 & tsosLocalParameters() const
AlgebraicROOTObject< D >::Vector & measuredParams()
unsigned int index[D]
Definition: ProjectMatrix.h:62
T x() const
Definition: PV3DBase.h:59
const AlgebraicSymMatrix55 & tsosLocalErrors() const
void BaseTrackerRecHit::getKfComponents2D ( KfComponentsHolder holder) const

Definition at line 53 of file BaseTrackerRecHit.cc.

References err_, KfComponentsHolder::errors(), hasPositionAndError(), ProjectMatrix< T, N, D >::index, KfComponentsHolder::measuredErrors(), KfComponentsHolder::measuredParams(), KfComponentsHolder::params(), pos_, KfComponentsHolder::projFunc(), KfComponentsHolder::tsosLocalErrors(), KfComponentsHolder::tsosLocalParameters(), PV3DBase< T, PVType, FrameType >::x(), LocalError::xx(), LocalError::xy(), PV3DBase< T, PVType, FrameType >::y(), and LocalError::yy().

Referenced by MTDTrackingRecHit::getKfComponents(), Phase2TrackerRecHit1D::getKfComponents(), SiStripRecHit2D::getKfComponents(), SiTrackerMultiRecHit::getKfComponents(), ProjectedSiStripRecHit2D::getKfComponents(), SiStripMatchedRecHit2D::getKfComponents(), SiPixelRecHit::getKfComponents(), and FastTrackerRecHit::getKfComponents().

53  {
54 #if defined(DO_THROW_UNINITIALIZED)
55  if (!hasPositionAndError())
56  throwExceptionUninitialized("getKfComponents");
57 #endif
58  AlgebraicVector2 &pars = holder.params<2>();
59  pars[0] = pos_.x();
60  pars[1] = pos_.y();
61 
62  AlgebraicSymMatrix22 &errs = holder.errors<2>();
63  errs(0, 0) = err_.xx();
64  errs(0, 1) = err_.xy();
65  errs(1, 1) = err_.yy();
66 
67  ProjectMatrix<double, 5, 2> &pf = holder.projFunc<2>();
68  pf.index[0] = 3;
69  pf.index[1] = 4;
70 
71  holder.measuredParams<2>() = AlgebraicVector2(&holder.tsosLocalParameters().At(3), 2);
72  holder.measuredErrors<2>() = holder.tsosLocalErrors().Sub<AlgebraicSymMatrix22>(3, 3);
73 }
float xx() const
Definition: LocalError.h:22
T y() const
Definition: PV3DBase.h:60
float xy() const
Definition: LocalError.h:23
ROOT::Math::SVector< double, 2 > AlgebraicVector2
AlgebraicROOTObject< D, D >::SymMatrix & measuredErrors()
float yy() const
Definition: LocalError.h:24
bool hasPositionAndError() const override
to be redefined by daughter class
AlgebraicROOTObject< D >::Vector & params()
AlgebraicROOTObject< D, D >::SymMatrix & errors()
ProjectMatrix< double, 5, D > & projFunc()
const AlgebraicVector5 & tsosLocalParameters() const
ROOT::Math::SMatrix< double, 2, 2, ROOT::Math::MatRepSym< double, 2 > > AlgebraicSymMatrix22
AlgebraicROOTObject< D >::Vector & measuredParams()
unsigned int index[D]
Definition: ProjectMatrix.h:62
T x() const
Definition: PV3DBase.h:59
const AlgebraicSymMatrix55 & tsosLocalErrors() const
GlobalPoint BaseTrackerRecHit::globalPosition ( ) const
inlinefinalvirtual

Reimplemented from TrackingRecHit.

Definition at line 85 of file BaseTrackerRecHit.h.

References localPosition(), surface(), and Surface::toGlobal().

Referenced by SeedingOTEDProducer::buildInitialTSOS(), SeedingOTEDProducer::computeGlobalThetaError(), errorGlobalR(), errorGlobalRPhi(), globalState(), and TkMSParameterizationBuilder::produce().

85 { return surface()->toGlobal(localPosition()); }
GlobalPoint toGlobal(const Point2DBase< Scalar, LocalTag > lp) const
Definition: Surface.h:79
LocalPoint localPosition() const override
const Surface * surface() const final
GlobalError BaseTrackerRecHit::globalPositionError ( ) const
inlinefinalvirtual

Reimplemented from TrackingRecHit.

Definition at line 87 of file BaseTrackerRecHit.h.

References localPositionError(), surface(), and ErrorFrameTransformer::transform().

Referenced by EtlLocalRecoValidation::analyze(), BtlLocalRecoValidation::analyze(), errorGlobalR(), errorGlobalRPhi(), and errorGlobalZ().

87  {
89  }
static GlobalError transform(const LocalError &le, const Surface &surf)
LocalError localPositionError() const override
const Surface * surface() const final
TrackingRecHitGlobalState BaseTrackerRecHit::globalState ( ) const
inline

Definition at line 97 of file BaseTrackerRecHit.h.

References PV3DBase< T, PVType, FrameType >::barePhi(), PV3DBase< T, PVType, FrameType >::basicVector(), GlobalErrorBase< T, ErrorWeightType >::czz(), globalPosition(), runTauDisplay::gp, localPositionError(), PV3DBase< T, PVType, FrameType >::perp(), GlobalErrorBase< T, ErrorWeightType >::phierr(), alignCSCRings::r, GlobalErrorBase< T, ErrorWeightType >::rerr(), mathSSE::sqrt(), surface(), and ErrorFrameTransformer::transform().

97  {
100  float r = gp.perp();
101  float errorRPhi = r * std::sqrt(float(globalError.phierr(gp)));
102  float errorR = std::sqrt(float(globalError.rerr(gp)));
103  float errorZ = std::sqrt(float(globalError.czz()));
104  return (TrackingRecHitGlobalState){gp.basicVector(), r, gp.barePhi(), errorR, errorZ, errorRPhi};
105  }
static GlobalError transform(const LocalError &le, const Surface &surf)
T perp() const
Definition: PV3DBase.h:69
T phierr(const GlobalPoint &aPoint) const
T barePhi() const
Definition: PV3DBase.h:65
T sqrt(T t)
Definition: SSEVec.h:19
LocalError localPositionError() const override
GlobalPoint globalPosition() const final
T rerr(const GlobalPoint &aPoint) const
const Surface * surface() const final
const BasicVectorType & basicVector() const
Definition: PV3DBase.h:53
bool BaseTrackerRecHit::hasPositionAndError ( ) const
overridevirtual

to be redefined by daughter class

Reimplemented from TrackingRecHit.

Reimplemented in VectorHit.

Definition at line 29 of file BaseTrackerRecHit.cc.

References TrackingRecHit::det().

Referenced by getKfComponents1D(), and getKfComponents2D().

29  {
30  //if det is present pos&err are available as well.
31  // //if det() is not present (null) the hit has been read from file and not updated
32  return det();
33 }
const GeomDet * det() const
BaseTrackerRecHit const* BaseTrackerRecHit::hit ( ) const
inlinefinalvirtual

Reimplemented from TrackingRecHit.

Definition at line 20 of file BaseTrackerRecHit.h.

Referenced by SeedForPhotonConversionFromQuadruplets::buildSeedBool(), and SiTrackerMultiRecHit::sharesInput().

20 { return this; }
bool BaseTrackerRecHit::isMatched ( ) const
inline

Definition at line 39 of file BaseTrackerRecHit.h.

References trackerHitRTTI::isMatched().

Referenced by FastTrackerRecHitSplitter::split().

39 { return trackerHitRTTI::isMatched(*this); }
bool isMatched(TrackingRecHit const &hit)
bool BaseTrackerRecHit::isMulti ( ) const
inline

Definition at line 43 of file BaseTrackerRecHit.h.

References trackerHitRTTI::isMulti().

43 { return trackerHitRTTI::isMulti(*this); }
bool isMulti(TrackingRecHit const &hit)
virtual bool BaseTrackerRecHit::isPhase2 ( ) const
inlinevirtual

Reimplemented in VectorHit, Phase2TrackerRecHit1D, and MTDTrackingRecHit.

Definition at line 46 of file BaseTrackerRecHit.h.

46 { return false; }
virtual bool BaseTrackerRecHit::isPixel ( ) const
inlinevirtual

Reimplemented in FastTrackerRecHit, and SiPixelRecHit.

Definition at line 45 of file BaseTrackerRecHit.h.

Referenced by Trajectory::pixel().

45 { return false; }
bool BaseTrackerRecHit::isProjected ( ) const
inline

Definition at line 40 of file BaseTrackerRecHit.h.

References trackerHitRTTI::isProjected().

Referenced by FastTrackerRecHitSplitter::split().

40 { return trackerHitRTTI::isProjected(*this); }
bool isProjected(TrackingRecHit const &hit)
bool BaseTrackerRecHit::isProjMono ( ) const
inline

Definition at line 41 of file BaseTrackerRecHit.h.

References trackerHitRTTI::isProjMono().

41 { return trackerHitRTTI::isProjMono(*this); }
bool isProjMono(TrackingRecHit const &hit)
bool BaseTrackerRecHit::isProjStereo ( ) const
inline

Definition at line 42 of file BaseTrackerRecHit.h.

References trackerHitRTTI::isProjStereo().

42 { return trackerHitRTTI::isProjStereo(*this); }
bool isProjStereo(TrackingRecHit const &hit)
bool BaseTrackerRecHit::isSingle ( ) const
inline

Definition at line 38 of file BaseTrackerRecHit.h.

References trackerHitRTTI::isSingle().

Referenced by FastTrackerRecHitMatcher::_cast2Single().

38 { return trackerHitRTTI::isSingle(*this); }
bool isSingle(TrackingRecHit const &hit)
LocalPoint BaseTrackerRecHit::localPosition ( ) const
inlineoverridevirtual

Implements TrackingRecHit.

Reimplemented in VectorHit.

Definition at line 56 of file BaseTrackerRecHit.h.

References check(), and pos_.

Referenced by SiStripLAProfileBooker::analyze(), analyzer::SiPixelLorentzAngle::analyze(), SiPixelLorentzAnglePCLWorker::analyze(), SeedForPhotonConversionFromQuadruplets::buildSeed(), SimpleDAFHitCollector::clone(), Traj2TrackHits::clone(), SiPixelRecHitsValid::fillBarrel(), SiPixelRecHitsValid::fillForward(), Phase2ITValidateTrackingRecHit::fillITHistos(), Phase2OTValidateTrackingRecHit::fillOTHistos(), Phase2OTValidateRecHitBase::fillOTRecHitHistos(), Phase2ITValidateRecHitBase::fillRechitHistos(), GlobalRecHitsAnalyzer::fillTrk(), GlobalRecHitsProducer::fillTrk(), SiStripFineDelayTLA::findtrackangle(), GlobalTrajectoryBuilderBase::fixTEC(), globalPosition(), TrackerDpgAnalysis::insertMeasurement(), CRackTrajectoryBuilder::isDifferentStripReHit2D(), CalibrationTrackSelector::isIsolated(), AlignmentTrackSelector::isIsolated(), TrajectorySeedHitCandidate::localPosition(), FastTrackerRecHitMatcher::match(), SiStripRecHitMatcher::match(), SiPixelCoordinates::pixel_(), MTDTrackingRecHitProducer::produce(), reco::CentralityProducer::produce(), FastTrackerRecHitMatcher::projectOnly(), SiStripRecHitsValid::rechitanalysis(), SiStripRecHitsValid::rechitanalysis_matched(), SiStripTrackingRecHitsValid::rechitanalysis_matched(), and SiPixelLorentzAnglePCLWorker::surface_deformation().

56  {
57  check();
58  return pos_;
59  }
LocalError BaseTrackerRecHit::localPositionError ( ) const
inlineoverridevirtual
const LocalError& BaseTrackerRecHit::localPositionErrorFast ( ) const
inline

Definition at line 69 of file BaseTrackerRecHit.h.

References check(), and err_.

69  {
70  check();
71  return err_;
72  }
const LocalPoint& BaseTrackerRecHit::localPositionFast ( ) const
inline

Definition at line 65 of file BaseTrackerRecHit.h.

References check(), and pos_.

Referenced by SiStripRecHitMatcher::match().

65  {
66  check();
67  return pos_;
68  }
AlgebraicVector BaseTrackerRecHit::parameters ( void  ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 76 of file BaseTrackerRecHit.cc.

References Types::obsolete.

76  {
77  obsolete();
78  return AlgebraicVector();
79 }
CLHEP::HepVector AlgebraicVector
tuple obsolete
Definition: Types.py:199
AlgebraicSymMatrix BaseTrackerRecHit::parametersError ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 81 of file BaseTrackerRecHit.cc.

References Types::obsolete.

81  {
82  obsolete();
83  return AlgebraicSymMatrix();
84 }
CLHEP::HepSymMatrix AlgebraicSymMatrix
tuple obsolete
Definition: Types.py:199
AlgebraicMatrix BaseTrackerRecHit::projectionMatrix ( ) const
overridevirtual

Implements TrackingRecHit.

Definition at line 86 of file BaseTrackerRecHit.cc.

References Types::obsolete.

86  {
87  obsolete();
88  return AlgebraicMatrix();
89 }
CLHEP::HepMatrix AlgebraicMatrix
tuple obsolete
Definition: Types.py:199
trackerHitRTTI::RTTI BaseTrackerRecHit::rtti ( ) const
inline

Definition at line 37 of file BaseTrackerRecHit.h.

References trackerHitRTTI::rtti().

Referenced by FastTrackerRecHitMatcher::_cast2Single().

37 { return trackerHitRTTI::rtti(*this); }
RTTI rtti(TrackingRecHit const &hit)
bool BaseTrackerRecHit::sameDetModule ( TrackingRecHit const &  hit) const
inline

Definition at line 134 of file BaseTrackerRecHit.h.

References TrackingRecHit::geographicalId(), TrackingRecHit::isValid(), DetId::kSubdetOffset, and DetId::rawId().

Referenced by SiStripMatchedRecHit2D::sharesInput(), VectorHit::sharesInput(), and TrackerSingleRecHit::sharesInput().

134  {
135  unsigned int myid = geographicalId().rawId();
136  unsigned int mysubd = myid >> (DetId::kSubdetOffset);
137 
138  unsigned int id = hit.geographicalId().rawId();
139  unsigned int subd = id >> (DetId::kSubdetOffset);
140 
141  if (mysubd != subd)
142  return false;
143 
144  //Protection against invalid hits
145  if (!hit.isValid())
146  return false;
147 
148  const unsigned int limdet = 10; // TIB=11
149 
150  if (mysubd > limdet) { // strip
151  // mask glue and stereo
152  myid |= 3;
153  id |= 3;
154  }
155  return id == myid;
156 }
constexpr uint32_t rawId() const
get the raw id
Definition: DetId.h:57
static const int kSubdetOffset
Definition: DetId.h:22
DetId geographicalId() const
const Surface* BaseTrackerRecHit::surface ( ) const
inlinefinalvirtual

Reimplemented from TrackingRecHit.

Definition at line 83 of file BaseTrackerRecHit.h.

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

Referenced by VectorHit::globalDirection(), globalPosition(), globalPositionError(), and globalState().

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

Member Data Documentation

LocalError BaseTrackerRecHit::err_
protected
LocalPoint BaseTrackerRecHit::pos_
protected
unsigned int BaseTrackerRecHit::qualWord_
protected