CMS 3D CMS Logo

RecHitSplitter.cc

Go to the documentation of this file.
00001 #include "TrackingTools/TrackFitters/interface/RecHitSplitter.h"
00002 
00003 RecHitSplitter::RecHitContainer
00004 RecHitSplitter::split(const RecHitContainer& hits) const {
00005 
00006   RecHitContainer singles; singles.reserve(2*hits.size());
00007 
00008   for(RecHitContainer::const_iterator ihit = hits.begin(); ihit != hits.end();
00009       ihit++) {
00010     if(!(**ihit).isValid()) {
00011       singles.push_back((*ihit));
00012     } else {
00013       RecHitContainer shits = (**ihit).transientHits();
00014       for(RecHitContainer::const_iterator ishit = shits.begin();
00015           ishit != shits.end(); ishit++) {
00016         singles.push_back(*ishit);
00017       }
00018     }
00019   }
00020   return singles;
00021 }

Generated on Tue Jun 9 17:48:31 2009 for CMSSW by  doxygen 1.5.4