CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
TrackingRecHit.cc
Go to the documentation of this file.
3 #include <string>
4 #include <typeinfo>
5 
6 void
7 TrackingRecHit::recHitsV(std::vector<const TrackingRecHit*> & v) const {
8  v = recHits();
9 }
10 void
11 TrackingRecHit::recHitsV(std::vector<TrackingRecHit*> & v) {
12  v = recHits();
13 }
14 
15 
17  //
18  // for the time being: don't force implementation in all derived classes
19  // but throw exception to indicate missing implementation
20  //
21  std::string msg("Missing implementation of TrackingRecHit::sharedInput in ");
22  msg += typeid(*this).name();
23  throw cms::Exception(msg);
24  return false;
25 }
26 
28  holder.genericFill(*this);
29 }
SharedInputType
definition of equality via shared input
virtual void getKfComponents(KfComponentsHolder &holder) const
void genericFill(const TrackingRecHit &hit)
Fill in datamembers from a generic TrackingRecHit using the CLHEP matrices.
virtual bool sharesInput(const TrackingRecHit *other, SharedInputType what) const
virtual std::vector< const TrackingRecHit * > recHits() const =0
Access to component RecHits (if any)
virtual void recHitsV(std::vector< const TrackingRecHit * > &) const