#include <DQMFileSaver.h>
Public Types | |
enum | Convention { Online, Offline, FilterUnit } |
enum | FileFormat { ROOT, PB } |
Public Types inherited from edm::global::EDAnalyzerBase | |
typedef EDAnalyzerBase | ModuleType |
Public Types inherited from edm::EDConsumerBase | |
typedef ProductLabels | Labels |
Static Public Member Functions | |
static boost::property_tree::ptree | fillJson (int run, int lumi, const std::string &dataFilePathName, const std::string transferDestinationStr, const std::string mergeTypeStr, evf::FastMonitoringService *fms) |
Static Public Member Functions inherited from edm::global::EDAnalyzerBase | |
static const std::string & | baseType () |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &descriptions) |
Protected Member Functions | |
virtual void | analyze (edm::StreamID, const edm::Event &e, const edm::EventSetup &) const override |
virtual void | beginJob (void) override |
virtual void | endJob (void) override |
virtual std::shared_ptr< saverDetails::NoCache > | globalBeginLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) const override |
virtual std::shared_ptr< saverDetails::NoCache > | globalBeginRun (const edm::Run &, const edm::EventSetup &) const override |
virtual void | globalEndLuminosityBlock (const edm::LuminosityBlock &, const edm::EventSetup &) const override |
virtual void | globalEndRun (const edm::Run &, const edm::EventSetup &) const override |
Protected Member Functions inherited from edm::EDConsumerBase | |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | consumes (edm::InputTag const &tag) |
EDGetToken | consumes (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | consumes (TypeToGet const &id, edm::InputTag const &tag) |
ConsumesCollector | consumesCollector () |
Use a ConsumesCollector to gather consumes information from helper functions. More... | |
template<typename ProductType , BranchType B = InEvent> | |
void | consumesMany () |
void | consumesMany (const TypeToGet &id) |
template<BranchType B> | |
void | consumesMany (const TypeToGet &id) |
template<typename ProductType , BranchType B = InEvent> | |
EDGetTokenT< ProductType > | mayConsume (edm::InputTag const &tag) |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
template<BranchType B> | |
EDGetToken | mayConsume (const TypeToGet &id, edm::InputTag const &tag) |
Private Member Functions | |
void | saveForFilterUnit (const std::string &rewrite, int run, int lumi, const FileFormat fileFormat) const |
void | saveForOffline (const std::string &workflow, int run, int lumi) const |
void | saveForOfflinePB (const std::string &workflow, int run) const |
void | saveForOnline (int run, const std::string &suffix, const std::string &rewrite) const |
void | saveForOnlinePB (int run, const std::string &suffix) const |
void | saveJobReport (const std::string &filename) const |
Private Attributes | |
std::string | child_ |
Convention | convention_ |
DQMStore * | dbe_ |
std::string | dirName_ |
bool | enableMultiThread_ |
bool | fakeFilterUnitMode_ |
std::string | fileBaseName_ |
FileFormat | fileFormat_ |
std::atomic< int > | fileUpdate_ |
std::string | filterName_ |
evf::FastMonitoringService * | fms_ |
int | forceRunNumber_ |
std::atomic< int > | irun_ |
std::string | mergeType_ |
std::atomic< int > | nlumi_ |
std::atomic< int > | nrun_ |
std::string | producer_ |
bool | runIsComplete_ |
bool | saveAtJobEnd_ |
int | saveByLumiSection_ |
int | saveByRun_ |
int | saveReference_ |
int | saveReferenceQMin_ |
std::string | stream_label_ |
std::string | transferDestination_ |
int | version_ |
std::string | workflow_ |
Static Private Attributes | |
static const std::string | streamPrefix_ |
static const std::string | streamSuffix_ |
Definition at line 15 of file DQMFileSaver.h.
Enumerator | |
---|---|
Online | |
Offline | |
FilterUnit |
Definition at line 38 of file DQMFileSaver.h.
Enumerator | |
---|---|
ROOT | |
PB |
Definition at line 45 of file DQMFileSaver.h.
DQMFileSaver::DQMFileSaver | ( | const edm::ParameterSet & | ps | ) |
Definition at line 438 of file DQMFileSaver.cc.
References globaldigis_analyze_cff::convention, convention_, KineDebug3::count(), dirName_, Exception, fakeFilterUnitMode_, fileBaseName_, fileFormat_, filterName_, FilterUnit, fms_, forceRunNumber_, getAnInt(), edm::ParameterSet::getUntrackedParameter(), Offline, Online, PB, producer_, ROOT, runIsComplete_, alignCSCRings::s, saveAtJobEnd_, saveByLumiSection_, saveByRun_, saveReference_, saveReferenceQMin_, DQMStore::SaveWithoutReference, DQMStore::SaveWithReference, DQMStore::SaveWithReferenceForQTest, trackingPlots::stat, stream_label_, streamPrefix_, streamSuffix_, AlCaHLTBitMon_QueryRunRegistry::string, jetIDSelector_cfi::version, version_, and workflow_.
|
overrideprotectedvirtual |
Definition at line 685 of file DQMFileSaver.cc.
|
overrideprotectedvirtual |
Reimplemented from edm::global::EDAnalyzerBase.
Definition at line 644 of file DQMFileSaver.cc.
References convention_, dbe_, enableMultiThread_, DQMStore::enableMultiThread_, fakeFilterUnitMode_, FilterUnit, irun_, mergeType_, evf::MergeTypePB, nlumi_, nrun_, stream_label_, and transferDestination_.
|
overrideprotectedvirtual |
Reimplemented from edm::global::EDAnalyzerBase.
Definition at line 821 of file DQMFileSaver.cc.
References convention_, Exception, forceRunNumber_, irun_, Offline, saveAtJobEnd_, saveForOffline(), and workflow_.
|
static |
Definition at line 264 of file DQMFileSaver.cc.
References data, Exception, evf::FastMonitoringService::getEventsProcessedForLumi(), query::host, merge::inputFiles, callgraph::path, sysUtil::pid, EnergyCorrector::pt, trackingPlots::stat, and AlCaHLTBitMon_QueryRunRegistry::string.
Referenced by dqmservices::JsonWritingTimeoutPoolOutputModule::doExtrasAfterCloseFile(), and saveForFilterUnit().
|
overrideprotectedvirtual |
|
overrideprotectedvirtual |
Definition at line 659 of file DQMFileSaver.cc.
References convention_, fakeFilterUnitMode_, FrontierConditions_GlobalTag_cff::file, FilterUnit, evf::EvFDaqDirector::getInitFilePath(), nrun_, stream_label_, and AlCaHLTBitMon_QueryRunRegistry::string.
|
overrideprotectedvirtual |
Definition at line 693 of file DQMFileSaver.cc.
References convention_, dbe_, DQMStore::deleteUnusedLumiHistograms(), enableMultiThread_, Exception, fileFormat_, FilterUnit, fms_, edm::LuminosityBlockBase::id(), edm::LuminosityBlockID::luminosityBlock(), nlumi_, Offline, Online, PB, edm::LuminosityBlockID::run(), saveByLumiSection_, saveForFilterUnit(), saveForOffline(), saveForOnline(), saveForOnlinePB(), evf::FastMonitoringService::shouldWriteFiles(), createPayload::suffix, and workflow_.
|
overrideprotectedvirtual |
Definition at line 752 of file DQMFileSaver.cc.
References convention_, data, dirName_, Exception, fakeFilterUnitMode_, FrontierConditions_GlobalTag_cff::file, fileFormat_, cmsPerfStripChart::format, edm::RunBase::id(), irun_, nlumi_, nrun_, Offline, Online, PB, EnergyCorrector::pt, edm::RunID::run(), saveByRun_, saveForOffline(), saveForOfflinePB(), saveForOnline(), saveForOnlinePB(), harvestTrackValidationPlots::str, AlCaHLTBitMon_QueryRunRegistry::string, createPayload::suffix, and workflow_.
|
private |
Definition at line 344 of file DQMFileSaver.cc.
References dataFileExtension(), dbe_, dirName_, enableMultiThread_, Exception, fakeFilterUnitMode_, fileUpdate_, fillJson(), filterName_, fms_, cmsPerfStripChart::format, evf::FastMonitoringService::getEventsProcessedForLumi(), mergeType_, PB, EnergyCorrector::pt, DQMStore::save(), DQMStore::savePB(), saveReference_, saveReferenceQMin_, harvestTrackValidationPlots::str, stream_label_, AlCaHLTBitMon_QueryRunRegistry::string, and transferDestination_.
Referenced by globalEndLuminosityBlock().
|
private |
Definition at line 86 of file DQMFileSaver.cc.
References DQMStore::bookFloat(), DQMStore::bookString(), DQMStore::cd(), child_, dbe_, MillePedeFileConverter_cfg::e, enableMultiThread_, fileBaseName_, corrVsCorr::filename, fileUpdate_, MonitorElement::Fill(), DQMStore::get(), edm::getReleaseVersion(), DQMStore::getSubdirs(), mps_fire::i, mps_alisetup::msg, onlineOfflineFileName(), runIsComplete_, DQMStore::save(), saveJobReport(), saveReference_, saveReferenceQMin_, DQMStore::SaveWithoutReference, DQMStore::setCurrentFolder(), dqm::qstatus::STATUS_OK, AlCaHLTBitMon_QueryRunRegistry::string, and createPayload::suffix.
Referenced by endJob(), globalEndLuminosityBlock(), and globalEndRun().
|
private |
Definition at line 77 of file DQMFileSaver.cc.
References child_, dbe_, fileBaseName_, corrVsCorr::filename, filterName_, onlineOfflineFileName(), PB, DQMStore::savePB(), AlCaHLTBitMon_QueryRunRegistry::string, and createPayload::suffix.
Referenced by globalEndRun().
|
private |
Definition at line 211 of file DQMFileSaver.cc.
References DQMStore::cd(), child_, dbe_, doSaveForOnline(), MillePedeFileConverter_cfg::e, enableMultiThread_, fileBaseName_, DQMStore::get(), DQMStore::getMatchingContents(), DQMStore::getSubdirs(), mps_fire::i, saveReference_, and saveReferenceQMin_.
Referenced by globalEndLuminosityBlock(), and globalEndRun().
|
private |
Definition at line 194 of file DQMFileSaver.cc.
References child_, dbe_, doSaveForOnline(), enableMultiThread_, fileBaseName_, corrVsCorr::filename, filterName_, onlineOfflineFileName(), PB, saveReference_, saveReferenceQMin_, AlCaHLTBitMon_QueryRunRegistry::string, and workflow_.
Referenced by globalEndLuminosityBlock(), and globalEndRun().
|
private |
Definition at line 422 of file DQMFileSaver.cc.
References info(), edm::Service< T >::isAvailable(), and edm::JobReport::reportAnalysisFile().
Referenced by saveForOffline().
|
private |
Definition at line 67 of file DQMFileSaver.h.
Referenced by saveForOffline(), saveForOfflinePB(), saveForOnline(), and saveForOnlinePB().
|
private |
Definition at line 61 of file DQMFileSaver.h.
Referenced by beginJob(), DQMFileSaver(), endJob(), globalBeginRun(), globalEndLuminosityBlock(), and globalEndRun().
|
private |
Definition at line 84 of file DQMFileSaver.h.
Referenced by beginJob(), globalEndLuminosityBlock(), saveForFilterUnit(), saveForOffline(), saveForOfflinePB(), saveForOnline(), and saveForOnlinePB().
|
private |
Definition at line 66 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), globalEndRun(), and saveForFilterUnit().
|
private |
Definition at line 71 of file DQMFileSaver.h.
Referenced by beginJob(), globalEndLuminosityBlock(), saveForFilterUnit(), saveForOffline(), saveForOnline(), and saveForOnlinePB().
|
private |
Definition at line 72 of file DQMFileSaver.h.
Referenced by beginJob(), DQMFileSaver(), globalBeginRun(), globalEndRun(), and saveForFilterUnit().
|
private |
Definition at line 81 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), saveForOffline(), saveForOfflinePB(), saveForOnline(), and saveForOnlinePB().
|
private |
Definition at line 62 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), globalEndLuminosityBlock(), and globalEndRun().
|
mutableprivate |
Definition at line 82 of file DQMFileSaver.h.
Referenced by saveForFilterUnit(), and saveForOffline().
|
private |
Definition at line 68 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), saveForFilterUnit(), saveForOfflinePB(), and saveForOnlinePB().
|
private |
Definition at line 92 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), globalEndLuminosityBlock(), and saveForFilterUnit().
|
private |
Definition at line 79 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), and endJob().
|
mutableprivate |
Definition at line 89 of file DQMFileSaver.h.
Referenced by beginJob(), endJob(), and globalEndRun().
|
private |
Definition at line 97 of file DQMFileSaver.h.
Referenced by beginJob(), and saveForFilterUnit().
|
mutableprivate |
Definition at line 86 of file DQMFileSaver.h.
Referenced by beginJob(), globalBeginLuminosityBlock(), globalEndLuminosityBlock(), and globalEndRun().
|
mutableprivate |
Definition at line 85 of file DQMFileSaver.h.
Referenced by beginJob(), globalBeginRun(), and globalEndRun().
|
private |
Definition at line 64 of file DQMFileSaver.h.
Referenced by DQMFileSaver().
|
private |
Definition at line 70 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), and saveForOffline().
|
private |
Definition at line 76 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), and endJob().
|
private |
Definition at line 74 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), and globalEndLuminosityBlock().
|
private |
Definition at line 75 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), and globalEndRun().
|
private |
Definition at line 77 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), saveForFilterUnit(), saveForOffline(), saveForOnline(), and saveForOnlinePB().
|
private |
Definition at line 78 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), saveForFilterUnit(), saveForOffline(), saveForOnline(), and saveForOnlinePB().
|
private |
Definition at line 65 of file DQMFileSaver.h.
Referenced by beginJob(), DQMFileSaver(), globalBeginRun(), and saveForFilterUnit().
|
staticprivate |
Definition at line 94 of file DQMFileSaver.h.
Referenced by DQMFileSaver().
|
staticprivate |
Definition at line 95 of file DQMFileSaver.h.
Referenced by DQMFileSaver().
|
private |
Definition at line 96 of file DQMFileSaver.h.
Referenced by beginJob(), and saveForFilterUnit().
|
private |
Definition at line 69 of file DQMFileSaver.h.
Referenced by DQMFileSaver().
|
private |
Definition at line 63 of file DQMFileSaver.h.
Referenced by DQMFileSaver(), endJob(), globalEndLuminosityBlock(), globalEndRun(), and saveForOnlinePB().