11 const vector<TM>& vtm)
const {
13 return vector<pair<
const DetLayer*, vector<TM> > >();
15 vector<pair<const DetLayer*, vector<TM> > >
result;
16 result.reserve(vtm.size());
18 vector<TM>::const_iterator
start = vtm.begin();
20 while (
start != vtm.end()) {
21 vector<TM>::const_iterator ipart =
start;
38 #ifdef debug_MeasurementByLayerGrouper_
39 for (vector<pair<
const DetLayer*, vector<TM> > >::const_iterator iter =
result.begin(); iter !=
result.end();
41 LogTrace(
"MeasurementByLayerGrouper|SiTrackerMultiRecHitUpdator")
42 <<
"DetLayer " << iter->first <<
" has " << iter->second.size() <<
" measurements";
60 if (tm.
recHit()->det() ==
nullptr) {
61 LogDebug(
"MeasurementByLayerGrouper") <<
"This hit has no geomdet associated skipping... ";
68 throw cms::Exception(
"MeasurementByLayerGrouper") <<
"Impossible to retrieve the det layer because it's not set in "
69 "the TM and the pointer to the GeometricSearchTracker is 0 ";
73 return theGeomSearch->detLayer(tm.
recHit()->det()->geographicalId());