Skip to content

Commit 452348d

Browse files
authored
Merge pull request cms-sw#34055 from smuzaffar/12_0-code-checks-XPOG
[XPOG] Apply code-checks/format with misc-definitions-in-headers
2 parents c9e1641 + bfe8040 commit 452348d

File tree

2 files changed

+5
-3
lines changed

2 files changed

+5
-3
lines changed

PhysicsTools/NanoAOD/plugins/BTagSFProducer.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,7 @@ void BTagSFProducer::produce(edm::Event& iEvent, const edm::EventSetup& iSetup)
198198
bdisc = 0.;
199199

200200
if (op == BTagEntry::OP_RESHAPING) {
201-
for (string inBranch :
201+
for (const string& inBranch :
202202
inBranchNames[iDisc]) { //sum up the discriminator values if multiple, e.g. DeepCSV b+bb
203203
bdisc += jet.bDiscriminator(inBranch);
204204
}

PhysicsTools/NanoAOD/plugins/NanoAODDQM.cc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,11 @@
77
#include "DataFormats/NanoAOD/interface/FlatTable.h"
88
#include "CommonTools/Utils/interface/StringCutObjectSelector.h"
99

10+
#include <memory>
11+
12+
#include <numeric>
1013
#include <regex>
1114
#include <sstream>
12-
#include <numeric>
1315

1416
namespace {
1517
std::string replaceStringsToColumGets(const std::string &expr, const nanoaod::FlatTable &table) {
@@ -171,7 +173,7 @@ class NanoAODDQM : public DQMEDAnalyzer {
171173
std::fill(out.begin(), out.end(), true);
172174
} else {
173175
if (!cutptr) {
174-
cutptr.reset(new Selector(replaceStringsToColumGets(cutstr, table)));
176+
cutptr = std::make_unique<Selector>(replaceStringsToColumGets(cutstr, table));
175177
}
176178
for (unsigned int i = 0, n = table.size(); i < n; ++i) {
177179
out[i] = (*cutptr)(table.row(i));

0 commit comments

Comments
 (0)