11 const vector<TM>& vtm)
const {
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_ 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());
DetLayer getDetLayer(DetId detId, const TrackerTopology *tTopo)
const DetLayer * getDetLayer(const TM &tm) const
std::vector< std::pair< const DetLayer *, std::vector< TM > > > operator()(const std::vector< TM > &) const
const DetLayer * layer() const
ConstRecHitPointer const & recHit() const