9 #include <boost/property_tree/json_parser.hpp> 11 #include <fmt/printf.h> 17 edm::TimeoutPoolOutputModule(ps),
18 runNumber_(ps.getUntrackedParameter<uint32_t>(
"runNumber")),
19 streamLabel_(ps.getUntrackedParameter<
std::
string>(
"streamLabel")),
20 outputPath_(ps.getUntrackedParameter<
std::
string>(
"outputPath")),
41 write_json(json_tmp_,
pt);
47 TimeoutPoolOutputModule::fillDescription(
desc);
50 "Almost same as TimeoutPoolOutputModule, but the output files names " 51 "follow the FFF naming convention. Additionally a json 'description' " 52 "file is emitted for every .root file written.");
54 desc.addUntracked<uint32_t>(
"runNumber", 0)
56 "The run number, only used for file prefix: " 57 "'run000001_lumi0000_...'.");
61 "Output path for the root and json files, usually the run " 64 desc.addUntracked<
std::string>(
"streamLabel",
"streamEvDOutput")->setComment(
"Stream label, used for file suffix.");
66 descriptions.
add(
"jsonWriting",
desc);
static const char runNumber_[]
uint32_t const runNumber_
JsonWritingTimeoutPoolOutputModule(edm::ParameterSet const &ps)
static void fillDescriptions(edm::ConfigurationDescriptions &)
#define DEFINE_FWK_MODULE(type)
void doExtrasAfterCloseFile() override
std::string const outputPath_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string currentJsonName_
std::string const streamLabel_
std::string currentFileName_
std::pair< std::string, std::string > physicalAndLogicalNameForNewFile() override
boost::property_tree::ptree fillJson(int run, int lumi, const std::string &dataFilePathName, const std::string &transferDestinationStr, const std::string &mergeTypeStr, evf::FastMonitoringService *fms)