3 #include <fmt/printf.h> 4 #include <boost/property_tree/json_parser.hpp> 5 #include <boost/property_tree/ptree.hpp> 40 write_json(json_tmp_,
pt);
46 TimeoutPoolOutputModule::fillDescription(
desc);
49 "Almost same as TimeoutPoolOutputModule, but the output files names " 50 "follow the FFF naming convention. Additionally a json 'description' " 51 "file is emitted for every .root file written.");
53 desc.addUntracked<uint32_t>(
"runNumber", 0)
55 "The run number, only used for file prefix: " 56 "'run000001_lumi0000_...'.");
60 "Output path for the root and json files, usually the run " 63 desc.addUntracked<
std::string>(
"streamLabel",
"streamEvDOutput")->setComment(
"Stream label, used for file suffix.");
65 descriptions.
add(
"jsonWriting",
desc);
#define DEFINE_FWK_MODULE(type)
JsonWritingTimeoutPoolOutputModule(edm::ParameterSet const &ps)
T getUntrackedParameter(std::string const &, T const &) const
static void fillDescriptions(edm::ConfigurationDescriptions &)
void doExtrasAfterCloseFile() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string currentJsonName_
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)