Skip to content

Commit

Permalink
fixed issue with nv==0
Browse files Browse the repository at this point in the history
code checks
  • Loading branch information
valeriadamante authored and azotz committed Dec 1, 2021
1 parent f87b777 commit 61a8f90
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions RecoTauTag/HLTProducers/src/L2TauTagNNProducer.cc
Expand Up @@ -572,6 +572,8 @@ std::vector<int> L2TauNNProducer::selectGoodVertices(const ZVertexSoA& patavtx_s
auto maxTracks = patatracks_tsoa.stride();
const int nv = patavtx_soa.nvFinal;
std::vector<int> VtxGood;
if (nv == 0)
return VtxGood;
VtxGood.reserve(nv);

std::vector<double> maxChi2_;
Expand Down

0 comments on commit 61a8f90

Please sign in to comment.