16 #include <sys/types.h>
46 consumesMany<DQMToken, edm::InLumi>();
47 consumesMany<DQMToken, edm::InRun>();
69 int irun = iLS.
id().
run();
97 "%s_V%04d_%s_R%09ld_L%09ld%s",
107 "%s_V%04d_%s_R%09ld%s",
116 namespace fs = std::filesystem;
120 return (path / file).string();
127 std::map<std::string, std::string>
info;
128 info[
"Source"] =
"DQMStore";
129 info[
"FileClass"] =
"DQM";
140 desc.
addUntracked<
std::string>(
"tag",
"UNKNOWN")->setComment(
"File tag, DQM_V000_<TAG>*, usually a subsytem name.");
143 ->setComment(
"Base prefix for files, <BASE>_V000_**, either 'DQM' or 'Playback'.");
145 desc.
addUntracked<
std::string>(
"referenceHandling",
"all")->setComment(
"saveReference_, passed to the DQMStore");
148 ->setComment(
"saveReference_, passed to the DQMStore");
153 ->setComment(
"Run number passed in the configuration. Will appear in output file names.");
DQMFileSaverBase(const edm::ParameterSet &ps)
LuminosityBlockID id() const
T getUntrackedParameter(std::string const &, T const &) const
void saveJobReport(const std::string &filename) const
virtual void saveRun(const FileParameters &fp) const
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
std::mutex initial_fp_lock_
~DQMFileSaverBase() override
void analyze(edm::StreamID, const edm::Event &e, const edm::EventSetup &) const final
static const std::string filename(const FileParameters &fp, bool useLumi=false)
virtual void saveLumi(const FileParameters &fp) const
virtual void initRun() const
void logFileAction(const std::string &msg, const std::string &fileName) 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
void globalEndRun(const edm::Run &, const edm::EventSetup &) const final
LuminosityBlockNumber_t luminosityBlock() const
FileParameters initial_fp_
void reportAnalysisFile(std::string const &fileName, std::map< std::string, std::string > const &fileData)
static const int STATUS_OK
static void fillDescription(edm::ParameterSetDescription &d)
Log< level::System, true > LogAbsolute
void globalEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) const final