Skip to content

Commit

Permalink
Merge pull request #32759 from nurfikri89/port113XTo106X_nanojme_size…
Browse files Browse the repository at this point in the history
…reduction

[JME NanoAOD] Backport of #32722 (Changes for event size reduction) to 10_6_X
  • Loading branch information
cmsbuild authored Feb 1, 2021
2 parents fc44ab3 + 7b84fce commit c39a1d7
Show file tree
Hide file tree
Showing 3 changed files with 389 additions and 203 deletions.
4 changes: 3 additions & 1 deletion PhysicsTools/NanoAOD/plugins/NPUTablesProducer.cc
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,9 @@ class NPUTablesProducer : public edm::global::EDProducer<> {
}
gpudensity /= (20.0 * (*(zbin) - *(zbin - 1)));
if (savePtHatMax_) {
pthatmax = *max_element(npuProd[ibx].getPU_pT_hats().begin(), npuProd[ibx].getPU_pT_hats().end());
if (!npuProd[ibx].getPU_pT_hats().empty()) {
pthatmax = *max_element(npuProd[ibx].getPU_pT_hats().begin(), npuProd[ibx].getPU_pT_hats().end());
}
}
}
}
Expand Down
Loading

0 comments on commit c39a1d7

Please sign in to comment.