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>
43 write_json(json_tmp_,
pt);
50 TimeoutPoolOutputModule::fillDescription(desc);
53 "Almost same as TimeoutPoolOutputModule, but the output files names "
54 "follow the FFF naming convention. Additionally a json 'description' "
55 "file is emitted for every .root file written.");
58 "The run number, only used for file prefix: 'run000001_lumi0000_...'.");
61 "Output path for the root and json files, usually the run directory.");
64 ->setComment(
"Stream label, used for file suffix.");
66 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)
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.
static boost::property_tree::ptree fillJson(int run, int lumi, const std::string &dataFilePathName, evf::FastMonitoringService *fms)
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