Skip to content

Commit

Permalink
Merge pull request #4 from ThOliveira23/from-CMSSW_12_4_0_pre4
Browse files Browse the repository at this point in the history
Code format building
  • Loading branch information
ThOliveira23 authored May 18, 2022
2 parents 20d2d39 + 9211ebf commit 7dfc23a
Showing 1 changed file with 7 additions and 9 deletions.
16 changes: 7 additions & 9 deletions DQMOffline/Lumi/plugins/ZCounting.cc
Original file line number Diff line number Diff line change
Expand Up @@ -867,17 +867,15 @@ bool ZCounting::isMuonTriggerObj(const ZCountingTrigger::TTrigger& triggerMenu,
//--------------------------------------------------------------------------------------------------
// Definition of the CustomTightID function
bool ZCounting::isCustomTightMuon(const reco::Muon& muon) {
if (!muon.isPFMuon() || !muon.isGlobalMuon())
return false;

if(!muon.isPFMuon() || !muon.isGlobalMuon() ) return false;

bool muID = isGoodMuon(muon,muon::GlobalMuonPromptTight) && (muon.numberOfMatchedStations() > 1);


bool hits = muon.innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5 &&
muon.innerTrack()->hitPattern().numberOfValidPixelHits() > 0;
bool muID = isGoodMuon(muon, muon::GlobalMuonPromptTight) && (muon.numberOfMatchedStations() > 1);

bool hits = muon.innerTrack()->hitPattern().trackerLayersWithMeasurement() > 5 &&
muon.innerTrack()->hitPattern().numberOfValidPixelHits() > 0;

return muID && hits;
return muID && hits;
}

//--------------------------------------------------------------------------------------------------
Expand All @@ -892,7 +890,7 @@ bool ZCounting::passMuonID(
return true;
else if (idType == TightID && muon::isTightMuon(muon, vtx))
return true;
else if(idType == CustomTightID && isCustomTightMuon(muon))
else if (idType == CustomTightID && isCustomTightMuon(muon))
return true;
else if (idType == NoneID)
return true;
Expand Down

0 comments on commit 7dfc23a

Please sign in to comment.