CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RecHitSplitter.cc
Go to the documentation of this file.
2 
4  RecHitContainer singles;
5  singles.reserve(2 * hits.size());
6 
7  for (RecHitContainer::const_iterator ihit = hits.begin(); ihit != hits.end(); ihit++) {
8  if (!(**ihit).isValid()) {
9  singles.push_back((*ihit));
10  } else {
11  RecHitContainer shits = (**ihit).transientHits();
12  for (RecHitContainer::const_iterator ishit = shits.begin(); ishit != shits.end(); ishit++) {
13  singles.push_back(*ishit);
14  }
15  }
16  }
17  return singles;
18 }
TransientTrackingRecHit::ConstRecHitContainer RecHitContainer
RecHitContainer split(const RecHitContainer &hits) const