CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/DataFormats/TrackingRecHit/src/TrackingRecHit.cc

Go to the documentation of this file.
00001 #include "DataFormats/TrackingRecHit/interface/TrackingRecHit.h"
00002 #include "FWCore/Utilities/interface/Exception.h"
00003 #include <string>
00004 #include <typeinfo>
00005 
00006 void
00007 TrackingRecHit::recHitsV(std::vector<const TrackingRecHit*> & v) const {
00008   v = recHits();
00009 }
00010 void
00011 TrackingRecHit::recHitsV(std::vector<TrackingRecHit*> & v) {
00012   v = recHits();
00013 }
00014 
00015 
00016 bool TrackingRecHit::sharesInput( const TrackingRecHit* other, SharedInputType what) const {
00017   //
00018   // for the time being: don't force implementation in all derived classes
00019   // but throw exception to indicate missing implementation
00020   //
00021   std::string msg("Missing implementation of TrackingRecHit::sharedInput in ");
00022   msg += typeid(*this).name();
00023   throw cms::Exception(msg);
00024   return false;
00025 }
00026 
00027 void TrackingRecHit::getKfComponents( KfComponentsHolder & holder ) const {
00028     holder.genericFill(*this);
00029 }