Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MTD reconstruction: Implementation of MTDTrayBarrelLayer::groupedCompatibleDets() #36525

Merged
merged 1 commit into from Dec 19, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
10 changes: 8 additions & 2 deletions RecoMTD/DetLayers/src/MTDDetTray.cc
Expand Up @@ -129,8 +129,14 @@ vector<GeometricSearchDet::DetWithState> MTDDetTray::compatibleDets(const Trajec
vector<DetGroup> MTDDetTray::groupedCompatibleDets(const TrajectoryStateOnSurface& startingState,
const Propagator& prop,
const MeasurementEstimator& est) const {
// FIXME should return only 1 group
edm::LogError("MTDDetLayers") << "dummy implementation of MTDDetTray::groupedCompatibleDets()";
vector<GeometricSearchDet::DetWithState> detWithStates;

detWithStates = compatibleDets(startingState, prop, est);

vector<DetGroup> result;
if (!detWithStates.empty()) {
result.push_back(DetGroup(detWithStates));
}
LogTrace("MTDDetLayers") << "MTDdetTray Compatible modules: " << result.size();
return result;
}
13 changes: 10 additions & 3 deletions RecoMTD/DetLayers/src/MTDTrayBarrelLayer.cc
Expand Up @@ -163,9 +163,16 @@ vector<GeometricSearchDet::DetWithState> MTDTrayBarrelLayer::compatibleDets(
vector<DetGroup> MTDTrayBarrelLayer::groupedCompatibleDets(const TrajectoryStateOnSurface& startingState,
const Propagator& prop,
const MeasurementEstimator& est) const {
// FIXME should return only 1 group
edm::LogError("MTDDetLayers") << "dummy implementation of MTDTrayBarrelLayer::groupedCompatibleDets()";
return vector<DetGroup>();
vector<GeometricSearchDet::DetWithState> detWithStates;

detWithStates = compatibleDets(startingState, prop, est);

vector<DetGroup> result;
if (!detWithStates.empty()) {
result.push_back(DetGroup(detWithStates));
}
LogTrace("MTDDetLayers") << "MTDTrayBarrelLayer Compatible rods: " << result.size();
return result;
}

GeomDetEnumerators::SubDetector MTDTrayBarrelLayer::subDetector() const { return theBasicComps.front()->subDetector(); }
Expand Down