18 #include <sys/types.h> 75 int irun = iLS.
id().
run();
103 "%s_V%04d_%s_R%09ld_L%09ld%s",
104 fp.producer_.c_str(),
113 "%s_V%04d_%s_R%09ld%s",
114 fp.producer_.c_str(),
122 namespace fs = std::filesystem;
133 std::map<std::string, std::string>
info;
134 info[
"Source"] =
"DQMStore";
135 info[
"FileClass"] =
"DQM";
146 desc.addUntracked<
std::string>(
"tag",
"UNKNOWN")->setComment(
"File tag, DQM_V000_<TAG>*, usually a subsytem name.");
149 ->setComment(
"Base prefix for files, <BASE>_V000_**, either 'DQM' or 'Playback'.");
151 desc.addUntracked<
std::string>(
"referenceHandling",
"all")->setComment(
"saveReference_, passed to the DQMStore");
154 ->setComment(
"saveReference_, passed to the DQMStore");
156 desc.addUntracked<
std::string>(
"path",
"./")->setComment(
"Output path prefix.");
158 desc.addUntracked<
int>(
"runNumber", 111)
159 ->setComment(
"Run number passed in the configuration. Will appear in output file names.");
DQMFileSaverBase(const edm::ParameterSet &ps)
LuminosityBlockNumber_t luminosityBlock() const
void logFileAction(const std::string &msg, const std::string &fileName) const
void callWhenNewProductsRegistered(std::function< void(BranchDescription const &)> const &func)
std::mutex initial_fp_lock_
~DQMFileSaverBase() override
virtual void saveLumi(const FileParameters &fp) const
void analyze(edm::StreamID, const edm::Event &e, const edm::EventSetup &) const final
static const std::string filename(const FileParameters &fp, bool useLumi=false)
edm::GetterOfProducts< DQMToken > rungetter_
void saveJobReport(const std::string &filename) const
T getUntrackedParameter(std::string const &, T const &) const
virtual void initRun() const
virtual void saveRun(const FileParameters &fp) const
std::shared_ptr< NoCache > globalBeginRun(const edm::Run &, const edm::EventSetup &) const final
std::shared_ptr< NoCache > globalBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) const final
LuminosityBlockID id() const
void globalEndRun(const edm::Run &, const edm::EventSetup &) const final
FileParameters initial_fp_
void reportAnalysisFile(std::string const &fileName, std::map< std::string, std::string > const &fileData)
static const int STATUS_OK
edm::GetterOfProducts< DQMToken > lumigetter_
static void fillDescription(edm::ParameterSetDescription &d)
Log< level::System, true > LogAbsolute
void globalEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) const final