3 #include <fmt/printf.h>
4 #include <boost/property_tree/json_parser.hpp>
5 #include <boost/property_tree/ptree.hpp>
11 namespace dqmservices {
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.");
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);
T getUntrackedParameter(std::string const &, T const &) const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
#define DEFINE_FWK_MODULE(type)
JsonWritingTimeoutPoolOutputModule(edm::ParameterSet const &ps)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void setComment(std::string const &value)
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)