Skip to content
Snippets Groups Projects
Commit 473c037e authored by Chao Peng's avatar Chao Peng
Browse files

Use geometry id instead of volume id in source links

parent 4caa9f0b
No related branches found
No related tags found
1 merge request!179Use geometry id instead of volume id in source links
......@@ -137,7 +137,7 @@ namespace Jug::Reco {
//Acts::Vector3 par(localX, localY, simHit.time());
Index hitIdx = ihit;
IndexSourceLink sourceLink(vol_id, ihit);
IndexSourceLink sourceLink(surface->geometryId(), ihit);
auto meas = Acts::makeMeasurement(sourceLink, pos, cov,
Acts::eBoundLoc0, Acts::eBoundLoc1);//, Acts::eBoundTime);
......
......@@ -128,7 +128,7 @@ namespace Jug::Reco {
// the measurement container is unordered and the index under which the
// measurement will be stored is known before adding it.
Index hitIdx = measurements->size();
IndexSourceLink sourceLink(vol_id, ihit);
IndexSourceLink sourceLink(surface->geometryId(), ihit);
auto meas = Acts::makeMeasurement(sourceLink, loc, cov, Acts::eBoundLoc0, Acts::eBoundLoc1);
// add to output containers. since the input is already geometry-order,
......
......@@ -186,7 +186,7 @@ namespace Jug::Reco {
// the measurement container is unordered and the index under which the
// measurement will be stored is known before adding it.
Index hitIdx = measurements->size();
IndexSourceLink sourceLink(vol_id, ihit);
IndexSourceLink sourceLink(surface->geometryId(), ihit);
auto meas = Acts::makeMeasurement(sourceLink, loc, cov, Acts::eBoundLoc0, Acts::eBoundLoc1);
// add to output containers. since the input is already geometry-order,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment