CMS 3D CMS Logo

TrackingRecHit.cc
Go to the documentation of this file.
4 
6 #include <string>
7 #include <typeinfo>
8 
9 void TrackingRecHit::recHitsV(std::vector<const TrackingRecHit*>& v) const { v = recHits(); }
10 void TrackingRecHit::recHitsV(std::vector<TrackingRecHit*>& v) { v = recHits(); }
11 
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 }
22 
23 void TrackingRecHit::getKfComponents(KfComponentsHolder& holder) const { holder.genericFill(*this); }
24 
25 namespace {
26  inline void throwError() { throw cms::Exception("Global coordinates missing from this TrackingRecHit used"); }
27 } // namespace
28 
29 const GeomDetUnit* TrackingRecHit::detUnit() const { return det(); }
30 
32  throwError();
33  return GlobalPoint();
34 }
36  throwError();
37  return GlobalError();
38 }
39 
41  throwError();
42  return 0;
43 }
45  throwError();
46  return 0;
47 }
49  throwError();
50  return 0;
51 }
KfComponentsHolder.h
GeomDet
Definition: GeomDet.h:27
TrackingRecHit::det
const GeomDet * det() const
Definition: TrackingRecHit.h:122
mps_check.msg
tuple msg
Definition: mps_check.py:285
findQualityFiles.v
v
Definition: findQualityFiles.py:179
GlobalError
GlobalErrorBase< double, ErrorMatrixTag > GlobalError
Definition: GlobalError.h:13
TrackingRecHit.h
TrackingRecHit::SharedInputType
SharedInputType
definition of equality via shared input
Definition: TrackingRecHit.h:59
KfComponentsHolder::genericFill
void genericFill(const TrackingRecHit &hit)
Fill in datamembers from a generic TrackingRecHit using the CLHEP matrices.
Definition: KfComponentsHolder.cc:22
TrackingRecHit::errorGlobalRPhi
virtual float errorGlobalRPhi() const
Definition: TrackingRecHit.cc:48
trackingPlots.other
other
Definition: trackingPlots.py:1464
GlobalPoint
Global3DPoint GlobalPoint
Definition: GlobalPoint.h:10
Point3DBase< float, GlobalTag >
TrackingRecHit::globalPositionError
virtual GlobalError globalPositionError() const
Definition: TrackingRecHit.cc:35
TrackingRecHit::globalPosition
virtual GlobalPoint globalPosition() const
Definition: TrackingRecHit.cc:31
GlobalErrorBase< double, ErrorMatrixTag >
TrackingRecHit::errorGlobalR
virtual float errorGlobalR() const
Definition: TrackingRecHit.cc:40
KfComponentsHolder
Definition: KfComponentsHolder.h:13
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
TrackingRecHit::recHits
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
TrackingRecHit
Definition: TrackingRecHit.h:21
GeomDet.h
TrackingRecHit::getKfComponents
virtual void getKfComponents(KfComponentsHolder &holder) const
Definition: TrackingRecHit.cc:23
Exception
Definition: hltDiff.cc:245
TrackingRecHit::sharesInput
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
Definition: TrackingRecHit.cc:12
Exception.h
TrackingRecHit::recHitsV
virtual void recHitsV(std::vector< const TrackingRecHit * > &) const
Definition: TrackingRecHit.cc:9
TrackingRecHit::detUnit
virtual const GeomDetUnit * detUnit() const
Definition: TrackingRecHit.cc:29
TrackingRecHit::errorGlobalZ
virtual float errorGlobalZ() const
Definition: TrackingRecHit.cc:44