#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... | |
void | closeFile (boost::shared_ptr< FileBlock >) |
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) |
Called by framework at end of lumi block. More... | |
void | doEndRun (RunPrincipal &rp) |
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 const | 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... | |
ProcessHistoryID const & | processHistoryID () const |
Accessor for the input process history ID of the current run. 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 () |
Read next luminosity block. More... | |
void | readAndCacheRun () |
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... | |
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... | |
void | wakeUp () |
Wake up the input source. More... | |
virtual | ~InputSource () |
Destructor. More... | |
Private Member Functions | |
virtual void | closeBackDoor () |
void | defaultWebPage (xgi::Input *in, xgi::Output *out) |
virtual ItemType | getNextItemType () |
virtual void | openBackDoor (unsigned int) |
virtual void | publish (xdata::InfoSpace *) |
virtual void | publishToXmas (xdata::InfoSpace *) |
virtual EventPrincipal * | readEvent_ () |
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 () |
Private Attributes | |
bool | alignLsToLast_ |
pthread_cond_t | cond_ |
int | count |
bool | eventCached_ |
unsigned int | eventCounter_ |
bool | fakeLSid_ |
bool | goToStopping |
xdata::InfoSpace * | is_ |
bool | keepUsingPsidFromTrigger_ |
xdata::UnsignedInteger32 * | lastLumiPrescaleIndex_ |
xdata::Boolean * | lsTimedOut_ |
xdata::Boolean * | lsToBeRecovered_ |
LuminosityBlockNumber_t | luminosityBlockNumber_ |
xdata::UnsignedInteger32 * | lumiSectionIndex_ |
unsigned int | lumiSegmentSizeInEvents_ |
xdata::InfoSpace * | mis_ |
pthread_mutex_t | mutex_ |
bool | newLumi_ |
bool | newRun_ |
bool | noMoreEvents_ |
xdata::UnsignedInteger32 * | prescaleSetIndex_ |
DaqBaseReader * | reader_ |
RunNumber_t | runNumber_ |
pthread_mutex_t | signal_lock_ |
unsigned int | thisEventLSid |
bool | useEventCounter_ |
Private Attributes inherited from evf::ModuleWeb | |
std::string | moduleName_ |
Definition at line 34 of file DaqSource.h.
|
explicit |
Definition at line 56 of file DaqSource.cc.
References edm::Timestamp::beginOfTime(), cms::Exception::category(), cond_, count, ExpressReco_HICollisions_FallBack::e, reco::get(), edm::ParameterSet::getUntrackedParameter(), mutex_, reader_, runNumber_, DaqBaseReader::setRunNumber(), edm::InputSource::setTimestamp(), and signal_lock_.
|
virtual |
|
privatevirtual |
Reimplemented from evf::ModuleWeb.
Definition at line 467 of file DaqSource.cc.
References cond_, count, lsTimedOut_, mutex_, and signal_lock_.
|
privatevirtual |
Reimplemented from evf::ModuleWeb.
Definition at line 489 of file DaqSource.cc.
References ExpressReco_HICollisions_FallBack::e, cmsCodeRules.cppFunctionSkipper::exception, edm::first(), goToStopping, collect_tpl::input, evf::ModuleWeb::moduleName_, path(), pos, o2o::query, edm::second(), and EcalElecEmulTccFlatFileProducerFromTPG_cfg::tokens.
|
privatevirtual |
Implements edm::InputSource.
Definition at line 118 of file DaqSource.cc.
References alignLsToLast_, cond_, FEDRawData::data(), ExpressReco_HICollisions_FallBack::e, edm::EventID::event(), eventCached_, eventCounter_, edm::InputSource::eventPrincipalCache(), evf::evtn::evm_board_sense(), edm::hlt::Exception, fakeLSid_, FEDRawDataCollection::FEDData(), edm::EventPrincipal::fillEventPrincipal(), DaqBaseReader::fillRawData(), 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_, edm::EventAuxiliary::invalidBunchXing, edm::EventAuxiliary::invalidStoreNumber, edm::Timestamp::invalidTimestamp(), edm::InputSource::IsEvent, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, keepUsingPsidFromTrigger_, lastLumiPrescaleIndex_, edm::errors::LogicError, lsToBeRecovered_, edm::InputSource::luminosityBlock(), edm::InputSource::luminosityBlockAuxiliary(), luminosityBlockNumber_, edm::InputSource::luminosityBlockPrincipal(), lumiSectionIndex_, lumiSegmentSizeInEvents_, edm::InputSource::moduleDescription(), mutex_, newLumi_, newRun_, noMoreEvents_, edm::EventAuxiliary::PhysicsTrigger, prescaleSetIndex_, edm::InputSource::processGUID(), edm::InputSource::readAndCacheLumi(), reader_, edm::InputSource::resetLuminosityBlockAuxiliary(), runNumber_, edm::InputSource::setLuminosityBlockAuxiliary(), edm::InputSource::setLumiPrematurelyRead(), edm::InputSource::setTimestamp(), signalWaitingThreadAndBlock(), FEDRawData::size(), thisEventLSid, cond::rpcobgas::time, edm::InputSource::timestamp(), edm::EventAuxiliary::Undefined, and useEventCounter_.
|
privatevirtual |
Reimplemented from evf::ModuleWeb.
Definition at line 446 of file DaqSource.cc.
References cond_, count, lsTimedOut_, mutex_, NULL, and signal_lock_.
|
privatevirtual |
Implements evf::ModuleWeb.
Definition at line 432 of file DaqSource.cc.
References is_, lastLumiPrescaleIndex_, lsTimedOut_, lsToBeRecovered_, lumiSectionIndex_, and prescaleSetIndex_.
|
privatevirtual |
|
privatevirtual |
Implements edm::InputSource.
Definition at line 397 of file DaqSource.cc.
References eventCached_, edm::InputSource::eventPrincipalCache(), newLumi_, newRun_, and noMoreEvents_.
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 419 of file DaqSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
privatevirtual |
Implements edm::InputSource.
Definition at line 385 of file DaqSource.cc.
References edm::InputSource::luminosityBlockAuxiliary(), newLumi_, newRun_, and noMoreEvents_.
|
privatevirtual |
Implements edm::InputSource.
Definition at line 377 of file DaqSource.cc.
References edm::Timestamp::invalidTimestamp(), newRun_, noMoreEvents_, runNumber_, and edm::InputSource::timestamp().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 412 of file DaqSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 366 of file DaqSource.cc.
References eventCached_, newLumi_, newRun_, noMoreEvents_, csvReporter::r, reader_, edm::InputSource::reset(), edm::InputSource::resetLuminosityBlockAuxiliary(), runNumber_, and DaqBaseReader::setRunNumber().
|
privatevirtual |
Definition at line 476 of file DaqSource.cc.
References cond_, mutex_, and signal_lock_.
Referenced by getNextItemType().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 426 of file DaqSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
private |
Definition at line 74 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 78 of file DaqSource.h.
Referenced by closeBackDoor(), DaqSource(), getNextItemType(), openBackDoor(), and signalWaitingThreadAndBlock().
|
private |
Definition at line 86 of file DaqSource.h.
Referenced by closeBackDoor(), DaqSource(), and openBackDoor().
|
private |
Definition at line 73 of file DaqSource.h.
Referenced by getNextItemType(), readEvent_(), and setRun().
|
private |
Definition at line 64 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 66 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 88 of file DaqSource.h.
Referenced by defaultWebPage(), and getNextItemType().
|
private |
Definition at line 84 of file DaqSource.h.
Referenced by publish().
|
private |
Definition at line 65 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 81 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 82 of file DaqSource.h.
Referenced by closeBackDoor(), openBackDoor(), and publish().
|
private |
Definition at line 83 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 69 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 79 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 62 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 85 of file DaqSource.h.
Referenced by publishToXmas().
|
private |
Definition at line 76 of file DaqSource.h.
Referenced by closeBackDoor(), DaqSource(), getNextItemType(), openBackDoor(), and signalWaitingThreadAndBlock().
|
private |
Definition at line 72 of file DaqSource.h.
Referenced by getNextItemType(), readEvent_(), readLuminosityBlockAuxiliary_(), and setRun().
|
private |
Definition at line 71 of file DaqSource.h.
Referenced by getNextItemType(), readEvent_(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), and setRun().
|
private |
Definition at line 70 of file DaqSource.h.
Referenced by getNextItemType(), readEvent_(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), and setRun().
|
private |
Definition at line 80 of file DaqSource.h.
Referenced by getNextItemType(), and publish().
|
private |
Definition at line 61 of file DaqSource.h.
Referenced by DaqSource(), getNextItemType(), setRun(), and ~DaqSource().
|
private |
Definition at line 68 of file DaqSource.h.
Referenced by DaqSource(), getNextItemType(), readRunAuxiliary_(), and setRun().
|
private |
Definition at line 77 of file DaqSource.h.
Referenced by closeBackDoor(), DaqSource(), openBackDoor(), and signalWaitingThreadAndBlock().
|
private |
Definition at line 87 of file DaqSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 63 of file DaqSource.h.
Referenced by getNextItemType().