Commit c3de3820 authored by Jiri Masik's avatar Jiri Masik Committed by Graeme Stewart
Browse files

fix ATLASRECTS-3519 (beamspot related offset in seed position) by Dave Casper...

fix ATLASRECTS-3519 (beamspot related offset in seed position) by Dave Casper (TrkVertexSeedFinderTools-03-00-01)

	* src/ZScanSeedFinder.cxx: fix of ATLASRECTS-3519 (beamspot
	related offset in seed position when Trk::Tracks used on input) by
	Dave Casper, tagged as TrkVertexSeedFinderTools-03-00-01


Former-commit-id: b6bf21c290a81d8f3d18aa4deb74964758f6ee87
parent 20839d3f
......@@ -194,7 +194,7 @@ namespace Trk
if (constraint != 0 && constraint->covariancePosition()(0,0)!=0) ipas = m_IPEstimator->estimate(i, constraint);
if (ipas != 0 && ipas->sigmad0 > 0)
{
z0AndWeight.first = ipas->IPz0 + i->associatedSurface().center().z();
z0AndWeight.first = ipas->IPz0 + constraint->position().z();
double chi2IP = std::pow(ipas->IPd0/ipas->sigmad0, 2);
msg(MSG::VERBOSE) << "d0 from tool: " << ipas->IPd0 << " error: " << ipas->sigmad0 << " chi2: " << chi2IP << endreq;
if ( !m_disableAllWeights )
......
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