Skip to content

Commit

Permalink
Use RB::GetTempFs()
Browse files Browse the repository at this point in the history
  • Loading branch information
kamahori committed Aug 20, 2020
1 parent 42519e8 commit b3c6f4d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion root/io/io/TFile_ATLAS_Benchmarks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void BM_ATLAS_Decompress(benchmark::State &state, int algo, std::string f
int comp_level = state.range(0);
std::string comp_setting = std::to_string(algo * 100 + comp_level);
std::string old_filename = (RB::GetDataDir() + "/" + filename + ".root").c_str();
std::string new_filename = "level_" + std::to_string(comp_level) + "_atlas_" + GetAlgoName(algo) + ".root";
std::string new_filename = (RB::GetTempFs() + "level_" + std::to_string(comp_level) + "_atlas_" + GetAlgoName(algo) + ".root").c_str();

gSystem->Exec(("hadd -v 0 -f" + comp_setting + " " + new_filename + " " + old_filename).c_str());

Expand Down
2 changes: 1 addition & 1 deletion root/io/io/TFile_LHCb_Benchmarks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void BM_LHCb_Decompress(benchmark::State &state, int algo) {
int comp_level = state.range(0);
std::string comp_setting = std::to_string(algo * 100 + comp_level);
std::string old_filename = (RB::GetDataDir() + "/lhcb_B2ppKK2011_md_noPIDstrip.root").c_str();
std::string new_filename = "level_" + std::to_string(comp_level) + "_lhcb_" + GetAlgoName(algo) + ".root";
std::string new_filename = (RB::GetTempFs() + "level_" + std::to_string(comp_level) + "_lhcb_" + GetAlgoName(algo) + ".root");

gSystem->Exec(("hadd -v 0 -f" + comp_setting + " " + new_filename + " " + old_filename).c_str());

Expand Down
2 changes: 1 addition & 1 deletion root/io/io/TFile_NanoAOD_Benchmarks.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ static void BM_NanoAOD_Decompress(benchmark::State &state, int algo) {
int comp_level = state.range(0);
std::string comp_setting = std::to_string(algo * 100 + comp_level);
std::string old_filename = (RB::GetDataDir() + "/Run2012B_DoubleElectron.root").c_str();
std::string new_filename = "level_" + std::to_string(comp_level) + "_nanoaod_" + GetAlgoName(algo) + ".root";
std::string new_filename = (RB::GetTempFs() + "level_" + std::to_string(comp_level) + "_nanoaod_" + GetAlgoName(algo) + ".root").c_str();

gSystem->Exec(("hadd -v 0 -f" + comp_setting + " " + new_filename + " " + old_filename).c_str());

Expand Down

0 comments on commit b3c6f4d

Please sign in to comment.