#include <StreamerInputSource.h>
Classes | |
class | ProductGetter |
Public Member Functions | |
void | deserializeAndMergeWithRegistry (InitMsgView const &initView, bool subsequent=false) |
EventPrincipal * | deserializeEvent (EventMsgView const &eventView) |
StreamerInputSource (ParameterSet const &pset, InputSourceDescription const &desc) | |
virtual | ~StreamerInputSource () |
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 std::auto_ptr < SendJobHeader > | deserializeRegistry (InitMsgView const &initView) |
static void | fillDescription (ParameterSetDescription &description) |
static void | mergeIntoRegistry (SendJobHeader const &header, ProductRegistry &, bool subsequent) |
static unsigned int | uncompressBuffer (unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, unsigned int expectedFullSize) |
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 | |
void | resetAfterEndRun () |
void | setEndRun () |
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 |
Static Protected Member Functions | |
static void | buildClassCache (SendDescs const &descs) |
static void | declareStreamers (SendDescs const &descs) |
Protected Attributes | |
bool | inputFileTransitionsEachEvent_ |
Private Member Functions | |
virtual ItemType | getNextItemType () |
virtual EventPrincipal * | read ()=0 |
virtual EventPrincipal * | readEvent_ () |
virtual boost::shared_ptr < FileBlock > | readFile_ () |
virtual boost::shared_ptr < LuminosityBlockAuxiliary > | readLuminosityBlockAuxiliary_ () |
virtual boost::shared_ptr < RunAuxiliary > | readRunAuxiliary_ () |
virtual void | setRun (RunNumber_t r) |
Private Attributes | |
std::vector< unsigned char > | dest_ |
bool | eventCached_ |
bool | newLumi_ |
bool | newRun_ |
ProductGetter | productGetter_ |
bool | runEndingFlag_ |
TClass * | tc_ |
TBufferFile | xbuf_ |
Static Private Attributes | |
static std::string | processName_ |
static unsigned int | protocolVersion_ |
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 29 of file StreamerInputSource.h.
|
explicit |
Definition at line 49 of file StreamerInputSource.cc.
|
virtual |
Definition at line 67 of file StreamerInputSource.cc.
|
staticprotected |
Definition at line 115 of file StreamerInputSource.cc.
References edm::doBuildRealData(), alignCSCRings::e, FDEBUG, i, and edm::wrappedClassName().
Referenced by mergeIntoRegistry().
|
staticprotected |
Definition at line 102 of file StreamerInputSource.cc.
References alignCSCRings::e, FDEBUG, i, edm::loadCap(), and edm::wrappedClassName().
Referenced by mergeIntoRegistry().
void edm::StreamerInputSource::deserializeAndMergeWithRegistry | ( | InitMsgView const & | initView, |
bool | subsequent = false |
||
) |
Deserializes the specified init message into a SendJobHeader object and merges registries.
Definition at line 241 of file StreamerInputSource.cc.
References edm::PrincipalCache::adjustEventToNewProductRegistry(), deserializeRegistry(), i, edm::detail::ThreadSafeRegistry< KEY, T, E >::insertMapped(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), mergeIntoRegistry(), edm::InputSource::principalCache(), edm::InputSource::productRegistry(), edm::InputSource::productRegistryUpdate(), sd, and edm::ParameterSet::setID().
Referenced by edm::StreamerFileReader::read(), edm::EventStreamHttpReader::readHeader(), edm::StreamerFileReader::StreamerFileReader(), and edm::StreamerInputModule< Producer >::StreamerInputModule().
EventPrincipal * edm::StreamerInputSource::deserializeEvent | ( | EventMsgView const & | eventView | ) |
Deserializes the specified event message into an EventPrincipal object.
Definition at line 265 of file StreamerInputSource.cc.
References cms::Adler32(), EventMsgView::adler32_chksum(), dtNoiseDBValidation_cfg::cerr, EventMsgView::code(), filterCSVwithJSON::copy, dest_, Header::EVENT, EventMsgView::event(), eventCached_, EventMsgView::eventData(), EventMsgView::eventLength(), edm::InputSource::eventPrincipalCache(), edm::hlt::Exception, FDEBUG, edm::EventPrincipal::fillEventPrincipal(), edm::BranchIDListHelper::fixBranchListIndexes(), Capri::details::from(), EventMsgView::hostName(), edm::detail::ThreadSafeRegistry< KEY, T, E >::insertMapped(), edm::detail::ThreadSafeRegistry< KEY, T, E >::instance(), edm::Timestamp::invalidTimestamp(), EventMsgView::lumi(), edm::InputSource::luminosityBlock(), edm::InputSource::luminosityBlockAuxiliary(), newLumi_, newRun_, EventMsgView::origDataSize(), pos, productGetter_, edm::EventPrincipal::putOnRead(), edm::InputSource::resetLuminosityBlockAuxiliary(), EventMsgView::run(), edm::InputSource::run(), edm::InputSource::runAuxiliary(), sd, edm::StreamerInputSource::ProductGetter::setEventPrincipal(), edm::InputSource::setLuminosityBlockAuxiliary(), edm::RunAuxiliary::setProcessHistoryID(), edm::LuminosityBlockAuxiliary::setProcessHistoryID(), edm::setRefCoreStreamer(), edm::InputSource::setRunAuxiliary(), EventMsgView::size(), edm::Principal::size(), tc_, uncompressBuffer(), and xbuf_.
Referenced by edm::StreamerFileReader::read(), and edm::EventStreamHttpReader::read().
|
static |
Deserializes the specified init message into a SendJobHeader object (which is related to the product registry).
Definition at line 193 of file StreamerInputSource.cc.
References cms::Adler32(), InitMsgView::adler32_chksum(), dtNoiseDBValidation_cfg::cerr, InitMsgView::code(), InitMsgView::descData(), InitMsgView::descLength(), edm::hlt::Exception, FDEBUG, edm::getTClass(), InitMsgView::hostName(), Header::INIT, InitMsgView::processName(), processName_, InitMsgView::protocolVersion(), protocolVersion_, and sd.
Referenced by deserializeAndMergeWithRegistry(), and edm::readHeaderFromStream().
|
static |
Definition at line 461 of file StreamerInputSource.cc.
References edm::InputSource::fillDescription().
Referenced by edm::StreamerFileReader::fillDescriptions().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 154 of file StreamerInputSource.cc.
References eventCached_, inputFileTransitionsEachEvent_, edm::InputSource::IsEvent, edm::InputSource::IsFile, edm::InputSource::IsLumi, edm::InputSource::IsRun, edm::InputSource::IsStop, edm::InputSource::luminosityBlockAuxiliary(), newLumi_, newRun_, read(), edm::InputSource::resetLuminosityBlockAuxiliary(), edm::InputSource::resetRunAuxiliary(), edm::InputSource::runAuxiliary(), and runEndingFlag_.
|
static |
Definition at line 76 of file StreamerInputSource.cc.
References edm::SendJobHeader::branchIDLists(), buildClassCache(), declareStreamers(), edm::SendJobHeader::descs(), edm::hlt::Exception, FDEBUG, edm::fillProductRegistryTransients(), edm::loadExtraClasses(), edm::ProductRegistry::merge(), edm::BranchDescription::Permissive, edm::SendJobHeader::processConfigurations(), edm::BranchIDListHelper::updateFromInput(), and edm::ProductRegistry::updateFromInput().
Referenced by deserializeAndMergeWithRegistry(), and edm::getRegFromFile().
|
privatepure virtual |
Implemented in edm::EventStreamHttpReader, edm::StreamerInputModule< Producer >, and edm::StreamerFileReader.
Referenced by getNextItemType().
|
privatevirtual |
Implements edm::InputSource.
Definition at line 144 of file StreamerInputSource.cc.
References eventCached_, edm::InputSource::eventPrincipalCache(), edm::InputSource::luminosityBlockPrincipal(), newLumi_, newRun_, and edm::EventPrincipal::setLuminosityBlockPrincipal().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 71 of file StreamerInputSource.cc.
|
privatevirtual |
Implements edm::InputSource.
Definition at line 135 of file StreamerInputSource.cc.
References edm::InputSource::luminosityBlockAuxiliary(), newLumi_, and newRun_.
|
privatevirtual |
Implements edm::InputSource.
Definition at line 127 of file StreamerInputSource.cc.
References newRun_, and edm::InputSource::runAuxiliary().
|
protected |
Definition at line 426 of file StreamerInputSource.cc.
References eventCached_, newLumi_, newRun_, edm::InputSource::reset(), edm::InputSource::resetLuminosityBlockAuxiliary(), edm::InputSource::resetRunAuxiliary(), and runEndingFlag_.
|
inlineprotected |
Definition at line 61 of file StreamerInputSource.h.
References runEndingFlag_.
Referenced by edm::EventStreamHttpReader::read().
|
privatevirtual |
Reimplemented from edm::InputSource.
Definition at line 437 of file StreamerInputSource.cc.
References edm::hlt::Exception, and edm::errors::LogicError.
|
static |
Uncompresses the data in the specified input buffer into the specified output buffer. The inputSize should be set to the size of the compressed data in the inputBuffer. The expectedFullSize should be set to the original size of the data (before compression). Returns the actual size of the uncompressed data. Errors are reported by throwing exceptions.
Definition at line 391 of file StreamerInputSource.cc.
References dtNoiseDBValidation_cfg::cerr, edm::hlt::Exception, FDEBUG, and run_regression::ret.
Referenced by edm::StreamDQMDeserializer::deserializeDQMEvent(), and deserializeEvent().
|
private |
Definition at line 102 of file StreamerInputSource.h.
Referenced by deserializeEvent().
|
private |
Definition at line 99 of file StreamerInputSource.h.
Referenced by deserializeEvent(), getNextItemType(), readEvent_(), and resetAfterEndRun().
|
protected |
Definition at line 64 of file StreamerInputSource.h.
Referenced by getNextItemType().
|
private |
Definition at line 98 of file StreamerInputSource.h.
Referenced by deserializeEvent(), getNextItemType(), readEvent_(), readLuminosityBlockAuxiliary_(), and resetAfterEndRun().
|
private |
Definition at line 97 of file StreamerInputSource.h.
Referenced by deserializeEvent(), getNextItemType(), readEvent_(), readLuminosityBlockAuxiliary_(), readRunAuxiliary_(), and resetAfterEndRun().
|
staticprivate |
Definition at line 108 of file StreamerInputSource.h.
Referenced by deserializeRegistry().
|
private |
Definition at line 105 of file StreamerInputSource.h.
Referenced by deserializeEvent().
|
staticprivate |
Definition at line 109 of file StreamerInputSource.h.
Referenced by deserializeRegistry().
|
private |
Definition at line 104 of file StreamerInputSource.h.
Referenced by getNextItemType(), resetAfterEndRun(), and setEndRun().
|
private |
Definition at line 101 of file StreamerInputSource.h.
Referenced by deserializeEvent().
|
private |
Definition at line 103 of file StreamerInputSource.h.
Referenced by deserializeEvent().