Skip to content
Snippets Groups Projects
Commit de178659 authored by James Frost's avatar James Frost Committed by Graeme Stewart
Browse files

tag default vertex behaiour for JVT (JetMomentTools-00-03-11-00)

	* ATLASRECTS-2061
	* src/JetVertexTaggerTool.cxx : revert to dummy vertex in events where there is no vertex of type PrimaryVtx
	* JetMomentTools-00-03-11-00
parent 2e88bb35
No related branches found
No related tags found
No related merge requests found
......@@ -104,11 +104,6 @@ int JetVertexTaggerTool::modify(xAOD::JetContainer& jetCont) const {
const xAOD::Vertex* HSvertex = findHSVertex(vertices);
if (HSvertex==nullptr ) {
ATH_MSG_WARNING("There is no vertex of type PriVx. Exiting");
return 5;
}
// Count pileup tracks - currently done for each collection
const int n_putracks = getPileupTrackCount(HSvertex, tracksCont, tva);
......@@ -279,7 +274,9 @@ const xAOD::Vertex* JetVertexTaggerTool::findHSVertex(const xAOD::VertexContaine
return vertices->at(iVertex);
}
}
return nullptr;
ATH_MSG_WARNING("There is no vertex of type PriVx. Taking default vertex.");
return vertices->at(0);
}
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