Skip to content

Commit 70a2bde

Browse files
stwunscheguiraud
authored andcommitted
prevent shadowing of variables
1 parent 3b147e4 commit 70a2bde

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

root/tree/dataframe/df102_NanoAODDimuonAnalysis.C

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,8 @@
1717

1818
using namespace ROOT::VecOps;
1919

20-
static const std::vector<std::string> files = {RB::GetDataDir() + "/Run2012B_DoubleMuParked.root",
21-
RB::GetDataDir() + "/Run2012C_DoubleMuParked.root"};
20+
static const std::vector<std::string> local_files = {RB::GetDataDir() + "/Run2012B_DoubleMuParked.root",
21+
RB::GetDataDir() + "/Run2012C_DoubleMuParked.root"};
2222

2323
void payload(const std::vector<std::string>& files, unsigned int nthreads)
2424
{
@@ -77,14 +77,14 @@ void payload(const std::vector<std::string>& files, unsigned int nthreads)
7777
static void df102_NanoAODDimuonAnalysis_noimt(benchmark::State &state)
7878
{
7979
for (auto _ : state)
80-
payload(files, 0);
80+
payload(local_files, 0);
8181
}
8282

8383
static void df102_NanoAODDimuonAnalysis_imt(benchmark::State &state)
8484
{
8585
for (auto _ : state) {
8686
const auto nthreads = state.range(0);
87-
payload(files, nthreads);
87+
payload(local_files, nthreads);
8888
}
8989
}
9090

0 commit comments

Comments
 (0)