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 write_json(json_tmp_,
pt);
51 TimeoutPoolOutputModule::fillDescription(desc);
54 "Almost same as TimeoutPoolOutputModule, but the output files names "
55 "follow the FFF naming convention. Additionally a json 'description' "
56 "file is emitted for every .root file written.");
59 "The run number, only used for file prefix: 'run000001_lumi0000_...'.");
62 "Output path for the root and json files, usually the run directory.");
65 ->setComment(
"Stream label, used for file suffix.");
67 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)
static boost::property_tree::ptree fillJson(int run, int lumi, const std::string &dataFilePathName, const std::string transferDestinationStr, evf::FastMonitoringService *fms)
string format
Some error handling for the usage.
JsonWritingTimeoutPoolOutputModule(edm::ParameterSet const &ps)
static void fillDescriptions(edm::ConfigurationDescriptions &)
void setComment(std::string const &value)
tuple path
else: Piece not in the list, fine.
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