16 #include <sys/types.h> 42 if (refsave ==
"skip")
46 else if (refsave ==
"all")
50 else if (refsave ==
"qtests")
57 <<
"Invalid 'referenceHandling' parameter '" << refsave
58 <<
"'. Expected 'skip', 'all' or 'qtests'.";
93 int irun = iLS.
id().
run();
105 store->deleteUnusedLumiHistograms(store->mtEnabled() ? irun : 0, ilumi);
122 unsigned int childIndex,
unsigned int numberOfChildren) {
124 unsigned int digits = 0;
125 while (numberOfChildren != 0) {
127 numberOfChildren /= 10;
135 snprintf(buffer, digits + 2,
"_F%0*d", digits, childIndex);
144 snprintf(buf, 256,
"%s_V%04d_%s_R%09ld_L%09ld%s", fp.
producer_.c_str(),
153 namespace fs = boost::filesystem;
157 return (path / file).string();
166 std::map<std::string, std::string>
info;
167 info[
"Source"] =
"DQMStore";
168 info[
"FileClass"] =
"DQM";
182 ->setComment(
"File tag, DQM_V000_<TAG>*, usually a subsytem name.");
185 ->setComment(
"Base prefix for files, <BASE>_V000_**, either 'DQM' or 'Playback'.");
188 ->setComment(
"saveReference_, passed to the DQMStore");
191 ->setComment(
"saveReference_, passed to the DQMStore");
194 "Output path prefix.");
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)
virtual void globalEndRun(const edm::Run &, const edm::EventSetup &) const override final
std::mutex initial_fp_lock_
virtual void postForkReacquireResources(unsigned int childIndex, unsigned int numberOfChildren) override
static const std::string filename(const FileParameters &fp, bool useLumi=false)
virtual void saveLumi(const FileParameters &fp) const
virtual void analyze(edm::StreamID, const edm::Event &e, const edm::EventSetup &) const override final
virtual void globalEndLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) const override final
void logFileAction(const std::string &msg, const std::string &fileName) const
virtual std::shared_ptr< NoCache > globalBeginRun(const edm::Run &, const edm::EventSetup &) const override final
DQMStore::SaveReferenceTag saveReference_
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)
virtual std::shared_ptr< NoCache > globalBeginLuminosityBlock(const edm::LuminosityBlock &, const edm::EventSetup &) const override final
virtual void initRun(void) const