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... | |
void | closeFile (boost::shared_ptr< FileBlock >, bool cleaningUpAfterException) |
close current file More... | |
void | doBeginJob () |
Called by framework at beginning of job. More... | |
void | doBeginLumi (LuminosityBlockPrincipal &lbp) |
Called by framework at beginning of lumi block. More... | |
void | doBeginRun (RunPrincipal &rp) |
Called by framework at beginning of run. More... | |
void | doEndJob () |
Called by framework at end of job. More... | |
void | doEndLumi (LuminosityBlockPrincipal &lbp, bool cleaningUpAfterException) |
Called by framework at end of lumi block. More... | |
void | doEndRun (RunPrincipal &rp, bool cleaningUpAfterException) |
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... | |
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 | markLumi () |
Mark lumi as read. More... | |
int | markRun () |
Mark run as read. More... | |
int | maxEvents () const |
int | maxLuminosityBlocks () const |
ModuleDescription const & | moduleDescription () const |
Accessor for 'module' description. More... | |
ItemType | nextItemType () |
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... | |
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 | readAndCacheLumi (bool merge, HistoryAppender &historyAppender) |
Read next luminosity block. More... | |
void | readAndCacheRun (bool merge, HistoryAppender &historyAppender) |
Read next run. More... | |
EventPrincipal * | readEvent (boost::shared_ptr< LuminosityBlockPrincipal > lbCache) |
EventPrincipal * | readEvent (EventID const &) |
Read a specific event. More... | |
boost::shared_ptr< FileBlock > | readFile () |
Read next file. More... | |
boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary () |
Read next luminosity block Auxilary. 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) |
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 &) |
Protected Member Functions | |
virtual void | endLuminosityBlock (edm::LuminosityBlock &) |
virtual void | endRun (edm::Run &) |
Protected Member Functions inherited from edm::InputSource | |
void | decreaseRemainingEventsBy (int iSkipped) |
EventPrincipal * | eventPrincipalCache () |
boost::shared_ptr < LuminosityBlockPrincipal > const | luminosityBlockPrincipal () const |
PrincipalCache const & | principalCache () const |
PrincipalCache & | principalCache () |
ProductRegistry & | productRegistryUpdate () const |
void | reset () const |
void | resetLuminosityBlockAuxiliary () const |
void | resetRunAuxiliary () const |
boost::shared_ptr < RunPrincipal > const | runPrincipal () const |
void | setLuminosityBlockAuxiliary (LuminosityBlockAuxiliary *lbp) |
void | setRunAuxiliary (RunAuxiliary *rp) |
void | setTimestamp (Timestamp const &theTime) |
To set the current time, as seen by the input source. More... | |
ItemType | state () const |
Private Member Functions | |
virtual void | closeFile_ () |
DQMRootSource (const DQMRootSource &) | |
virtual edm::InputSource::ItemType | getNextItemType () |
void | logFileAction (char const *msg, char const *fileName) const |
const DQMRootSource & | operator= (const DQMRootSource &) |
void | readElements () |
virtual edm::EventPrincipal * | readEvent_ () |
virtual boost::shared_ptr < edm::FileBlock > | readFile_ () |
virtual boost::shared_ptr < edm::LuminosityBlockPrincipal > | readLuminosityBlock_ (boost::shared_ptr< edm::LuminosityBlockPrincipal > lbCache) |
virtual boost::shared_ptr < edm::LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () |
void | readNextItemType () |
virtual boost::shared_ptr < edm::RunPrincipal > | readRun_ (boost::shared_ptr< edm::RunPrincipal > rpCache) |
virtual boost::shared_ptr < edm::RunAuxiliary > | readRunAuxiliary_ () |
void | setupFile (unsigned int iIndex) |
Private Attributes | |
edm::InputFileCatalog | m_catalog |
bool | m_doNotReadRemainingPartsOfFileSinceFrameworkTerminating |
std::auto_ptr< TFile > | m_file |
size_t | m_fileIndex |
unsigned int | m_filterOnRun |
std::vector < edm::ProcessHistoryID > | m_historyIDs |
edm::JobReport::Token | m_jrToken |
bool | m_justOpenedFileSoNeedToGenerateRunTransition |
unsigned int | m_lastSeenRun |
edm::LuminosityBlockAuxiliary | m_lumiAux |
std::set< MonitorElement * > | m_lumiElements |
std::list< unsigned int >::iterator | m_nextIndexItr |
edm::InputSource::ItemType | m_nextItemType |
std::list< unsigned int > | m_orderedIndices |
std::list< unsigned int >::iterator | m_presentIndexItr |
size_t | m_presentlyOpenFileIndex |
edm::RunAuxiliary | m_runAux |
std::set< MonitorElement * > | m_runElements |
std::vector< RunLumiToRange > | m_runlumiToRange |
bool | m_shouldReadMEs |
bool | m_shouldResetLumiMEs |
bool | m_shouldResetRunMEs |
std::vector< boost::shared_ptr < TreeReaderBase > > | m_treeReaders |
std::vector< TTree * > | m_trees |
Additional Inherited Members | |
Public Types inherited from edm::InputSource | |
enum | ItemType { IsInvalid, IsStop, IsFile, IsRun, IsLumi, IsEvent, IsRepeat } |
enum | ProcessingMode { Runs, RunsAndLumis, RunsLumisAndEvents } |
typedef ProductRegistryHelper::TypeLabelList | TypeLabelList |
Definition at line 289 of file DQMRootSource.cc.
DQMRootSource::DQMRootSource | ( | edm::ParameterSet const & | iPSet, |
const edm::InputSourceDescription & | iDesc | ||
) |
Definition at line 380 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 421 of file DQMRootSource.cc.
References edm::InputFileCatalog::fileNames(), logFileAction(), m_catalog, m_file, and m_presentlyOpenFileIndex.
|
private |
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 633 of file DQMRootSource.cc.
References edm::JobReport::inputFileClosed(), m_doNotReadRemainingPartsOfFileSinceFrameworkTerminating, m_jrToken, m_orderedIndices, m_presentIndexItr, and readElements().
|
protectedvirtual |
Reimplemented from edm::InputSource.
Definition at line 620 of file DQMRootSource.cc.
|
protectedvirtual |
Reimplemented from edm::InputSource.
Definition at line 624 of file DQMRootSource.cc.
References m_doNotReadRemainingPartsOfFileSinceFrameworkTerminating.
|
static |
Definition at line 367 of file DQMRootSource.cc.
References edm::ConfigurationDescriptions::addDefault(), and edm::ParameterSetDescription::addUntracked().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 455 of file DQMRootSource.cc.
References m_nextItemType.
|
private |
Definition at line 1003 of file DQMRootSource.cc.
References convertXMLtoSQLite_cfg::fileName, and edm::FlushMessageLog().
Referenced by setupFile(), and ~DQMRootSource().
|
private |
|
private |
Definition at line 654 of file DQMRootSource.cc.
References getHLTprescales::index, kNoTypesStored, m_orderedIndices, m_presentIndexItr, m_runlumiToRange, m_shouldReadMEs, m_treeReaders, and matplotRender::reader.
Referenced by closeFile_(), readLuminosityBlock_(), and readRun_().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 450 of file DQMRootSource.cc.
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 597 of file DQMRootSource.cc.
References edm::InputFileCatalog::fileNames(), edm::JobReport::inputFileOpened(), edm::InputFileCatalog::logicalFileNames(), m_catalog, m_doNotReadRemainingPartsOfFileSinceFrameworkTerminating, m_file, m_fileIndex, m_jrToken, readNextItemType(), and setupFile().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 564 of file DQMRootSource.cc.
References m_presentIndexItr, m_runlumiToRange, m_shouldResetLumiMEs, readElements(), readNextItemType(), and edm::JobReport::reportInputLumiSection().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 488 of file DQMRootSource.cc.
References m_historyIDs, m_lumiAux, m_nextIndexItr, m_orderedIndices, m_runlumiToRange, and edm::LuminosityBlockAuxiliary::setProcessHistoryID().
|
private |
Definition at line 697 of file DQMRootSource.cc.
References edm::InputFileCatalog::fileNames(), edm::RunAuxiliary::id(), edm::LuminosityBlockAuxiliary::id(), edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, m_catalog, m_fileIndex, m_justOpenedFileSoNeedToGenerateRunTransition, m_lastSeenRun, m_lumiAux, m_nextIndexItr, m_nextItemType, m_orderedIndices, m_runAux, and m_runlumiToRange.
Referenced by readFile_(), readLuminosityBlock_(), and readRun_().
|
privatevirtual |
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 504 of file DQMRootSource.cc.
References m_filterOnRun, m_justOpenedFileSoNeedToGenerateRunTransition, m_lastSeenRun, m_orderedIndices, m_presentIndexItr, m_runlumiToRange, m_shouldReadMEs, m_shouldResetLumiMEs, m_shouldResetRunMEs, readElements(), readNextItemType(), and edm::JobReport::reportInputRunNumber().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 461 of file DQMRootSource.cc.
References getHLTprescales::index, m_historyIDs, m_nextIndexItr, m_orderedIndices, m_runAux, m_runlumiToRange, GetRecoTauVFromDQM_MC_cff::next, and edm::RunAuxiliary::setProcessHistoryID().
|
private |
Definition at line 775 of file DQMRootSource.cc.
References cms::Exception::addContext(), cmsPerfCommons::configs, cms::Digest::digest(), edm::InputFileCatalog::fileNames(), edm::errors::FileOpenError, edm::errors::FileReadError, i, edm::ProcessHistory::id(), getHLTprescales::index, edm::detail::ThreadSafeRegistry< KEY, T, E >::insertMapped(), edm::detail::ThreadSafeRegistry< KEY, T, E >::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_runlumiToRange, m_treeReaders, m_trees, groupFilesInBlocks::temp, and cms::MD5Result::toString().
Referenced by readFile_().
|
private |
Definition at line 329 of file DQMRootSource.cc.
Referenced by DQMRootSource(), readFile_(), readNextItemType(), setupFile(), and ~DQMRootSource().
|
private |
Definition at line 347 of file DQMRootSource.cc.
Referenced by closeFile_(), endRun(), and readFile_().
|
private |
Definition at line 339 of file DQMRootSource.cc.
Referenced by readFile_(), setupFile(), and ~DQMRootSource().
|
private |
Definition at line 334 of file DQMRootSource.cc.
Referenced by DQMRootSource(), readFile_(), and readNextItemType().
|
private |
Definition at line 345 of file DQMRootSource.cc.
Referenced by readRun_().
|
private |
Definition at line 353 of file DQMRootSource.cc.
Referenced by readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), and setupFile().
|
private |
Definition at line 355 of file DQMRootSource.cc.
Referenced by closeFile_(), and readFile_().
|
private |
Definition at line 346 of file DQMRootSource.cc.
Referenced by readNextItemType(), readRun_(), and setupFile().
|
private |
Definition at line 344 of file DQMRootSource.cc.
Referenced by readNextItemType(), and readRun_().
|
private |
Definition at line 331 of file DQMRootSource.cc.
Referenced by readLuminosityBlockAuxiliary_(), and readNextItemType().
|
private |
Definition at line 351 of file DQMRootSource.cc.
|
private |
Definition at line 336 of file DQMRootSource.cc.
Referenced by readLuminosityBlockAuxiliary_(), readNextItemType(), readRunAuxiliary_(), and setupFile().
|
private |
Definition at line 332 of file DQMRootSource.cc.
Referenced by DQMRootSource(), getNextItemType(), and readNextItemType().
|
private |
Definition at line 343 of file DQMRootSource.cc.
Referenced by closeFile_(), readElements(), readLuminosityBlockAuxiliary_(), readNextItemType(), readRun_(), readRunAuxiliary_(), and setupFile().
|
private |
Definition at line 337 of file DQMRootSource.cc.
Referenced by closeFile_(), readElements(), readLuminosityBlock_(), readRun_(), and setupFile().
|
private |
Definition at line 335 of file DQMRootSource.cc.
Referenced by setupFile(), and ~DQMRootSource().
|
private |
Definition at line 330 of file DQMRootSource.cc.
Referenced by readNextItemType(), and readRunAuxiliary_().
|
private |
Definition at line 352 of file DQMRootSource.cc.
|
private |
Definition at line 338 of file DQMRootSource.cc.
Referenced by readElements(), readLuminosityBlock_(), readLuminosityBlockAuxiliary_(), readNextItemType(), readRun_(), readRunAuxiliary_(), and setupFile().
|
private |
Definition at line 348 of file DQMRootSource.cc.
Referenced by readElements(), and readRun_().
|
private |
Definition at line 350 of file DQMRootSource.cc.
Referenced by readLuminosityBlock_(), and readRun_().
|
private |
Definition at line 349 of file DQMRootSource.cc.
Referenced by readRun_().
|
private |
Definition at line 341 of file DQMRootSource.cc.
Referenced by DQMRootSource(), readElements(), and setupFile().
|
private |
Definition at line 340 of file DQMRootSource.cc.
Referenced by setupFile().