Skip to content

Commit

Permalink
Merge pull request cms-sw#11 from jainshilpi/tnpFixedForRECOSFs_10X
Browse files Browse the repository at this point in the history
Tnp fixed for recos fs 10 x - added missing file plugins/MiniAODTriggerCandProducer.cc

Merging on livia's repo. (for @lsoffi this is the fix to run on AOD, testing soon generating some samples)
  • Loading branch information
michelif authored Jul 19, 2018
2 parents b513812 + 373b113 commit 10d7f90
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions plugins/MiniAODTriggerCandProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,13 @@ void MiniAODTriggerCandProducer<reco::GsfElectron, trigger::TriggerObject>::prod
for (size_t f=1; f<filterNames_.size(); f++) {
if (filterNames_[f] != "") {
unsigned int moduleFilterIndex = trEv->filterIndex(filterNames_[f]);
for (int i=0;i<trEv->sizeFilters(); i++) {
if (trEv->filterLabel(i) == filterNames_[f]) {
moduleFilterIndex = i;
break;
}//if (trEv->filterLabel(i) == filterNames_[f])
}//for (int i=0;i<trEv->sizeFilters(); i++)

if (moduleFilterIndex+1 > trEv->sizeFilters())
saveObj = false;
else {
Expand Down

0 comments on commit 10d7f90

Please sign in to comment.