CMS 3D CMS Logo

CMSSW_4_4_3_patch1/src/RecoTracker/TransientTrackingRecHit/src/TSiTrackerMultiRecHit.cc

Go to the documentation of this file.
00001 #include "RecoTracker/TransientTrackingRecHit/interface/TSiTrackerMultiRecHit.h"
00002 
00003 /*
00004 TSiTrackerMultiRecHit::TSiTrackerMultiRecHit(const GeomDet * geom, const std::vector<const TrackingRecHit*>& rhs, const SiTrackerMultiRecHitUpdator* updator, const TrajectoryStateOnSurface& tsos):
00005 TransientTrackingRecHit(geom), theUpdator(updator){
00006         theHitData  = theUpdator->buildMultiRecHit(tsos, rhs, theComponents);
00007         setAnnealingFactor(theUpdator->getCurrentAnnealingValue()); 
00008 }
00009 */
00010 
00011 const GeomDetUnit* TSiTrackerMultiRecHit::detUnit() const{
00012   return dynamic_cast<const GeomDetUnit*>(det());
00013 }
00014 
00015 TransientTrackingRecHit::RecHitPointer TSiTrackerMultiRecHit::clone(const TrajectoryStateOnSurface& ts) const{
00016 /*
00017         std::vector<TransientTrackingRecHit::RecHitPointer> updatedcomponents = theComponents;
00018         SiTrackerMultiRecHit better = theUpdator->update(ts,&theHitData, updatedcomponents);
00019         RecHitPointer result = TSiTrackerMultiRecHit::build( det(), &better, theUpdator, updatedcomponents );
00020         return result;
00021 */
00022         return this->clone();
00023 }
00024 
00025 /*
00026 
00027 std::vector<const TrackingRecHit*> TSiTrackerMultiRecHit::recHits() const {
00028         std::vector<const TrackingRecHit*> components;
00029         std::vector<TransientTrackingRecHit::RecHitPointer>::const_iterator iter;
00030         for (iter = theComponents.begin(); iter != theComponents.end(); iter++){
00031                 components.push_back(iter->get());
00032         }  
00033         return components;
00034 }
00035 
00036 */