6 #include <boost/format.hpp>
7 #include <boost/filesystem.hpp>
8 #include <boost/property_tree/json_parser.hpp>
9 #include <boost/property_tree/ptree.hpp>
11 namespace dqmservices {
16 edm::TimeoutPoolOutputModule(ps) {
24 std::pair<std::string, std::string>
44 transferDest, mergeType,
nullptr);
45 write_json(json_tmp_,
pt);
52 TimeoutPoolOutputModule::fillDescription(desc);
55 "Almost same as TimeoutPoolOutputModule, but the output files names "
56 "follow the FFF naming convention. Additionally a json 'description' "
57 "file is emitted for every .root file written.");
61 "The run number, only used for file prefix: "
62 "'run000001_lumi0000_...'.");
66 "Output path for the root and json files, usually the run "
70 ->setComment(
"Stream label, used for file suffix.");
72 descriptions.
add(
"jsonWriting", desc);
T getUntrackedParameter(std::string const &, T const &) const
static boost::property_tree::ptree fillJson(int run, int lumi, const std::string &dataFilePathName, const std::string transferDestinationStr, const std::string mergeTypeStr, evf::FastMonitoringService *fms)
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
#define DEFINE_FWK_MODULE(type)
string format
Some error handling for the usage.
JsonWritingTimeoutPoolOutputModule(edm::ParameterSet const &ps)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void setComment(std::string const &value)
virtual void doExtrasAfterCloseFile() override
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string currentJsonName_
std::string currentFileName_
virtual std::pair< std::string, std::string > physicalAndLogicalNameForNewFile() override