Skip to content

Commit d97d6ff

Browse files
authored
Update fillJson.cc
1 parent 15b0fa7 commit d97d6ff

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

DQMServices/Components/src/fillJson.cc

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
// system include files
1414
#include <boost/property_tree/json_parser.hpp>
1515
#include <boost/property_tree/ptree.hpp>
16-
#include <boost/filesystem.hpp>
1716
#include <boost/format.hpp>
1817

1918
#include <string>
2019
#include <sstream>
20+
#include <filesystem>
2121

2222
// user include files
2323
#include "FWCore/ServiceRegistry/interface/Service.h"
@@ -33,7 +33,6 @@ boost::property_tree::ptree dqmfilesaver::fillJson(int run,
3333
const std::string& mergeTypeStr,
3434
evf::FastMonitoringService* fms) {
3535
namespace bpt = boost::property_tree;
36-
namespace bfs = boost::filesystem;
3736

3837
bpt::ptree pt;
3938

@@ -57,7 +56,7 @@ boost::property_tree::ptree dqmfilesaver::fillJson(int run,
5756
if (stat(dataFilePathName.c_str(), &dataFileStat) != 0)
5857
throw cms::Exception("fillJson") << "Internal error, cannot get data file: " << dataFilePathName;
5958
// Extract only the data file name from the full path
60-
dataFileName = bfs::path(dataFilePathName).filename().string();
59+
dataFileName = std::filesystem::path(dataFilePathName).filename().string();
6160
}
6261
// The availability test of the FastMonitoringService was done in the ctor.
6362
bpt::ptree data;
@@ -95,7 +94,7 @@ boost::property_tree::ptree dqmfilesaver::fillJson(int run,
9594
pt.put("definition", "/fakeDefinition.jsn");
9695
} else {
9796
// The availability test of the EvFDaqDirector Service was done in the ctor.
98-
bfs::path outJsonDefName{
97+
std::filesystem::path outJsonDefName{
9998
edm::Service<evf::EvFDaqDirector>()->baseRunDir()}; //we assume this file is written bu the EvF Output module
10099
outJsonDefName /= (std::string("output_") + oss_pid.str() + std::string(".jsd"));
101100
pt.put("definition", outJsonDefName.string());

0 commit comments

Comments
 (0)