Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
mtosi committed Apr 4, 2017
1 parent 992c499 commit 1dfbc73
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions Validation/RecoVertex/src/PrimaryVertexAnalyzer4PUSlimmed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -1387,26 +1387,6 @@ void PrimaryVertexAnalyzer4PUSlimmed::analyze(const edm::Event& iEvent,
continue;
}

{
// check upfront that refs to track are (likely) to be valid
bool ok = true;
for(const auto& v: *recVtxs) {
if(v.tracksSize() > 0) {
const auto& ref = v.trackRefAt(0);
if(ref.isNull() || !ref.isAvailable()) {
if(!errorPrintedForColl_[iToken]) {
edm::LogWarning("PrimaryVertexAnalyzer4PUSlimmed")
<< "Skipping vertex collection: " << label << " since likely the track collection the vertex has refs pointing to is missing (at least the first TrackBaseRef is null or not available)";
errorPrintedForColl_[iToken] = true;
}
ok = false;
}
}
}
if(!ok)
continue;
}

reco::VertexRecoToSimCollection vertex_r2s = vertexAssociator.associateRecoToSim(recVtxs, TVCollectionH);
reco::VertexSimToRecoCollection vertex_s2r = vertexAssociator.associateSimToReco(recVtxs, TVCollectionH);

Expand Down

0 comments on commit 1dfbc73

Please sign in to comment.