Classes | |
class | RunLumiPHIDKey |
class | RunPHIDKey |
Public Member Functions | |
DQMRootSource (edm::ParameterSet const &, const edm::InputSourceDescription &) | |
virtual | ~DQMRootSource () |
Public Member Functions inherited from edm::InputSource | |
boost::shared_ptr < ActivityRegistry > | actReg () const |
Accessor for Activity Registry. More... | |
boost::shared_ptr < BranchIDListHelper > | branchIDListHelper () const |
Accessor for branchIDListHelper. More... | |
void | closeFile (FileBlock *, bool cleaningUpAfterException) |
close current file More... | |
void | doBeginJob () |
Called by framework at beginning of job. More... | |
void | doBeginLumi (LuminosityBlockPrincipal &lbp, ProcessContext const *) |
Called by framework at beginning of lumi block. More... | |
void | doBeginRun (RunPrincipal &rp, ProcessContext const *) |
Called by framework at beginning of run. More... | |
void | doEndJob () |
Called by framework at end of job. More... | |
void | doEndLumi (LuminosityBlockPrincipal &lbp, bool cleaningUpAfterException, ProcessContext const *) |
Called by framework at end of lumi block. More... | |
void | doEndRun (RunPrincipal &rp, bool cleaningUpAfterException, ProcessContext const *) |
Called by framework at end of run. More... | |
void | doPostForkReacquireResources (boost::shared_ptr< multicore::MessageReceiverForSource >) |
void | doPreForkReleaseResources () |
Called by the framework before forking the process. More... | |
ProcessingController::ForwardState | forwardState () const |
bool | goToEvent (EventID const &eventID) |
InputSource (ParameterSet const &, InputSourceDescription const &) | |
Constructor. More... | |
InputSource (InputSource const &)=delete | |
void | issueReports (EventID const &eventID) |
issue an event report More... | |
LuminosityBlockNumber_t | luminosityBlock () const |
Accessor for current luminosity block number. More... | |
boost::shared_ptr < LuminosityBlockAuxiliary > | luminosityBlockAuxiliary () const |
Called by the framework to merge or insert lumi in principal cache. More... | |
int | maxEvents () const |
int | maxLuminosityBlocks () const |
ModuleDescription const & | moduleDescription () const |
Accessor for 'module' description. More... | |
ItemType | nextItemType () |
Advances the source to the next item. More... | |
InputSource & | operator= (InputSource const &)=delete |
bool | primary () const |
Accessor for primary input source flag. More... | |
ProcessConfiguration const & | processConfiguration () const |
Accessor for Process Configuration. More... | |
std::string const & | processGUID () const |
Accessor for global process identifier. More... | |
ProcessHistoryRegistry const & | processHistoryRegistry () const |
Const accessor for process history registry. More... | |
ProcessHistoryRegistry & | processHistoryRegistryForUpdate () |
Non-const accessor for process history registry. More... | |
ProcessingMode | processingMode () const |
RunsLumisAndEvents (default), RunsAndLumis, or Runs. More... | |
boost::shared_ptr < ProductRegistry const > | productRegistry () const |
Accessor for product registry. More... | |
bool | randomAccess () const |
void | readAndMergeLumi (LuminosityBlockPrincipal &lbp) |
Read next luminosity block (same as a prior lumi) More... | |
void | readAndMergeRun (RunPrincipal &rp) |
Read next run (same as a prior run) More... | |
void | readEvent (EventPrincipal &ep, StreamContext &) |
Read next event. More... | |
bool | readEvent (EventPrincipal &ep, EventID const &, StreamContext &) |
Read a specific event. More... | |
std::unique_ptr< FileBlock > | readFile () |
Read next file. More... | |
void | readLuminosityBlock (LuminosityBlockPrincipal &lumiPrincipal, HistoryAppender &historyAppender) |
Read next luminosity block (new lumi) More... | |
boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary () |
Read next luminosity block Auxilary. More... | |
void | readRun (RunPrincipal &runPrincipal, HistoryAppender &historyAppender) |
Read next run (new run) More... | |
boost::shared_ptr< RunAuxiliary > | readRunAuxiliary () |
Read next run Auxiliary. More... | |
ProcessHistoryID const & | reducedProcessHistoryID () const |
void | registerProducts () |
Register any produced products. More... | |
int | remainingEvents () const |
int | remainingLuminosityBlocks () const |
void | repeat () |
Reset the remaining number of events/lumis to the maximum number. More... | |
ProcessingController::ReverseState | reverseState () const |
void | rewind () |
Begin again at the first event. More... | |
RunNumber_t | run () const |
Accessor for current run number. More... | |
boost::shared_ptr< RunAuxiliary > | runAuxiliary () const |
Called by the framework to merge or insert run in principal cache. More... | |
void | setLuminosityBlockNumber_t (LuminosityBlockNumber_t lb) |
Set the luminosity block ID. More... | |
void | setRunNumber (RunNumber_t r) |
Set the run number. More... | |
void | skipEvents (int offset) |
bool | skipForForking () |
Timestamp const & | timestamp () const |
Accessor for the current time, as seen by the input source. More... | |
virtual | ~InputSource () |
Destructor. More... | |
Static Public Member Functions | |
static void | fillDescriptions (edm::ConfigurationDescriptions &descriptions) |
Static Public Member Functions inherited from edm::InputSource | |
static const std::string & | baseType () |
static void | fillDescription (ParameterSetDescription &desc) |
static void | fillDescriptions (ConfigurationDescriptions &descriptions) |
static void | prevalidate (ConfigurationDescriptions &) |
Private Member Functions | |
virtual void | closeFile_ () override |
DQMRootSource (const DQMRootSource &) | |
virtual edm::InputSource::ItemType | getNextItemType () override |
void | logFileAction (char const *msg, char const *fileName) const |
const DQMRootSource & | operator= (const DQMRootSource &) |
void | readElements () |
virtual void | readEvent_ (edm::EventPrincipal &) override |
virtual std::unique_ptr < edm::FileBlock > | readFile_ () override |
virtual void | readLuminosityBlock_ (edm::LuminosityBlockPrincipal &lbCache) override |
virtual boost::shared_ptr < edm::LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () override |
void | readNextItemType () |
virtual void | readRun_ (edm::RunPrincipal &rpCache) override |
virtual boost::shared_ptr < edm::RunAuxiliary > | readRunAuxiliary_ () override |
bool | setupFile (unsigned int iIndex) |
Additional Inherited Members | |
Public Types inherited from edm::InputSource | |
enum | ItemType { IsInvalid, IsStop, IsFile, IsRun, IsLumi, IsEvent, IsRepeat, IsSynchronize } |
enum | ProcessingMode { Runs, RunsAndLumis, RunsLumisAndEvents } |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Protected Member Functions inherited from edm::InputSource | |
void | decreaseRemainingEventsBy (int iSkipped) |
bool | eventCached () const |
boost::shared_ptr < LuminosityBlockPrincipal > const | luminosityBlockPrincipal () const |
bool | newLumi () const |
bool | newRun () const |
ProcessHistoryRegistry & | processHistoryRegistryUpdate () const |
ProductRegistry & | productRegistryUpdate () const |
void | reset () const |
void | resetEventCached () |
void | resetLuminosityBlockAuxiliary (bool isNewLumi=true) const |
void | resetNewLumi () |
void | resetNewRun () |
void | resetRunAuxiliary (bool isNewRun=true) const |
boost::shared_ptr < RunPrincipal > const | runPrincipal () const |
void | setEventCached () |
Called by the framework to merge or ached() const {return eventCached_;}. More... | |
void | setLuminosityBlockAuxiliary (LuminosityBlockAuxiliary *lbp) |
void | setNewLumi () |
void | setNewRun () |
void | setRunAuxiliary (RunAuxiliary *rp) |
void | setTimestamp (Timestamp const &theTime) |
To set the current time, as seen by the input source. More... | |
virtual void | skip (int offset) |
ItemType | state () const |
Definition at line 291 of file DQMRootSource.cc.
DQMRootSource::DQMRootSource | ( | edm::ParameterSet const & | iPSet, |
const edm::InputSourceDescription & | iDesc | ||
) |
Definition at line 424 of file DQMRootSource.cc.
References edm::InputFileCatalog::fileNames(), edm::InputSource::IsStop, kFloatIndex, kIntIndex, kStringIndex, kTH1DIndex, kTH1FIndex, kTH1SIndex, kTH2DIndex, kTH2FIndex, kTH2SIndex, kTH3FIndex, kTProfile2DIndex, kTProfileIndex, m_catalog, m_fileIndex, m_nextItemType, and m_treeReaders.
|
virtual |
Definition at line 467 of file DQMRootSource.cc.
References edm::InputFileCatalog::fileNames(), logFileAction(), m_catalog, m_file, and m_presentlyOpenFileIndex.
|
private |
|
overrideprivatevirtual |
Reimplemented from edm::InputSource.
Definition at line 653 of file DQMRootSource.cc.
References edm::JobReport::inputFileClosed(), m_file, m_jrToken, and edm::Primary.
|
static |
Definition at line 409 of file DQMRootSource.cc.
References edm::ConfigurationDescriptions::addDefault(), edm::ParameterSetDescription::addUntracked(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
overrideprivatevirtual |
Implements edm::InputSource.
Definition at line 494 of file DQMRootSource.cc.
References m_nextItemType.
|
private |
Definition at line 1002 of file DQMRootSource.cc.
References convertXMLtoSQLite_cfg::fileName, and edm::FlushMessageLog().
Referenced by setupFile(), and ~DQMRootSource().
|
private |
|
private |
Definition at line 659 of file DQMRootSource.cc.
References getHLTprescales::index, kNoTypesStored, m_orderedIndices, m_presentIndexItr, m_reducedHistoryIDs, m_runlumiToRange, m_shouldReadMEs, m_treeReaders, and matplotRender::reader.
Referenced by readLuminosityBlock_(), and readRun_().
|
overrideprivatevirtual |
|
overrideprivatevirtual |
Reimplemented from edm::InputSource.
Definition at line 625 of file DQMRootSource.cc.
References edm::InputFileCatalog::fileNames(), edm::JobReport::inputFileOpened(), edm::InputSource::IsStop, edm::InputFileCatalog::logicalFileNames(), m_catalog, m_file, m_fileIndex, m_jrToken, m_nextItemType, readNextItemType(), setupFile(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
overrideprivatevirtual |
Reimplemented from edm::InputSource.
Definition at line 588 of file DQMRootSource.cc.
References edm::LuminosityBlockPrincipal::fillLuminosityBlockPrincipal(), edm::LuminosityBlockPrincipal::id(), edm::LuminosityBlockID::luminosityBlock(), m_lastSeenLumi2, m_lastSeenReducedPHID2, m_lastSeenRun2, m_orderedIndices, m_presentIndexItr, m_reducedHistoryIDs, m_runlumiToRange, m_shouldReadMEs, edm::InputSource::processHistoryRegistryForUpdate(), readElements(), readNextItemType(), edm::JobReport::reportInputLumiSection(), and edm::LuminosityBlockID::run().
|
overrideprivatevirtual |
Implements edm::InputSource.
Definition at line 516 of file DQMRootSource.cc.
References m_historyIDs, m_lumiAux, m_nextIndexItr, m_orderedIndices, m_runlumiToRange, and edm::LuminosityBlockAuxiliary::setProcessHistoryID().
|
private |
Definition at line 703 of file DQMRootSource.cc.
References edm::InputFileCatalog::fileNames(), edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, m_catalog, m_fileIndex, m_justOpenedFileSoNeedToGenerateRunTransition, m_lastSeenReducedPHID, m_lastSeenRun, m_nextIndexItr, m_nextItemType, m_orderedIndices, m_reducedHistoryIDs, and m_runlumiToRange.
Referenced by readFile_(), readLuminosityBlock_(), and readRun_().
|
overrideprivatevirtual |
If the collate option is not set for the DQMStore, we should indeed be sure to reset all histograms after a run transition, but we should definitely avoid doing it using a local, private copy of the actual content of the DQMStore. Clients are completely free to delete/add MonitorElements from the DQMStore and the local copy stored in the std::set will never notice it until it will try to reset a deleted object. That's why the resetting directly queries the DQMStore for its current content.
Reimplemented from edm::InputSource.
Definition at line 532 of file DQMRootSource.cc.
References edm::RunPrincipal::fillRunPrincipal(), edm::RunPrincipal::id(), m_filterOnRun, m_justOpenedFileSoNeedToGenerateRunTransition, m_lastSeenReducedPHID, m_lastSeenRun, m_orderedIndices, m_presentIndexItr, m_reducedHistoryIDs, m_runlumiToRange, m_shouldReadMEs, edm::InputSource::processHistoryRegistryForUpdate(), readElements(), readNextItemType(), edm::JobReport::reportInputRunNumber(), and edm::RunID::run().
|
overrideprivatevirtual |
Implements edm::InputSource.
Definition at line 500 of file DQMRootSource.cc.
References m_historyIDs, m_nextIndexItr, m_orderedIndices, m_runAux, m_runlumiToRange, and edm::RunAuxiliary::setProcessHistoryID().
|
private |
Definition at line 761 of file DQMRootSource.cc.
References cms::Exception::addContext(), electronStore::configs, edm::InputFileCatalog::fileNames(), edm::errors::FileOpenError, edm::errors::FileReadError, i, edm::ProcessHistory::id(), getHLTprescales::index, edm::pset::Registry::instance(), kBeginTimeBranch, kEndTimeBranch, kFirstIndex, kIndicesTree, kLastIndex, kLumiBranch, kMetaDataDirectoryAbsolute, kNIndicies, kParameterSetBranch, kParameterSetTree, kPHIndexBranch, kProcessConfigurationParameterSetIDBranch, kProcessConfigurationPassID, kProcessConfigurationProcessNameBranch, kProcessConfigurationReleaseVersion, kProcessHistoryIndexBranch, kProcessHistoryTree, kRunBranch, kTypeBranch, kTypeNames, logFileAction(), m_catalog, m_file, m_historyIDs, m_justOpenedFileSoNeedToGenerateRunTransition, m_nextIndexItr, m_orderedIndices, m_presentIndexItr, m_presentlyOpenFileIndex, m_reducedHistoryIDs, m_runlumiToRange, m_skipBadFiles, m_treeReaders, m_trees, edm::InputSource::processHistoryRegistryUpdate(), edm::ProcessHistoryRegistry::reducedProcessHistoryID(), edm::ParameterSet::registerFromString(), edm::ProcessHistoryRegistry::registerProcessHistory(), AlCaHLTBitMon_QueryRunRegistry::string, and groupFilesInBlocks::temp.
Referenced by readFile_().
|
private |
Definition at line 368 of file DQMRootSource.cc.
Referenced by DQMRootSource(), readFile_(), readNextItemType(), setupFile(), and ~DQMRootSource().
|
private |
Definition at line 378 of file DQMRootSource.cc.
Referenced by closeFile_(), readFile_(), setupFile(), and ~DQMRootSource().
|
private |
Definition at line 373 of file DQMRootSource.cc.
Referenced by DQMRootSource(), readFile_(), and readNextItemType().
|
private |
Definition at line 388 of file DQMRootSource.cc.
Referenced by readRun_().
|
private |
Definition at line 394 of file DQMRootSource.cc.
Referenced by readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), and setupFile().
|
private |
Definition at line 397 of file DQMRootSource.cc.
Referenced by closeFile_(), and readFile_().
|
private |
Definition at line 390 of file DQMRootSource.cc.
Referenced by readNextItemType(), readRun_(), and setupFile().
|
private |
Definition at line 387 of file DQMRootSource.cc.
Referenced by readLuminosityBlock_().
|
private |
Definition at line 383 of file DQMRootSource.cc.
Referenced by readNextItemType(), and readRun_().
|
private |
Definition at line 385 of file DQMRootSource.cc.
Referenced by readLuminosityBlock_().
|
private |
Definition at line 384 of file DQMRootSource.cc.
Referenced by readNextItemType(), and readRun_().
|
private |
Definition at line 386 of file DQMRootSource.cc.
Referenced by readLuminosityBlock_().
|
private |
Definition at line 370 of file DQMRootSource.cc.
Referenced by readLuminosityBlockAuxiliary_().
|
private |
Definition at line 392 of file DQMRootSource.cc.
|
private |
Definition at line 375 of file DQMRootSource.cc.
Referenced by readLuminosityBlockAuxiliary_(), readNextItemType(), readRunAuxiliary_(), and setupFile().
|
private |
Definition at line 371 of file DQMRootSource.cc.
Referenced by DQMRootSource(), getNextItemType(), readFile_(), and readNextItemType().
|
private |
Definition at line 382 of file DQMRootSource.cc.
Referenced by readElements(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), readNextItemType(), readRun_(), readRunAuxiliary_(), and setupFile().
|
private |
Definition at line 376 of file DQMRootSource.cc.
Referenced by readElements(), readLuminosityBlock_(), readRun_(), and setupFile().
|
private |
Definition at line 374 of file DQMRootSource.cc.
Referenced by setupFile(), and ~DQMRootSource().
|
private |
Definition at line 395 of file DQMRootSource.cc.
Referenced by readElements(), readLuminosityBlock_(), readNextItemType(), readRun_(), and setupFile().
|
private |
Definition at line 369 of file DQMRootSource.cc.
Referenced by readRunAuxiliary_().
|
private |
Definition at line 393 of file DQMRootSource.cc.
|
private |
Definition at line 377 of file DQMRootSource.cc.
Referenced by readElements(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), readNextItemType(), readRun_(), readRunAuxiliary_(), and setupFile().
|
private |
Definition at line 391 of file DQMRootSource.cc.
Referenced by readElements(), readLuminosityBlock_(), and readRun_().
|
private |
Definition at line 389 of file DQMRootSource.cc.
Referenced by setupFile().
|
private |
Definition at line 380 of file DQMRootSource.cc.
Referenced by DQMRootSource(), readElements(), and setupFile().
|
private |
Definition at line 379 of file DQMRootSource.cc.
Referenced by setupFile().