#include <DaqSource.h>
Public Member Functions | |
DaqSource (const ParameterSet &pset, const InputSourceDescription &desc) | |
virtual | ~DaqSource () |
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) |
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... | |
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 () |
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... | |
ProcessingMode | processingMode () const |
RunsLumisAndEvents (default), RunsAndLumis, or Runs. More... | |
boost::shared_ptr < ProductRegistry const > | productRegistry () const |
Accessor for product registry. More... | |
bool | randomAccess () const |
boost::shared_ptr < LuminosityBlockPrincipal > | readAndCacheLumi (HistoryAppender &historyAppender) |
Read next luminosity block (new lumi) More... | |
boost::shared_ptr< RunPrincipal > | readAndCacheRun (HistoryAppender &historyAppender) |
Read next run (new run) More... | |
void | readAndMergeLumi (boost::shared_ptr< LuminosityBlockPrincipal > lbp) |
Read next luminosity block (same as a prior lumi) More... | |
void | readAndMergeRun (boost::shared_ptr< RunPrincipal > rp) |
Read next run (same as a prior run) More... | |
EventPrincipal * | readEvent (EventPrincipal &ep) |
EventPrincipal * | readEvent (EventPrincipal &ep, EventID const &) |
Read a specific event. More... | |
std::unique_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) |
bool | skipForForking () |
Timestamp const & | timestamp () const |
Accessor for the current time, as seen by the input source. More... | |
virtual | ~InputSource () |
Destructor. More... | |
Private Member Functions | |
virtual void | closeBackDoor () |
void | defaultWebPage (xgi::Input *in, xgi::Output *out) |
int | doMyBeginRun () |
virtual ItemType | getNextItemType () |
virtual void | openBackDoor (unsigned int, bool *) |
virtual void | publish (xdata::InfoSpace *) |
virtual void | publishForkInfo (evf::moduleweb::ForkInfoObj *forkInfoObj) |
virtual void | publishToXmas (xdata::InfoSpace *) |
virtual EventPrincipal * | readEvent_ (EventPrincipal &eventPrincipal) |
virtual EventPrincipal * | readIt (EventID const &eventID) |
virtual boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () |
virtual boost::shared_ptr < RunAuxiliary > | readRunAuxiliary_ () |
virtual void | setLumi (LuminosityBlockNumber_t lb) |
virtual void | setRun (RunNumber_t r) |
virtual void | signalWaitingThreadAndBlock () |
virtual void | skip (int offset) |
Private Member Functions inherited from evf::ModuleWeb | |
ModuleWeb (const std::string &) | |
virtual | ~ModuleWeb () |
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 |
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 inherited from edm::InputSource | |
void | decreaseRemainingEventsBy (int iSkipped) |
bool | eventCached () const |
boost::shared_ptr < LuminosityBlockPrincipal > const | luminosityBlockPrincipal () const |
bool | newLumi () const |
bool | newRun () 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... | |
ItemType | state () const |
Definition at line 39 of file DaqSource.h.
|
explicit |
Definition at line 55 of file DaqSource.cc.
References edm::Timestamp::beginOfTime(), cms::Exception::category(), cond_, count, gather_cfg::cout, edm::DaqProvenanceHelper::daqInit(), daqProvenanceHelper_, alignCSCRings::e, fakeLSid_, reco::get(), edm::ParameterSet::getUntrackedParameter(), lumiSegmentSizeInEvents_, lumiSegmentSizeInSeconds_, mutex_, phid_, edm::InputSource::productRegistryUpdate(), matplotRender::reader, reader_, runNumber_, DaqBaseReader::setRunNumber(), edm::InputSource::setTimestamp(), signal_lock_, startOfLastLumi, and AlCaHLTBitMon_QueryRunRegistry::string.
|
virtual |
|
privatevirtual |
Reimplemented from evf::ModuleWeb.
Definition at line 692 of file DaqSource.cc.
References cond_, count, lsTimedOut_, mutex_, and signal_lock_.
|
privatevirtual |
Reimplemented from evf::ModuleWeb.
Definition at line 717 of file DaqSource.cc.
References alignCSCRings::e, cppFunctionSkipper::exception, edm::first(), goToStopping, LaserDQM_cfg::input, evf::ModuleWeb::moduleName_, getHLTPrescaleColumns::path, pos, o2o::query, edm::second(), and AlCaHLTBitMon_QueryRunRegistry::string.
|
private |
Definition at line 149 of file DaqSource.cc.
References beginRunTiming_, evf::moduleweb::ForkInfoObj::control_sem_, gather_cfg::cout, evf::moduleweb::ForkInfoObj::forkHandler, forkInfo_, evf::moduleweb::ForkInfoObj::forkParams, evf::moduleweb::ForkInfoObj::fuAddr, immediateStop, evf::moduleweb::ForkParams::isMaster, evf::moduleweb::ForkInfoObj::lock(), edm::InputSource::newRun(), NULL, evf::moduleweb::ForkInfoObj::receivedStop_, evf::moduleweb::ForkParams::restart, evf::moduleweb::ForkParams::slotId, evf::moduleweb::ForkInfoObj::stopCondition, tvStat_, and evf::moduleweb::ForkInfoObj::unlock().
Referenced by getNextItemType().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 228 of file DaqSource.cc.
References alignLsToLast_, beginRunTiming_, bunchCrossing_, cond_, gather_cfg::cout, FEDRawData::data(), doMyBeginRun(), edm::EventID::event(), edm::InputSource::eventCached(), eventCounter_, eventID_, evf::evtn::evm_board_sense(), evttype_, edm::hlt::Exception, fakeLSid_, fedCollection_, FEDRawDataCollection::FEDData(), DaqBaseReader::fillRawData(), forkInfo_, evf::evtn::getevtyp(), evf::evtn::getfdlbx(), evf::evtn::getfdlpsc(), evf::evtn::getgpshigh(), evf::evtn::getgpslow(), evf::evtn::getlbn(), evf::evtn::getorbit(), goToStopping, evf::evtn::gtpe_board_sense(), evf::evtn::gtpe_getbx(), evf::evtn::gtpe_getlbn(), evf::evtn::gtpe_getorbit(), edm::daqsource::gtpeId_, edm::daqsource::gtpEvmId_, immediateStop, edm::EventAuxiliary::invalidBunchXing, edm::Timestamp::invalidTimestamp(), edm::InputSource::IsEvent, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, keepUsingPsidFromTrigger_, lastLumiPrescaleIndex_, lastLumiUsingEol_, edm::errors::LogicError, lsToBeRecovered_, edm::InputSource::luminosityBlock(), edm::InputSource::luminosityBlockAuxiliary(), luminosityBlockNumber_, lumiSectionIndex_, lumiSegmentSizeInEvents_, lumiSegmentSizeInSeconds_, mutex_, edm::InputSource::newLumi(), edm::InputSource::newRun(), noMoreEvents_, NULL, nullptr, orbitNumber_, phid_, edm::EventAuxiliary::PhysicsTrigger, prescaleSetIndex_, reader_, edm::InputSource::resetLuminosityBlockAuxiliary(), runFork_, runNumber_, edm::InputSource::setEventCached(), edm::InputSource::setLuminosityBlockAuxiliary(), edm::InputSource::setNewLumi(), edm::InputSource::setTimestamp(), signalWaitingThreadAndBlock(), FEDRawData::size(), startOfLastLumi, thisEventLSid, cond::rpcobgas::time, edm::InputSource::timestamp(), tvStat_, edm::EventAuxiliary::Undefined, and useEventCounter_.
|
privatevirtual |
Reimplemented from evf::ModuleWeb.
Definition at line 670 of file DaqSource.cc.
References CLOCK_REALTIME, cond_, count, lsTimedOut_, mutex_, NULL, and signal_lock_.
|
privatevirtual |
Implements evf::ModuleWeb.
Definition at line 655 of file DaqSource.cc.
References is_, lastLumiPrescaleIndex_, lastLumiUsingEol_, lsTimedOut_, lsToBeRecovered_, lumiSectionIndex_, and prescaleSetIndex_.
|
privatevirtual |
Reimplemented from evf::ModuleWeb.
Definition at line 136 of file DaqSource.cc.
References forkInfo_, immediateStop, noMoreEvents_, and runFork_.
|
privatevirtual |
|
privatevirtual |
Implements edm::InputSource.
Definition at line 593 of file DaqSource.cc.
References bunchCrossing_, edm::DaqProvenanceHelper::constBranchDescription_, daqProvenanceHelper_, edm::DaqProvenanceHelper::dummyProvenance_, edm::EventID::event(), edm::InputSource::eventCached(), eventID_, evttype_, fedCollection_, edm::EventPrincipal::fillEventPrincipal(), edm::EventAuxiliary::invalidStoreNumber, edm::InputSource::newLumi(), edm::InputSource::newRun(), noMoreEvents_, orbitNumber_, phid_, edm::InputSource::processGUID(), edm::EventPrincipal::put(), edm::InputSource::resetEventCached(), runNumber_, thisEventLSid, and edm::InputSource::timestamp().
|
privatevirtual |
Definition at line 642 of file DaqSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
privatevirtual |
Implements edm::InputSource.
Definition at line 583 of file DaqSource.cc.
References edm::InputSource::luminosityBlockAuxiliary(), edm::InputSource::newLumi(), edm::InputSource::newRun(), noMoreEvents_, and edm::InputSource::resetNewLumi().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 573 of file DaqSource.cc.
References edm::Timestamp::invalidTimestamp(), edm::InputSource::newRun(), noMoreEvents_, phid_, edm::InputSource::resetNewRun(), runNumber_, and edm::InputSource::timestamp().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 635 of file DaqSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 562 of file DaqSource.cc.
References edm::InputSource::eventCached(), noMoreEvents_, alignCSCRings::r, reader_, edm::InputSource::reset(), edm::InputSource::resetLuminosityBlockAuxiliary(), runNumber_, edm::InputSource::setNewRun(), and DaqBaseReader::setRunNumber().
|
privatevirtual |
Definition at line 702 of file DaqSource.cc.
References cond_, is_, mutex_, and signal_lock_.
Referenced by getNextItemType().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 649 of file DaqSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
private |
Definition at line 83 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 104 of file DaqSource.h.
Referenced by doMyBeginRun(), and getNextItemType().
|
private |
Definition at line 105 of file DaqSource.h.
Referenced by getNextItemType(), and readEvent_().
|
private |
Definition at line 87 of file DaqSource.h.
Referenced by closeBackDoor(), DaqSource(), getNextItemType(), openBackDoor(), and signalWaitingThreadAndBlock().
|
private |
Definition at line 96 of file DaqSource.h.
Referenced by closeBackDoor(), DaqSource(), and openBackDoor().
|
private |
Definition at line 80 of file DaqSource.h.
Referenced by DaqSource(), and readEvent_().
|
private |
Definition at line 74 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 108 of file DaqSource.h.
Referenced by getNextItemType(), and readEvent_().
|
private |
Definition at line 107 of file DaqSource.h.
Referenced by getNextItemType(), and readEvent_().
|
private |
Definition at line 76 of file DaqSource.h.
Referenced by DaqSource(), and getNextItemType().
|
private |
Definition at line 109 of file DaqSource.h.
Referenced by getNextItemType(), and readEvent_().
|
private |
Definition at line 101 of file DaqSource.h.
Referenced by doMyBeginRun(), getNextItemType(), and publishForkInfo().
|
private |
Definition at line 98 of file DaqSource.h.
Referenced by defaultWebPage(), and getNextItemType().
|
private |
Definition at line 100 of file DaqSource.h.
Referenced by doMyBeginRun(), getNextItemType(), and publishForkInfo().
|
private |
Definition at line 94 of file DaqSource.h.
Referenced by publish(), and signalWaitingThreadAndBlock().
|
private |
Definition at line 75 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 90 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 91 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 92 of file DaqSource.h.
Referenced by closeBackDoor(), openBackDoor(), and publish().
|
private |
Definition at line 93 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 79 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 88 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 70 of file DaqSource.h.
Referenced by DaqSource(), and getNextItemType().
|
private |
Definition at line 71 of file DaqSource.h.
Referenced by DaqSource(), and getNextItemType().
|
private |
Definition at line 95 of file DaqSource.h.
Referenced by publishToXmas().
|
private |
Definition at line 85 of file DaqSource.h.
Referenced by closeBackDoor(), DaqSource(), getNextItemType(), openBackDoor(), and signalWaitingThreadAndBlock().
|
private |
Definition at line 82 of file DaqSource.h.
Referenced by getNextItemType(), publishForkInfo(), readEvent_(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), and setRun().
|
private |
Definition at line 106 of file DaqSource.h.
Referenced by getNextItemType(), and readEvent_().
|
private |
Definition at line 81 of file DaqSource.h.
Referenced by DaqSource(), getNextItemType(), readEvent_(), and readRunAuxiliary_().
|
private |
Definition at line 89 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 69 of file DaqSource.h.
Referenced by DaqSource(), getNextItemType(), setRun(), and ~DaqSource().
|
private |
Definition at line 102 of file DaqSource.h.
Referenced by getNextItemType(), and publishForkInfo().
|
private |
Definition at line 78 of file DaqSource.h.
Referenced by DaqSource(), getNextItemType(), readEvent_(), readRunAuxiliary_(), and setRun().
|
private |
Definition at line 86 of file DaqSource.h.
Referenced by closeBackDoor(), DaqSource(), openBackDoor(), and signalWaitingThreadAndBlock().
|
private |
Definition at line 99 of file DaqSource.h.
Referenced by DaqSource(), and getNextItemType().
|
private |
Definition at line 97 of file DaqSource.h.
Referenced by getNextItemType(), and readEvent_().
|
private |
Definition at line 103 of file DaqSource.h.
Referenced by doMyBeginRun(), and getNextItemType().
|
private |
Definition at line 72 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 73 of file DaqSource.h.