Skip to content

Commit

Permalink
Merge pull request #23679 from kreczko/kreczko-issue-CMSLITDPG-585-part5
Browse files Browse the repository at this point in the history
[L1T][DQMOffline] L1TEGammaOffline fixes (CMSLITDPG-585)
  • Loading branch information
cmsbuild committed Jul 19, 2018
2 parents d16de0c + e4eed9c commit b429165
Show file tree
Hide file tree
Showing 3 changed files with 19 additions and 15 deletions.
1 change: 1 addition & 0 deletions DQMOffline/L1Trigger/interface/L1TEGammaOffline.h
Expand Up @@ -103,6 +103,7 @@ class L1TEGammaOffline: public DQMEDAnalyzer {

double maxDeltaRForL1Matching_;
double maxDeltaRForHLTMatching_;
double recoToL1TThresholdFactor_;

reco::GsfElectron tagElectron_;
reco::GsfElectron probeElectron_;
Expand Down
1 change: 1 addition & 0 deletions DQMOffline/L1Trigger/python/L1TEGammaOffline_cfi.py
Expand Up @@ -53,6 +53,7 @@
photonEfficiencyBins=cms.vdouble(photonEfficiencyBins),
maxDeltaRForL1Matching=cms.double(0.3),
maxDeltaRForHLTMatching=cms.double(0.3),
recoToL1TThresholdFactor=cms.double(1.25),

histDefinitions=cms.PSet(
nVertex=histDefinitions.nVertex.clone(),
Expand Down
32 changes: 17 additions & 15 deletions DQMOffline/L1Trigger/src/L1TEGammaOffline.cc
Expand Up @@ -52,6 +52,7 @@ L1TEGammaOffline::L1TEGammaOffline(const edm::ParameterSet& ps) :
photonEfficiencyBins_(ps.getParameter < std::vector<double> > ("photonEfficiencyBins")),
maxDeltaRForL1Matching_(ps.getParameter <double> ("maxDeltaRForL1Matching")),
maxDeltaRForHLTMatching_(ps.getParameter <double> ("maxDeltaRForHLTMatching")),
recoToL1TThresholdFactor_(ps.getParameter <double> ("recoToL1TThresholdFactor")),
tagElectron_(),
probeElectron_(),
tagAndProbleInvariantMass_(-1.),
Expand Down Expand Up @@ -227,7 +228,6 @@ void L1TEGammaOffline::fillElectrons(edm::Event const& e, const unsigned int nVe
minDeltaR = currentDeltaR;
closestL1EGamma = *egamma;
foundMatch = true;
break;
}

}
Expand Down Expand Up @@ -258,24 +258,26 @@ void L1TEGammaOffline::fillElectrons(edm::Event const& e, const unsigned int nVe

// plots for deeper inspection
for (auto threshold : deepInspectionElectronThresholds_) {
fillWithinLimits(h_efficiencyElectronEta_total_[threshold], recoEta);
fillWithinLimits(h_efficiencyElectronPhi_total_[threshold], recoPhi);
fillWithinLimits(h_efficiencyElectronNVertex_total_[threshold], nVertex);
if(recoEt > threshold){
fillWithinLimits(h_efficiencyElectronEta_pass_[threshold], recoEta);
fillWithinLimits(h_efficiencyElectronPhi_pass_[threshold], recoPhi);
fillWithinLimits(h_efficiencyElectronNVertex_pass_[threshold], nVertex);
if (recoEt > threshold * recoToL1TThresholdFactor_) {
fillWithinLimits(h_efficiencyElectronEta_total_[threshold], recoEta);
fillWithinLimits(h_efficiencyElectronPhi_total_[threshold], recoPhi);
fillWithinLimits(h_efficiencyElectronNVertex_total_[threshold], nVertex);
if (l1Et > threshold + probeToL1Offset_) {
fillWithinLimits(h_efficiencyElectronEta_pass_[threshold], recoEta);
fillWithinLimits(h_efficiencyElectronPhi_pass_[threshold], recoPhi);
fillWithinLimits(h_efficiencyElectronNVertex_pass_[threshold], nVertex);
}
}
}
}

for (auto threshold : electronEfficiencyThresholds_) {
fill2DWithinLimits(h_efficiencyElectronPhi_vs_Eta_total_[threshold],
recoEta, recoPhi);
if(l1Et > threshold + probeToL1Offset_){
fill2DWithinLimits(h_efficiencyElectronPhi_vs_Eta_pass_[threshold],
recoEta, recoPhi);
if (recoEt > threshold * recoToL1TThresholdFactor_) {
fill2DWithinLimits(h_efficiencyElectronPhi_vs_Eta_total_[threshold], recoEta, recoPhi);
if (l1Et > threshold + probeToL1Offset_) {
fill2DWithinLimits(h_efficiencyElectronPhi_vs_Eta_pass_[threshold], recoEta, recoPhi);
}
}
}
}

if (std::abs(recoEta) <= 1.479) { // barrel
// et
Expand Down

0 comments on commit b429165

Please sign in to comment.