Skip to content

Commit

Permalink
Merge pull request #103 from aysent/master
Browse files Browse the repository at this point in the history
Fix matching of sim tracks to MPC LCTs
  • Loading branch information
aysent committed Jan 8, 2014
2 parents 54e2145 + c9d607d commit 92cbe14
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions SimMuL1/plugins/GEMCSCTriggerEfficiency.cc
Original file line number Diff line number Diff line change
Expand Up @@ -3515,6 +3515,11 @@ GEMCSCTriggerEfficiency::analyze(const edm::Event& iEvent, const edm::EventSetup
const CSCCorrelatedLCTDigiCollection::Range& range = (*detUnitIt).second;
CSCDetId cid = id;

std::vector<int> chWHIDs = match->chambersWithHits(0,0,minNHitsChamber_);
CSCDetId chId(id.endcap(),id.station(),id.ring(),id.chamber(),0);
int rawId = chId.rawId();
if (std::find(chWHIDs.begin(),chWHIDs.end(),rawId)==chWHIDs.end()) continue;

for (CSCCorrelatedLCTDigiCollection::const_iterator digiIt = range.first; digiIt != range.second; digiIt++)
{
if (!(*digiIt).isValid()) continue;
Expand Down

0 comments on commit 92cbe14

Please sign in to comment.