Skip to content

Commit

Permalink
Merge pull request #5085 from cms-btv-pog/FixSVIVFtracks_70X
Browse files Browse the repository at this point in the history
fix for number of secondary vertex tracks in case IVF vertices are used
  • Loading branch information
davidlange6 committed Sep 6, 2014
2 parents 1c71a1e + 84bc6b8 commit bafc70a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 10 deletions.
6 changes: 2 additions & 4 deletions RecoBTag/SecondaryVertex/src/CombinedSVComputer.cc
Expand Up @@ -172,10 +172,8 @@ CombinedSVComputer::operator () (const TrackIPTagInfo &ipInfo,

const Vertex &vertex = svInfo.secondaryVertex(i);
bool hasRefittedTracks = vertex.hasRefittedTracks();
TrackRefVector tracks = svInfo.vertexTracks(i);
for(TrackRefVector::const_iterator track = tracks.begin();
track != tracks.end(); track++) {
double w = svInfo.trackWeight(i, *track);
for(reco::Vertex::trackRef_iterator track = vertex.tracks_begin(); track != vertex.tracks_end(); track++) {
double w = vertex.trackWeight(*track);
if (w < minTrackWeight)
continue;
if (hasRefittedTracks) {
Expand Down
5 changes: 2 additions & 3 deletions RecoBTag/SecondaryVertex/src/CombinedSVComputerV2.cc
Expand Up @@ -184,9 +184,8 @@ CombinedSVComputerV2::operator () (const TrackIPTagInfo &ipInfo,

const Vertex &vertex = svInfo.secondaryVertex(i);
bool hasRefittedTracks = vertex.hasRefittedTracks();
TrackRefVector tracks = svInfo.vertexTracks(i);
for(TrackRefVector::const_iterator track = tracks.begin(); track != tracks.end(); track++) {
double w = svInfo.trackWeight(i, *track);
for(reco::Vertex::trackRef_iterator track = vertex.tracks_begin(); track != vertex.tracks_end(); track++) {
double w = vertex.trackWeight(*track);
if (w < minTrackWeight)
continue;
if (hasRefittedTracks) {
Expand Down
5 changes: 2 additions & 3 deletions RecoBTag/SecondaryVertex/src/CombinedSVSoftLeptonComputer.cc
Expand Up @@ -190,9 +190,8 @@ CombinedSVSoftLeptonComputer::operator () (const TrackIPTagInfo &ipInfo,

const Vertex &vertex = svInfo.secondaryVertex(i);
bool hasRefittedTracks = vertex.hasRefittedTracks();
TrackRefVector tracks = svInfo.vertexTracks(i);
for(TrackRefVector::const_iterator track = tracks.begin(); track != tracks.end(); track++) {
double w = svInfo.trackWeight(i, *track);
for(reco::Vertex::trackRef_iterator track = vertex.tracks_begin(); track != vertex.tracks_end(); track++) {
double w = vertex.trackWeight(*track);
if (w < minTrackWeight)
continue;
if (hasRefittedTracks) {
Expand Down

0 comments on commit bafc70a

Please sign in to comment.