Skip to content

Commit

Permalink
Merge CMSSW_8_0_X into CMSSW_8_1_X.
Browse files Browse the repository at this point in the history
  • Loading branch information
cmsbuild committed May 9, 2016
2 parents 8015a52 + ac15510 commit 0545abb
Showing 1 changed file with 23 additions and 6 deletions.
29 changes: 23 additions & 6 deletions HLTrigger/HLTfilters/src/HLTL1TSeed.cc
Original file line number Diff line number Diff line change
Expand Up @@ -721,8 +721,12 @@ bool HLTL1TSeed::seedsL1TriggerObjectMaps(edm::Event& iEvent,

for (std::list<int>::const_iterator itObj = listMuon.begin(); itObj != listMuon.end(); ++itObj) {

l1t::MuonRef myref(muons, *itObj);
filterproduct.addObject(trigger::TriggerL1Mu, myref);

// Transform to index for Bx = 0 to begin of BxVector
unsigned int index = muons->begin(0) - muons->begin() + *itObj;

l1t::MuonRef myref(muons, index);
filterproduct.addObject(trigger::TriggerL1Mu, myref);

}

Expand All @@ -746,8 +750,11 @@ bool HLTL1TSeed::seedsL1TriggerObjectMaps(edm::Event& iEvent,

for (std::list<int>::const_iterator itObj = listEG.begin(); itObj != listEG.end(); ++itObj) {

l1t::EGammaRef myref(egammas, *itObj);
filterproduct.addObject(trigger::TriggerL1EG, myref);
// Transform to begin of BxVector
unsigned int index = egammas->begin(0) - egammas->begin() + *itObj;

l1t::EGammaRef myref(egammas, index);
filterproduct.addObject(trigger::TriggerL1EG, myref);

}

Expand All @@ -771,8 +778,13 @@ bool HLTL1TSeed::seedsL1TriggerObjectMaps(edm::Event& iEvent,
else {

for (std::list<int>::const_iterator itObj = listJet.begin(); itObj != listJet.end(); ++itObj) {
l1t::JetRef myref(jets, *itObj);

// Transform to begin of BxVector
unsigned int index = jets->begin(0) - jets->begin() + *itObj;

l1t::JetRef myref(jets, index);
filterproduct.addObject(trigger::TriggerL1Jet, myref);

}

}
Expand All @@ -795,8 +807,13 @@ bool HLTL1TSeed::seedsL1TriggerObjectMaps(edm::Event& iEvent,
else {

for (std::list<int>::const_iterator itObj = listTau.begin(); itObj != listTau.end(); ++itObj) {
l1t::TauRef myref(taus, *itObj);

// Transform to begin of BxVector
unsigned int index = taus->begin(0) - taus->begin() + *itObj;

l1t::TauRef myref(taus, index);
filterproduct.addObject(trigger::TriggerL1Tau, myref);

}

}
Expand Down

0 comments on commit 0545abb

Please sign in to comment.