Commit 473c037e authored by Chao Peng's avatar Chao Peng
Browse files

Use geometry id instead of volume id in source links

parent 4caa9f0b
......@@ -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,
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment