Skip to content

Commit 61a8f90

Browse files
valeriadamanteazotz
authored andcommitted
fixed issue with nv==0
code checks
1 parent f87b777 commit 61a8f90

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

RecoTauTag/HLTProducers/src/L2TauTagNNProducer.cc

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -572,6 +572,8 @@ std::vector<int> L2TauNNProducer::selectGoodVertices(const ZVertexSoA& patavtx_s
572572
auto maxTracks = patatracks_tsoa.stride();
573573
const int nv = patavtx_soa.nvFinal;
574574
std::vector<int> VtxGood;
575+
if (nv == 0)
576+
return VtxGood;
575577
VtxGood.reserve(nv);
576578

577579
std::vector<double> maxChi2_;

0 commit comments

Comments
 (0)