CMS 3D CMS Logo

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