diff --git a/RecoBTag/SecondaryVertex/plugins/TemplatedSecondaryVertexProducer.cc b/RecoBTag/SecondaryVertex/plugins/TemplatedSecondaryVertexProducer.cc index ffbd02cbfe6ba..83d297f69d521 100644 --- a/RecoBTag/SecondaryVertex/plugins/TemplatedSecondaryVertexProducer.cc +++ b/RecoBTag/SecondaryVertex/plugins/TemplatedSecondaryVertexProducer.cc @@ -259,9 +259,7 @@ TemplatedSecondaryVertexProducer::TemplatedSecondaryVertexProducer(co if (constraint == CONSTRAINT_PV_BEAMSPOT_SIZE || constraint == CONSTRAINT_PV_BS_Z_ERRORS_SCALED || constraint == CONSTRAINT_BEAMSPOT || constraint == CONSTRAINT_PV_PRIMARIES_IN_FIT) token_BeamSpot = consumes(params.getParameter("beamSpotTag")); - useExternalSV = false; - if (params.existsAs("useExternalSV")) - useExternalSV = params.getParameter("useExternalSV"); + useExternalSV = params.getParameter("useExternalSV"); if (useExternalSV) { token_extSVCollection = consumes >(params.getParameter("extSVCollection")); extSVDeltaRToJet = params.getParameter("extSVDeltaRToJet");