25 theMTDEventCacheID(0),
39 LogDebug(
"MTDDetLayerMeasurements") <<
"(MTD): " << static_cast<MTDDetId>(detId) << std::endl;
42 auto detset = (*theMTDRecHits)[detId];
44 for (
const auto& rechit : detset)
51 LogDebug(
"MTDDetLayerMeasurements") <<
"Checking MTD RecHits";
62 throw cms::Exception(
"MTDDetLayerMeasurements") <<
"Cannot get MTD RecHits";
91 const auto& dss =
layer->compatibleDets(startingState, prop, est);
92 LogDebug(
"MTDDetLayerMeasurements") <<
"compatibleDets: " << dss.size() << std::endl;
94 for (
const auto& dws : dss) {
96 result.insert(
result.end(), detMeasurements.begin(), detMeasurements.end());
115 LogDebug(
"RecoMTD") <<
"Dimension: " << rechit->dimension() <<
" Chi2: " << estimate.second << std::endl;
116 if (estimate.first) {
132 for (
const auto& irh : rhs) {
134 if (estimate.first) {
167 std::vector<TrajectoryMeasurementGroup>
result;
170 std::vector<DetGroup> groups(
layer->groupedCompatibleDets(startingState, prop, est));
172 for (
const auto& grp : groups) {
173 std::vector<TrajectoryMeasurement> groupMeasurements;
174 for (
const auto& detAndStateItr : grp) {
175 std::vector<TrajectoryMeasurement> detMeasurements =
177 groupMeasurements.insert(groupMeasurements.end(), detMeasurements.begin(), detMeasurements.end());
191 throw cms::Exception(
"MTDDetLayerMeasurements") <<
"The event has not been set";
197 std::vector<const GeomDet*> gds =
layer->basicComponents();
199 for (
const GeomDet* igd : gds) {
201 rhs.insert(rhs.end(), detHits.begin(), detHits.end());