Skip to content

Commit

Permalink
Merge pull request #36233 from perrotta/fixesForDqmL1TMonitor
Browse files Browse the repository at this point in the history
A few fixes for  DQM/L1TMonitor L1TGT and L1TRate
  • Loading branch information
cmsbuild committed Nov 24, 2021
2 parents ad0c327 + 712c0ab commit 1f763d4
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 10 deletions.
6 changes: 2 additions & 4 deletions DQM/L1TMonitor/src/L1TGT.cc
Expand Up @@ -747,13 +747,12 @@ void L1TGT::countPfsIndicesPerLs() {
// count the number of pairs (lsNumber, pfIndex) per Ls
// there are no duplicate entries, and pairs are sorted after both members
// ... and fill again the histogram
int pfsIndicesPerLs = 1;
for (CItVecPair cIt = m_pairLsNumberPfIndex.begin(); cIt != m_pairLsNumberPfIndex.end(); ++cIt) {
int pfsIndicesPerLs = 1;

if ((*cIt).first == previousLsNumber) {
if ((*cIt).second != previousPfsIndex) {
pfsIndicesPerLs++;
previousPfsIndex = (*cIt).second;
pfsIndicesPerLs++;
}

} else {
Expand All @@ -765,7 +764,6 @@ void L1TGT::countPfsIndicesPerLs() {
// new Ls
previousLsNumber = (*cIt).first;
previousPfsIndex = (*cIt).second;

pfsIndicesPerLs = 1;
}
}
Expand Down
11 changes: 5 additions & 6 deletions DQM/L1TMonitor/src/L1TRate.cc
Expand Up @@ -495,12 +495,11 @@ bool L1TRate::getXSexFitsPython(const edm::ParameterSet& ps) {
foundFit = true;
break;
}

if (!foundFit) {
noError = false;
string eName = "WARNING_PY_MISSING_FIT";
m_ErrorMonitor->Fill(eName);
}
}
if (!foundFit) {
noError = false;
string eName = "WARNING_PY_MISSING_FIT";
m_ErrorMonitor->Fill(eName);
}
}
}
Expand Down

0 comments on commit 1f763d4

Please sign in to comment.