Skip to content
Snippets Groups Projects
Commit e652c782 authored by Christian Ohm's avatar Christian Ohm Committed by Graeme Stewart
Browse files

Adding missing cov. matrices for output vertices (VrtSecInclusive-00-04-21)

	* Tagging as VrtSecInclusive-00-04-21

2016-10-20 Christian Ohm
parent aadf0815
No related merge requests found
...@@ -712,11 +712,13 @@ namespace VKalVrtAthena { ...@@ -712,11 +712,13 @@ namespace VKalVrtAthena {
// Registering the vertex type: SV // Registering the vertex type: SV
vertex->setVertexType( xAOD::VxType::SecVtx ); vertex->setVertexType( xAOD::VxType::SecVtx );
// Registering the vertex chi2 and Ndof // Registering the vertex chi2 and Ndof
int ndof = 2*WrkVrt.SelTrk.size()-3; int ndof = 2*WrkVrt.SelTrk.size()-3;
vertex->setFitQuality( WrkVrt.Chi2, ndof ); vertex->setFitQuality( WrkVrt.Chi2, ndof );
// Registering the vertex covariance matrix
std::vector<float> fCov(WrkVrt.vertexCov.cbegin(), WrkVrt.vertexCov.cend());
vertex->setCovariance(fCov);
// Registering the vertex momentum and charge // Registering the vertex momentum and charge
vertex->auxdata<float>("vtx_px") = WrkVrt.vertexMom.Px(); vertex->auxdata<float>("vtx_px") = WrkVrt.vertexMom.Px();
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment