CMS 3D CMS Logo

List of all members | Classes | Public Member Functions | Static Public Member Functions | Protected Member Functions | Static Protected Member Functions | Private Member Functions | Private Attributes
edm::streamer::StreamerInputSource Class Reference

#include <StreamerInputSource.h>

Inheritance diagram for edm::streamer::StreamerInputSource:
edm::RawInputSource edm::InputSource dqmservices::DQMStreamerReader edm::streamer::StreamerFileReader edm::streamer::StreamerInputModule< Producer >

Classes

class  EventPrincipalHolder
 

Public Member Functions

void deserializeAndMergeWithRegistry (InitMsgView const &initView, bool subsequent=false)
 
void deserializeEvent (EventMsgView const &eventView)
 
void deserializeEventMetaData (EventMsgView const &eventView)
 
std::unique_ptr< SendJobHeaderdeserializeRegistry (InitMsgView const &initView)
 
uint32_t eventMetaDataChecksum (EventMsgView const &eventView) const
 
bool isBufferLZMA (unsigned char const *inputBuffer, unsigned int inputSize)
 
bool isBufferZSTD (unsigned char const *inputBuffer, unsigned int inputSize)
 
uint32_t presentEventMetaDataChecksum () const
 
 StreamerInputSource (ParameterSet const &pset, InputSourceDescription const &desc)
 
void updateEventMetaData ()
 
 ~StreamerInputSource () override
 
- Public Member Functions inherited from edm::RawInputSource
 RawInputSource (ParameterSet const &pset, InputSourceDescription const &desc)
 
 ~RawInputSource () override
 
- Public Member Functions inherited from edm::InputSource
std::shared_ptr< ActivityRegistryactReg () const
 Accessor for Activity Registry. More...
 
std::shared_ptr< BranchIDListHelper const > branchIDListHelper () const
 Accessors for branchIDListHelper. More...
 
std::shared_ptr< BranchIDListHelper > & branchIDListHelper ()
 
void closeFile (FileBlock *, bool cleaningUpAfterException)
 close current file More...
 
void doBeginJob ()
 Called by framework at beginning of job. More...
 
virtual void doBeginLumi (LuminosityBlockPrincipal &lbp, ProcessContext const *)
 Called by framework at beginning of lumi block. More...
 
virtual 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 fillProcessBlockHelper ()
 Fill the ProcessBlockHelper with info for the current file. 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, StreamID streamID)
 issue an event report More...
 
LuminosityBlockNumber_t luminosityBlock () const
 Accessor for current luminosity block number. More...
 
std::shared_ptr< LuminosityBlockAuxiliaryluminosityBlockAuxiliary () 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...
 
ItemTypeInfo nextItemType ()
 Advances the source to the next item. More...
 
bool nextProcessBlock (ProcessBlockPrincipal &)
 Next process block, return false if there is none, sets the processName in the principal. More...
 
InputSourceoperator= (InputSource const &)=delete
 
std::shared_ptr< ProcessBlockHelper const > processBlockHelper () const
 Accessors for processBlockHelper. More...
 
std::shared_ptr< ProcessBlockHelper > & processBlockHelper ()
 
ProcessConfiguration const & processConfiguration () const
 Accessor for Process Configuration. More...
 
std::string const & processGUID () const
 Accessor for global process identifier. More...
 
ProcessHistoryRegistry const & processHistoryRegistry () const
 Accessors for process history registry. More...
 
ProcessHistoryRegistryprocessHistoryRegistry ()
 
ProcessingMode processingMode () const
 RunsLumisAndEvents (default), RunsAndLumis, or Runs. More...
 
std::shared_ptr< ProductRegistry const > productRegistry () const
 Accessors 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::shared_ptr< FileBlockreadFile ()
 Read next file. More...
 
void readLuminosityBlock (LuminosityBlockPrincipal &lumiPrincipal, HistoryAppender &historyAppender)
 Read next luminosity block (new lumi) More...
 
std::shared_ptr< LuminosityBlockAuxiliaryreadLuminosityBlockAuxiliary ()
 Read next luminosity block Auxilary. More...
 
void readProcessBlock (ProcessBlockPrincipal &)
 Read next process block. More...
 
void readRun (RunPrincipal &runPrincipal, HistoryAppender &historyAppender)
 Read next run (new run) More...
 
std::shared_ptr< RunAuxiliaryreadRunAuxiliary ()
 Read next run Auxiliary. More...
 
ProcessHistoryID const & reducedProcessHistoryID () const
 
virtual 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...
 
std::pair< SharedResourcesAcquirer *, std::recursive_mutex * > resourceSharedWithDelayedReader ()
 Returns nullptr if no resource shared between the Source and a DelayedReader. More...
 
ProcessingController::ReverseState reverseState () const
 
void rewind ()
 Begin again at the first event. More...
 
RunNumber_t run () const
 Accessor for current run number. More...
 
std::shared_ptr< RunAuxiliaryrunAuxiliary () 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)
 
void switchTo (std::shared_ptr< ProductRegistry > iOther)
 switch to a different ProductRegistry. More...
 
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper () const
 Accessors for thinnedAssociationsHelper. More...
 
std::shared_ptr< ThinnedAssociationsHelper > & thinnedAssociationsHelper ()
 
Timestamp const & timestamp () const
 Accessor for the current time, as seen by the input source. More...
 
virtual ~InputSource () noexcept(false)
 Destructor. More...
 

Static Public Member Functions

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 unsigned int uncompressBufferLZMA (unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, unsigned int expectedFullSize, bool hasHeader=true)
 
static unsigned int uncompressBufferZSTD (unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, unsigned int expectedFullSize, bool hasHeader=true)
 
- Static Public Member Functions inherited from edm::RawInputSource
static void fillDescription (ParameterSetDescription &description)
 
- 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 ()
 
- Protected Member Functions inherited from edm::RawInputSource
virtual Next checkNext ()=0
 
void makeEvent (EventPrincipal &eventPrincipal, EventAuxiliary const &eventAuxiliary)
 
void setInputFileTransitionsEachEvent ()
 
- Protected Member Functions inherited from edm::InputSource
virtual void beginJob ()
 Begin protected makes it easier to do template programming. More...
 
void decreaseRemainingEventsBy (int iSkipped)
 
bool eventCached () const
 
bool newLumi () const
 
bool newRun () const
 
ProcessHistoryRegistryprocessHistoryRegistryForUpdate ()
 
ProductRegistryproductRegistryUpdate ()
 
void reset () const
 
void resetEventCached ()
 
void resetLuminosityBlockAuxiliary (bool isNewLumi=true) const
 
void resetNewLumi ()
 
void resetNewRun ()
 
void resetRunAuxiliary (bool isNewRun=true) 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)
 
ItemTypeInfo state () const
 

Static Protected Member Functions

static void buildClassCache (SendDescs const &descs)
 
static void declareStreamers (SendDescs const &descs)
 

Private Member Functions

void deserializeEventCommon (EventMsgView const &eventView, bool isMetaData)
 
void read (EventPrincipal &eventPrincipal) override
 
void setRun (RunNumber_t r) override
 

Private Attributes

bool adjustEventToNewProductRegistry_
 
std::vector< unsigned char > dest_
 
uint32_t eventMetaDataChecksum_ = 0
 
edm::propagate_const< std::unique_ptr< EventPrincipalHolder > > eventPrincipalHolder_
 
std::string processName_
 
unsigned int protocolVersion_
 
edm::propagate_const< std::unique_ptr< SendEvent > > sendEvent_
 
std::vector< edm::propagate_const< std::unique_ptr< EventPrincipalHolder > > > streamToEventPrincipalHolders_
 
edm::propagate_const< TClass * > tc_
 
TBufferFile xbuf_
 

Additional Inherited Members

- Public Types inherited from edm::RawInputSource
enum  Next { Next::kEvent, Next::kFile, Next::kStop }
 
- Public Types inherited from edm::InputSource
enum  ItemPosition : char { ItemPosition::Invalid, ItemPosition::LastItemToBeMerged, ItemPosition::NotLastItemToBeMerged }
 
enum  ItemType : char {
  ItemType::IsInvalid, ItemType::IsStop, ItemType::IsFile, ItemType::IsRun,
  ItemType::IsLumi, ItemType::IsEvent, ItemType::IsRepeat, ItemType::IsSynchronize
}
 
enum  ProcessingMode { Runs, RunsAndLumis, RunsLumisAndEvents }
 
- Public Attributes inherited from edm::InputSource
signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> postEventReadFromSourceSignal_
 
signalslot::Signal< void(StreamContext const &, ModuleCallingContext const &)> preEventReadFromSourceSignal_
 

Detailed Description

Definition at line 33 of file StreamerInputSource.h.

Constructor & Destructor Documentation

◆ StreamerInputSource()

edm::streamer::StreamerInputSource::StreamerInputSource ( ParameterSet const &  pset,
InputSourceDescription const &  desc 
)
explicit

Definition at line 45 of file StreamerInputSource.cc.

47  tc_(getTClass(typeid(SendEvent))),
48  dest_(init_size),
49  xbuf_(TBuffer::kRead, init_size),
50  sendEvent_(),
53  processName_(),
54  protocolVersion_(0U) {}
RawInputSource(ParameterSet const &pset, InputSourceDescription const &desc)
edm::propagate_const< TClass * > tc_
edm::propagate_const< std::unique_ptr< SendEvent > > sendEvent_
TClass * getTClass(const std::type_info &ti)
Definition: ClassFiller.cc:63
edm::propagate_const< std::unique_ptr< EventPrincipalHolder > > eventPrincipalHolder_
std::vector< unsigned char > dest_

◆ ~StreamerInputSource()

edm::streamer::StreamerInputSource::~StreamerInputSource ( )
override

Definition at line 56 of file StreamerInputSource.cc.

56 {}

Member Function Documentation

◆ buildClassCache()

void edm::streamer::StreamerInputSource::buildClassCache ( SendDescs const &  descs)
staticprotected

Definition at line 100 of file StreamerInputSource.cc.

References edm::streamer::doBuildRealData(), FDEBUG, B2GTnPMonitor_cfi::item, AlCaHLTBitMon_QueryRunRegistry::string, and edm::wrappedClassName().

Referenced by mergeIntoRegistry().

100  {
101  for (auto const& item : descs) {
102  //pi->init();
103  std::string const real_name = wrappedClassName(item.className());
104  FDEBUG(6) << "BuildReadData: " << real_name << std::endl;
105  doBuildRealData(real_name);
106  }
107  }
void doBuildRealData(const std::string &name)
Definition: ClassFiller.cc:22
#define FDEBUG(lev)
Definition: DebugMacros.h:19
std::string wrappedClassName(std::string const &iFullName)

◆ declareStreamers()

void edm::streamer::StreamerInputSource::declareStreamers ( SendDescs const &  descs)
staticprotected

Definition at line 81 of file StreamerInputSource.cc.

References visDQMUpload::context, FDEBUG, B2GTnPMonitor_cfi::item, edm::streamer::loadCap(), AlCaHLTBitMon_QueryRunRegistry::string, edm::throwMissingDictionariesException(), and edm::wrappedClassName().

Referenced by mergeIntoRegistry().

81  {
82  std::vector<std::string> missingDictionaries;
83  std::vector<std::string> branchNamesForMissing;
84  std::vector<std::string> producedTypes;
85  for (auto const& item : descs) {
86  //pi->init();
87  std::string const real_name = wrappedClassName(item.className());
88  FDEBUG(6) << "declare: " << real_name << std::endl;
89  if (!loadCap(real_name, missingDictionaries)) {
90  branchNamesForMissing.emplace_back(item.branchName());
91  producedTypes.emplace_back(item.className() + std::string(" (read from input)"));
92  }
93  }
94  if (!missingDictionaries.empty()) {
95  std::string context("Calling StreamerInputSource::declareStreamers, checking dictionaries for input types");
96  throwMissingDictionariesException(missingDictionaries, context, producedTypes, branchNamesForMissing, true);
97  }
98  }
void throwMissingDictionariesException(std::vector< std::string > &missingDictionaries, std::string const &context)
#define FDEBUG(lev)
Definition: DebugMacros.h:19
std::string wrappedClassName(std::string const &iFullName)
bool loadCap(const std::string &name, std::vector< std::string > &missingDictionaries)
Definition: ClassFiller.cc:16

◆ deserializeAndMergeWithRegistry()

void edm::streamer::StreamerInputSource::deserializeAndMergeWithRegistry ( InitMsgView const &  initView,
bool  subsequent = false 
)

Deserializes the specified init message into a SendJobHeader object and merges registries.

Definition at line 159 of file StreamerInputSource.cc.

References adjustEventToNewProductRegistry_, deserializeRegistry(), edm::pset::Registry::insertMapped(), edm::pset::Registry::instance(), B2GTnPMonitor_cfi::item, mergeIntoRegistry(), edm::InputSource::productRegistryUpdate(), and muonDTDigis_cfi::pset.

Referenced by edm::streamer::StreamerInputModule< Producer >::setupMetaData(), dqmservices::DQMStreamerReader::setupMetaData(), and edm::streamer::StreamerFileReader::updateMetaData().

159  {
160  std::unique_ptr<SendJobHeader> sd = deserializeRegistry(initView);
161  mergeIntoRegistry(*sd, productRegistryUpdate(), subsequent);
162  if (subsequent) {
164  }
165  SendJobHeader::ParameterSetMap const& psetMap = sd->processParameterSet();
166  pset::Registry& psetRegistry = *pset::Registry::instance();
167  for (auto const& item : psetMap) {
168  ParameterSet pset(item.second.pset());
169  pset.setID(item.first);
170  psetRegistry.insertMapped(pset);
171  }
172  }
ProductRegistry & productRegistryUpdate()
Definition: InputSource.h:359
std::map< ParameterSetID, ParameterSetBlob > ParameterSetMap
std::unique_ptr< SendJobHeader > deserializeRegistry(InitMsgView const &initView)
static void mergeIntoRegistry(SendJobHeader const &header, ProductRegistry &, bool subsequent)
static Registry * instance()
Definition: Registry.cc:12

◆ deserializeEvent()

void edm::streamer::StreamerInputSource::deserializeEvent ( EventMsgView const &  eventView)

Deserializes the specified event message.

Definition at line 189 of file StreamerInputSource.cc.

References deserializeEventCommon().

Referenced by dqmservices::DQMStreamerReader::checkNext(), and edm::streamer::StreamerFileReader::checkNext().

189  {
190  deserializeEventCommon(eventView, false);
191  }
void deserializeEventCommon(EventMsgView const &eventView, bool isMetaData)

◆ deserializeEventCommon()

void edm::streamer::StreamerInputSource::deserializeEventCommon ( EventMsgView const &  eventView,
bool  isMetaData 
)
private

Definition at line 193 of file StreamerInputSource.cc.

References cms::Adler32(), edm::streamer::EventMsgView::adler32_chksum(), edm::streamer::EventMsgView::code(), filterCSVwithJSON::copy, dest_, edm::streamer::Header::EVENT, edm::streamer::EventMsgView::event(), edm::streamer::EventMsgView::eventData(), edm::streamer::EventMsgView::eventLength(), eventMetaDataChecksum_, eventPrincipalHolder_, Exception, FDEBUG, edm::streamer::EventMsgView::hostName(), edm::Timestamp::invalidTimestamp(), isBufferLZMA(), isBufferZSTD(), edm::streamer::EventMsgView::lumi(), edm::InputSource::luminosityBlock(), edm::InputSource::luminosityBlockAuxiliary(), edm::streamer::EventMsgView::origDataSize(), edm::InputSource::processHistoryRegistryForUpdate(), edm::ProcessHistoryRegistry::registerProcessHistory(), edm::InputSource::resetLuminosityBlockAuxiliary(), edm::streamer::EventMsgView::run(), edm::InputSource::run(), edm::InputSource::runAuxiliary(), sendEvent_, edm::InputSource::setEventCached(), edm::InputSource::setLuminosityBlockAuxiliary(), edm::setRefCoreStreamer(), edm::InputSource::setRunAuxiliary(), edm::streamer::EventMsgView::size(), tc_, uncompressBuffer(), uncompressBufferLZMA(), uncompressBufferZSTD(), and xbuf_.

Referenced by deserializeEvent(), and deserializeEventMetaData().

193  {
194  if (eventView.code() != Header::EVENT)
195  throw cms::Exception("StreamTranslation", "Event deserialization error")
196  << "received wrong message type: expected EVENT, got " << eventView.code() << "\n";
197  FDEBUG(9) << "Decode event: " << eventView.event() << " " << eventView.run() << " " << eventView.size() << " "
198  << eventView.adler32_chksum() << " " << eventView.eventLength() << " " << eventView.eventData()
199  << std::endl;
200  // uncompress if we need to
201  // 78 was a dummy value (for no uncompressed) - should be 0 for uncompressed
202  // need to get rid of this when 090 MTCC streamers are gotten rid of
203  unsigned long origsize = eventView.origDataSize();
204  unsigned long dest_size; //(should be >= eventView.origDataSize())
205 
206  uint32_t adler32_chksum = cms::Adler32((char const*)eventView.eventData(), eventView.eventLength());
207  //std::cout << "Adler32 checksum of event = " << adler32_chksum << std::endl;
208  //std::cout << "Adler32 checksum from header = " << eventView.adler32_chksum() << " "
209  // << "host name = " << eventView.hostName() << " len = " << eventView.hostName_len() << std::endl;
210  if (static_cast<uint32>(adler32_chksum) != eventView.adler32_chksum()) {
211  // skip event (based on option?) or throw exception?
212  throw cms::Exception("StreamDeserialization", "Checksum error")
213  << " chksum from event = " << adler32_chksum << " from header = " << eventView.adler32_chksum()
214  << " host name = " << eventView.hostName() << std::endl;
215  }
216  if (origsize != 78 && origsize != 0) {
217  // compressed
218  if (isBufferLZMA((unsigned char const*)eventView.eventData(), eventView.eventLength())) {
219  dest_size = uncompressBufferLZMA(const_cast<unsigned char*>((unsigned char const*)eventView.eventData()),
220  eventView.eventLength(),
221  dest_,
222  origsize);
223  } else if (isBufferZSTD((unsigned char const*)eventView.eventData(), eventView.eventLength())) {
224  dest_size = uncompressBufferZSTD(const_cast<unsigned char*>((unsigned char const*)eventView.eventData()),
225  eventView.eventLength(),
226  dest_,
227  origsize);
228  } else
229  dest_size = uncompressBuffer(const_cast<unsigned char*>((unsigned char const*)eventView.eventData()),
230  eventView.eventLength(),
231  dest_,
232  origsize);
233  } else { // not compressed
234  // we need to copy anyway the buffer as we are using dest in xbuf
235  dest_size = eventView.eventLength();
236  dest_.resize(dest_size);
237  unsigned char* pos = (unsigned char*)&dest_[0];
238  unsigned char const* from = (unsigned char const*)eventView.eventData();
239  std::copy(from, from + dest_size, pos);
240  }
241  //TBuffer xbuf(TBuffer::kRead, dest_size,
242  // (char const*) &dest[0],kFALSE);
243  //TBuffer xbuf(TBuffer::kRead, eventView.eventLength(),
244  // (char const*) eventView.eventData(),kFALSE);
245  xbuf_.Reset();
246  xbuf_.SetBuffer(&dest_[0], dest_size, kFALSE);
247  RootDebug tracer(10, 10);
248 
249  //We do not yet know which EventPrincipal we will use, therefore
250  // we are using a new EventPrincipalHolder as a proxy. We need to
251  // make a new one instead of reusing the same one becuase when running
252  // multi-threaded there will be multiple EventPrincipals being used
253  // simultaneously.
254  eventPrincipalHolder_ = std::make_unique<EventPrincipalHolder>(); // propagate_const<T> has no reset() function
256  {
257  std::shared_ptr<void> refCoreStreamerGuard(nullptr, [](void*) {
259  ;
260  });
261  sendEvent_ = std::unique_ptr<SendEvent>(reinterpret_cast<SendEvent*>(xbuf_.ReadObjectAny(tc_)));
262  }
263 
264  if (sendEvent_.get() == nullptr) {
265  throw cms::Exception("StreamTranslation", "Event deserialization error")
266  << "got a null event from input stream\n";
267  }
268 
269  if (isMetaData) {
270  eventMetaDataChecksum_ = adler32_chksum;
271  return;
272  }
273 
274  if (sendEvent_->metaDataChecksum() != eventMetaDataChecksum_) {
275  throw cms::Exception("StreamTranslation") << " meta data checksum from event " << sendEvent_->metaDataChecksum()
276  << " does not match last read meta data " << eventMetaDataChecksum_;
277  }
278 
280 
281  FDEBUG(5) << "Got event: " << sendEvent_->aux().id() << " " << sendEvent_->products().size() << std::endl;
282  if (runAuxiliary().get() == nullptr || runAuxiliary()->run() != sendEvent_->aux().run() ||
283  runAuxiliary()->processHistoryID() != sendEvent_->processHistory().id()) {
284  RunAuxiliary* runAuxiliary =
285  new RunAuxiliary(sendEvent_->aux().run(), sendEvent_->aux().time(), Timestamp::invalidTimestamp());
286  runAuxiliary->setProcessHistoryID(sendEvent_->processHistory().id());
289  }
290  if (!luminosityBlockAuxiliary() || luminosityBlockAuxiliary()->luminosityBlock() != eventView.lumi()) {
291  LuminosityBlockAuxiliary* luminosityBlockAuxiliary = new LuminosityBlockAuxiliary(
292  runAuxiliary()->run(), eventView.lumi(), sendEvent_->aux().time(), Timestamp::invalidTimestamp());
293  luminosityBlockAuxiliary->setProcessHistoryID(sendEvent_->processHistory().id());
295  }
296  setEventCached();
297  }
static unsigned int uncompressBufferLZMA(unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, unsigned int expectedFullSize, bool hasHeader=true)
std::shared_ptr< RunAuxiliary > runAuxiliary() const
Called by the framework to merge or insert run in principal cache.
Definition: InputSource.h:261
static Timestamp invalidTimestamp()
Definition: Timestamp.h:75
RunNumber_t run() const
Accessor for current run number.
Definition: InputSource.cc:458
bool registerProcessHistory(ProcessHistory const &processHistory)
bool isBufferZSTD(unsigned char const *inputBuffer, unsigned int inputSize)
void setRefCoreStreamer(bool resetAll=false)
bool isBufferLZMA(unsigned char const *inputBuffer, unsigned int inputSize)
#define FDEBUG(lev)
Definition: DebugMacros.h:19
edm::propagate_const< TClass * > tc_
static unsigned int uncompressBufferZSTD(unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, unsigned int expectedFullSize, bool hasHeader=true)
void setLuminosityBlockAuxiliary(LuminosityBlockAuxiliary *lbp)
Definition: InputSource.h:366
edm::propagate_const< std::unique_ptr< SendEvent > > sendEvent_
void setEventCached()
Called by the framework to merge or ached() const {return eventCached_;}.
Definition: InputSource.h:391
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
void resetLuminosityBlockAuxiliary(bool isNewLumi=true) const
Definition: InputSource.h:374
ProcessHistoryRegistry & processHistoryRegistryForUpdate()
Definition: InputSource.h:360
LuminosityBlockNumber_t luminosityBlock() const
Accessor for current luminosity block number.
Definition: InputSource.cc:463
void setRunAuxiliary(RunAuxiliary *rp)
Definition: InputSource.h:362
std::shared_ptr< LuminosityBlockAuxiliary > luminosityBlockAuxiliary() const
Called by the framework to merge or insert lumi in principal cache.
Definition: InputSource.h:264
edm::propagate_const< std::unique_ptr< EventPrincipalHolder > > eventPrincipalHolder_
static unsigned int uncompressBuffer(unsigned char *inputBuffer, unsigned int inputSize, std::vector< unsigned char > &outputBuffer, unsigned int expectedFullSize)
std::vector< unsigned char > dest_

◆ deserializeEventMetaData()

void edm::streamer::StreamerInputSource::deserializeEventMetaData ( EventMsgView const &  eventView)

◆ deserializeRegistry()

std::unique_ptr< SendJobHeader > edm::streamer::StreamerInputSource::deserializeRegistry ( InitMsgView const &  initView)

Deserializes the specified init message into a SendJobHeader object (which is related to the product registry).

Definition at line 113 of file StreamerInputSource.cc.

References cms::Adler32(), edm::streamer::InitMsgView::adler32_chksum(), edm::streamer::InitMsgView::code(), submitPVResolutionJobs::desc, edm::streamer::InitMsgView::descData(), edm::streamer::InitMsgView::descLength(), Exception, FDEBUG, edm::streamer::getTClass(), edm::streamer::InitMsgView::hostName(), edm::streamer::Header::INIT, edm::streamer::InitMsgView::processName(), processName_, edm::streamer::InitMsgView::protocolVersion(), and protocolVersion_.

Referenced by deserializeAndMergeWithRegistry().

113  {
114  if (initView.code() != Header::INIT)
115  throw cms::Exception("StreamTranslation", "Registry deserialization error")
116  << "received wrong message type: expected INIT, got " << initView.code() << "\n";
117 
118  //Get the process name and store if for Protocol version 4 and above.
119  if (initView.protocolVersion() > 3) {
120  processName_ = initView.processName();
121  protocolVersion_ = initView.protocolVersion();
122 
123  FDEBUG(10) << "StreamerInputSource::deserializeRegistry processName = " << processName_ << std::endl;
124  FDEBUG(10) << "StreamerInputSource::deserializeRegistry protocolVersion_= " << protocolVersion_ << std::endl;
125  }
126 
127  // calculate the adler32 checksum
128  uint32_t adler32_chksum = cms::Adler32((char const*)initView.descData(), initView.descLength());
129  //std::cout << "Adler32 checksum of init message = " << adler32_chksum << std::endl;
130  //std::cout << "Adler32 checksum of init messsage from header = " << initView.adler32_chksum() << " "
131  // << "host name = " << initView.hostName() << " len = " << initView.hostName_len() << std::endl;
132  if ((uint32)adler32_chksum != initView.adler32_chksum()) {
133  // skip event (based on option?) or throw exception?
134  throw cms::Exception("StreamDeserialization", "Checksum error")
135  << " chksum from registry data = " << adler32_chksum << " from header = " << initView.adler32_chksum()
136  << " host name = " << initView.hostName() << std::endl;
137  }
138 
139  TClass* desc = getTClass(typeid(SendJobHeader));
140 
141  TBufferFile xbuf(
142  TBuffer::kRead, initView.descLength(), const_cast<char*>((char const*)initView.descData()), kFALSE);
143  RootDebug tracer(10, 10);
144  std::unique_ptr<SendJobHeader> sd((SendJobHeader*)xbuf.ReadObjectAny(desc));
145 
146  if (sd.get() == nullptr) {
147  throw cms::Exception("StreamTranslation", "Registry deserialization error")
148  << "Could not read the initial product registry list\n";
149  }
150 
151  sd->initializeTransients();
152  return sd;
153  }
#define FDEBUG(lev)
Definition: DebugMacros.h:19
TClass * getTClass(const std::type_info &ti)
Definition: ClassFiller.cc:63
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
unsigned int uint32
Definition: MsgTools.h:14

◆ eventMetaDataChecksum()

uint32_t edm::streamer::StreamerInputSource::eventMetaDataChecksum ( EventMsgView const &  eventView) const

Definition at line 179 of file StreamerInputSource.cc.

References edm::streamer::EventMsgView::adler32_chksum().

Referenced by edm::streamer::StreamerFileReader::checkNext(), and dqmservices::DQMStreamerReader::prepareNextEvent().

179  {
180  return eventView.adler32_chksum();
181  }

◆ fillDescription()

void edm::streamer::StreamerInputSource::fillDescription ( ParameterSetDescription description)
static

◆ isBufferLZMA()

bool edm::streamer::StreamerInputSource::isBufferLZMA ( unsigned char const *  inputBuffer,
unsigned int  inputSize 
)

Detect if buffer starts with "XZ\0" which means it is compressed in LZMA format

Definition at line 398 of file StreamerInputSource.cc.

Referenced by deserializeEventCommon().

398  {
399  if (inputSize >= 4 && !strcmp((const char*)inputBuffer, "XZ"))
400  return true;
401  else
402  return false;
403  }

◆ isBufferZSTD()

bool edm::streamer::StreamerInputSource::isBufferZSTD ( unsigned char const *  inputBuffer,
unsigned int  inputSize 
)

Detect if buffer starts with "Z\0" which means it is compressed in ZStandard format

Definition at line 450 of file StreamerInputSource.cc.

Referenced by deserializeEventCommon().

450  {
451  if (inputSize >= 4 && !strcmp((const char*)inputBuffer, "ZS"))
452  return true;
453  else
454  return false;
455  }

◆ mergeIntoRegistry()

void edm::streamer::StreamerInputSource::mergeIntoRegistry ( SendJobHeader const &  header,
ProductRegistry reg,
bool  subsequent 
)
static

Definition at line 59 of file StreamerInputSource.cc.

References buildClassCache(), declareStreamers(), Exception, FDEBUG, edm::ProductRegistry::frozen(), RecoTauValidation_cfi::header, edm::streamer::loadExtraClasses(), edm::ProductRegistry::merge(), edm::BranchDescription::Permissive, AlCaHLTBitMon_QueryRunRegistry::string, and edm::ProductRegistry::updateFromInput().

Referenced by deserializeAndMergeWithRegistry().

59  {
60  SendDescs const& descs = header.descs();
61 
62  FDEBUG(6) << "mergeIntoRegistry: Product List: " << std::endl;
63 
64  if (subsequent) {
65  ProductRegistry pReg;
66  pReg.updateFromInput(descs);
67  std::string mergeInfo = reg.merge(pReg, std::string(), BranchDescription::Permissive);
68  if (!mergeInfo.empty()) {
69  throw cms::Exception("MismatchedInput", "RootInputFileSequence::previousEvent()") << mergeInfo;
70  }
71  } else {
72  declareStreamers(descs);
73  buildClassCache(descs);
75  if (!reg.frozen()) {
76  reg.updateFromInput(descs);
77  }
78  }
79  }
std::vector< BranchDescription > SendDescs
#define FDEBUG(lev)
Definition: DebugMacros.h:19
static void buildClassCache(SendDescs const &descs)
static void declareStreamers(SendDescs const &descs)
void loadExtraClasses()
Definition: ClassFiller.cc:33

◆ presentEventMetaDataChecksum()

uint32_t edm::streamer::StreamerInputSource::presentEventMetaDataChecksum ( ) const
inline

◆ read()

void edm::streamer::StreamerInputSource::read ( EventPrincipal eventPrincipal)
overrideprivatevirtual

Implements edm::RawInputSource.

Definition at line 299 of file StreamerInputSource.cc.

References adjustEventToNewProductRegistry_, edm::Principal::adjustIndexesAfterProductRegistryAddition(), edm::Principal::adjustToNewProductRegistry(), cms::cuda::assert(), edm::BranchDescription::branchID(), edm::InputSource::branchIDListHelper(), eventPrincipalHolder_, FDEBUG, edm::EventPrincipal::fillEventPrincipal(), edm::ProcessHistoryRegistry::getMapped(), eostools::move(), edm::InputSource::processHistoryRegistry(), edm::InputSource::productRegistry(), edm::EventPrincipal::putOnRead(), sendEvent_, edm::Principal::size(), edm::EventPrincipal::streamID(), streamToEventPrincipalHolders_, and edm::StreamID::value().

Referenced by edmIntegrityCheck.PublishToFileSystem::get().

299  {
301  eventPrincipal.adjustIndexesAfterProductRegistryAddition();
302  bool eventOK = eventPrincipal.adjustToNewProductRegistry(*productRegistry());
303  assert(eventOK);
305  }
306  EventSelectionIDVector ids(sendEvent_->eventSelectionIDs());
307  BranchListIndexes indexes(sendEvent_->branchListIndexes());
308  branchIDListHelper()->fixBranchListIndexes(indexes);
309  auto history = processHistoryRegistry().getMapped(sendEvent_->aux().processHistoryID());
310  eventPrincipal.fillEventPrincipal(sendEvent_->aux(), history, std::move(ids), std::move(indexes));
311 
312  //We now know which eventPrincipal to use and we can reuse the slot in
313  // streamToEventPrincipalHolders to own the memory
314  eventPrincipalHolder_->setEventPrincipal(&eventPrincipal);
315  if (streamToEventPrincipalHolders_.size() < eventPrincipal.streamID().value() + 1) {
316  streamToEventPrincipalHolders_.resize(eventPrincipal.streamID().value() + 1);
317  }
318  streamToEventPrincipalHolders_[eventPrincipal.streamID().value()] = std::move(eventPrincipalHolder_);
319 
320  // no process name list handling
321 
322  SendProds& sps = sendEvent_->products();
323  for (auto& spitem : sps) {
324  FDEBUG(10) << "check prodpair" << std::endl;
325  if (spitem.desc() == nullptr)
326  throw cms::Exception("StreamTranslation", "Empty Provenance");
327  FDEBUG(5) << "Prov:"
328  << " " << spitem.desc()->className() << " " << spitem.desc()->productInstanceName() << " "
329  << spitem.desc()->branchID() << std::endl;
330 
331  BranchDescription const branchDesc(*spitem.desc());
332  // This ProductProvenance constructor inserts into the entry description registry
333  if (spitem.parents()) {
334  std::optional<ProductProvenance> productProvenance{std::in_place, spitem.branchID(), *spitem.parents()};
335  if (spitem.prod() != nullptr) {
336  FDEBUG(10) << "addproduct next " << spitem.branchID() << std::endl;
337  eventPrincipal.putOnRead(branchDesc,
338  std::unique_ptr<WrapperBase>(const_cast<WrapperBase*>(spitem.prod())),
339  std::move(productProvenance));
340  FDEBUG(10) << "addproduct done" << std::endl;
341  } else {
342  FDEBUG(10) << "addproduct empty next " << spitem.branchID() << std::endl;
343  eventPrincipal.putOnRead(branchDesc, std::unique_ptr<WrapperBase>(), std::move(productProvenance));
344  FDEBUG(10) << "addproduct empty done" << std::endl;
345  }
346  } else {
347  std::optional<ProductProvenance> productProvenance;
348  if (spitem.prod() != nullptr) {
349  FDEBUG(10) << "addproduct next " << spitem.branchID() << std::endl;
350  eventPrincipal.putOnRead(
351  branchDesc, std::unique_ptr<WrapperBase>(const_cast<WrapperBase*>(spitem.prod())), productProvenance);
352  FDEBUG(10) << "addproduct done" << std::endl;
353  } else {
354  FDEBUG(10) << "addproduct empty next " << spitem.branchID() << std::endl;
355  eventPrincipal.putOnRead(branchDesc, std::unique_ptr<WrapperBase>(), productProvenance);
356  FDEBUG(10) << "addproduct empty done" << std::endl;
357  }
358  }
359  spitem.clear();
360  }
361 
362  FDEBUG(10) << "Size = " << eventPrincipal.size() << std::endl;
363  }
#define FDEBUG(lev)
Definition: DebugMacros.h:19
assert(be >=bs)
std::vector< EventSelectionID > EventSelectionIDVector
std::vector< BranchListIndex > BranchListIndexes
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Accessors for branchIDListHelper.
Definition: InputSource.h:172
edm::propagate_const< std::unique_ptr< SendEvent > > sendEvent_
std::vector< StreamedProduct > SendProds
ProcessHistoryRegistry const & processHistoryRegistry() const
Accessors for process history registry.
Definition: InputSource.h:168
std::shared_ptr< ProductRegistry const > productRegistry() const
Accessors for product registry.
Definition: InputSource.h:165
bool getMapped(ProcessHistoryID const &key, ProcessHistory &value) const
edm::propagate_const< std::unique_ptr< EventPrincipalHolder > > eventPrincipalHolder_
def move(src, dest)
Definition: eostools.py:511
std::vector< edm::propagate_const< std::unique_ptr< EventPrincipalHolder > > > streamToEventPrincipalHolders_

◆ resetAfterEndRun()

void edm::streamer::StreamerInputSource::resetAfterEndRun ( )
protected

Definition at line 477 of file StreamerInputSource.cc.

References cms::cuda::assert(), edm::InputSource::eventCached(), edm::InputSource::reset(), edm::InputSource::resetLuminosityBlockAuxiliary(), and edm::InputSource::resetRunAuxiliary().

477  {
478  // called from an online streamer source to reset after a stop command
479  // so an enable command will work
482  assert(!eventCached());
483  reset();
484  }
void reset() const
Definition: InputSource.h:378
assert(be >=bs)
void resetRunAuxiliary(bool isNewRun=true) const
Definition: InputSource.h:370
bool eventCached() const
Definition: InputSource.h:389
void resetLuminosityBlockAuxiliary(bool isNewLumi=true) const
Definition: InputSource.h:374

◆ setRun()

void edm::streamer::StreamerInputSource::setRun ( RunNumber_t  r)
overrideprivatevirtual

Reimplemented from edm::InputSource.

Definition at line 486 of file StreamerInputSource.cc.

References Exception, and edm::errors::LogicError.

486  {
487  // Need to define a dummy setRun here or else the InputSource::setRun is called
488  // if we have a source inheriting from this and wants to define a setRun method
489  throw Exception(errors::LogicError) << "StreamerInputSource::setRun()\n"
490  << "Run number cannot be modified for this type of Input Source\n"
491  << "Contact a Storage Manager Developer\n";
492  }

◆ uncompressBuffer()

unsigned int edm::streamer::StreamerInputSource::uncompressBuffer ( unsigned char *  inputBuffer,
unsigned int  inputSize,
std::vector< unsigned char > &  outputBuffer,
unsigned int  expectedFullSize 
)
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 373 of file StreamerInputSource.cc.

References Exception, FDEBUG, and runTheMatrix::ret.

Referenced by deserializeEventCommon().

376  {
377  unsigned long origSize = expectedFullSize;
378  unsigned long uncompressedSize = expectedFullSize * 1.1;
379  FDEBUG(1) << "Uncompress: original size = " << origSize << ", compressed size = " << inputSize << std::endl;
380  outputBuffer.resize(uncompressedSize);
381  int ret = uncompress(&outputBuffer[0], &uncompressedSize, inputBuffer, inputSize); // do not need compression level
382  //std::cout << "unCompress Return value: " << ret << " Okay = " << Z_OK << std::endl;
383  if (ret == Z_OK) {
384  // check the length against original uncompressed length
385  FDEBUG(10) << " original size = " << origSize << " final size = " << uncompressedSize << std::endl;
386  if (origSize != uncompressedSize) {
387  // we throw an error and return without event! null pointer
388  throw cms::Exception("StreamDeserialization", "Uncompression error")
389  << "mismatch event lengths should be" << origSize << " got " << uncompressedSize << "\n";
390  }
391  } else {
392  // we throw an error and return without event! null pointer
393  throw cms::Exception("StreamDeserialization", "Uncompression error") << "Error code = " << ret << "\n ";
394  }
395  return (unsigned int)uncompressedSize;
396  }
ret
prodAgent to be discontinued
#define FDEBUG(lev)
Definition: DebugMacros.h:19

◆ uncompressBufferLZMA()

unsigned int edm::streamer::StreamerInputSource::uncompressBufferLZMA ( unsigned char *  inputBuffer,
unsigned int  inputSize,
std::vector< unsigned char > &  outputBuffer,
unsigned int  expectedFullSize,
bool  hasHeader = true 
)
static

Definition at line 405 of file StreamerInputSource.cc.

References Exception, FDEBUG, createfilelist::int, cms::cuda::stream, and mitigatedMETSequence_cff::U.

Referenced by deserializeEventCommon().

409  {
410  unsigned long origSize = expectedFullSize;
411  unsigned long uncompressedSize = expectedFullSize * 1.1;
412  FDEBUG(1) << "Uncompress: original size = " << origSize << ", compressed size = " << inputSize << std::endl;
413  outputBuffer.resize(uncompressedSize);
414 
415  lzma_stream stream = LZMA_STREAM_INIT;
416  lzma_ret returnStatus;
417 
418  returnStatus = lzma_stream_decoder(&stream, UINT64_MAX, 0U);
419  if (returnStatus != LZMA_OK) {
420  throw cms::Exception("StreamDeserializationLZM", "LZMA stream decoder error")
421  << "Error code = " << returnStatus << "\n ";
422  }
423 
424  size_t hdrSize = hasHeader ? 4 : 0;
425  stream.next_in = (const uint8_t*)(inputBuffer + hdrSize);
426  stream.avail_in = (size_t)(inputSize - hdrSize);
427  stream.next_out = (uint8_t*)&outputBuffer[0];
428  stream.avail_out = (size_t)uncompressedSize;
429 
430  returnStatus = lzma_code(&stream, LZMA_FINISH);
431  if (returnStatus != LZMA_STREAM_END) {
432  lzma_end(&stream);
433  throw cms::Exception("StreamDeserializationLZM", "LZMA uncompression error")
434  << "Error code = " << returnStatus << "\n ";
435  }
436  lzma_end(&stream);
437 
438  uncompressedSize = (unsigned int)stream.total_out;
439 
440  FDEBUG(10) << " original size = " << origSize << " final size = " << uncompressedSize << std::endl;
441  if (origSize != uncompressedSize) {
442  // we throw an error and return without event! null pointer
443  throw cms::Exception("StreamDeserialization", "LZMA uncompression error")
444  << "mismatch event lengths should be" << origSize << " got " << uncompressedSize << "\n";
445  }
446 
447  return uncompressedSize;
448  }
uint32_t T const *__restrict__ uint32_t const *__restrict__ int32_t int Histo::index_type cudaStream_t stream
#define FDEBUG(lev)
Definition: DebugMacros.h:19

◆ uncompressBufferZSTD()

unsigned int edm::streamer::StreamerInputSource::uncompressBufferZSTD ( unsigned char *  inputBuffer,
unsigned int  inputSize,
std::vector< unsigned char > &  outputBuffer,
unsigned int  expectedFullSize,
bool  hasHeader = true 
)
static

Definition at line 457 of file StreamerInputSource.cc.

References Exception, FDEBUG, and runTheMatrix::ret.

Referenced by deserializeEventCommon().

461  {
462  unsigned long uncompressedSize = expectedFullSize * 1.1;
463  FDEBUG(1) << "Uncompress: original size = " << expectedFullSize << ", compressed size = " << inputSize << std::endl;
464  outputBuffer.resize(uncompressedSize);
465 
466  size_t hdrSize = hasHeader ? 4 : 0;
467  size_t ret = ZSTD_decompress(
468  (void*)&(outputBuffer[0]), uncompressedSize, (const void*)(inputBuffer + hdrSize), inputSize - hdrSize);
469 
470  if (ZSTD_isError(ret)) {
471  throw cms::Exception("StreamDeserializationZSTD", "ZSTD uncompression error")
472  << "Error core " << ret << ", message:" << ZSTD_getErrorName(ret);
473  }
474  return (unsigned int)ret;
475  }
ret
prodAgent to be discontinued
#define FDEBUG(lev)
Definition: DebugMacros.h:19

◆ updateEventMetaData()

void edm::streamer::StreamerInputSource::updateEventMetaData ( )

Definition at line 174 of file StreamerInputSource.cc.

References edm::InputSource::branchIDListHelper(), sendEvent_, and edm::InputSource::thinnedAssociationsHelper().

Referenced by dqmservices::DQMStreamerReader::genuineReadFile(), edm::streamer::StreamerFileReader::genuineReadFile(), edm::streamer::StreamerInputModule< Producer >::genuineReadFile(), edm::streamer::StreamerInputModule< Producer >::setupMetaData(), dqmservices::DQMStreamerReader::setupMetaData(), and edm::streamer::StreamerFileReader::updateMetaData().

174  {
175  branchIDListHelper()->updateFromInput(sendEvent_->branchIDLists());
176  thinnedAssociationsHelper()->updateFromPrimaryInput(sendEvent_->thinnedAssociationsHelper());
177  }
std::shared_ptr< ThinnedAssociationsHelper const > thinnedAssociationsHelper() const
Accessors for thinnedAssociationsHelper.
Definition: InputSource.h:184
std::shared_ptr< BranchIDListHelper const > branchIDListHelper() const
Accessors for branchIDListHelper.
Definition: InputSource.h:172
edm::propagate_const< std::unique_ptr< SendEvent > > sendEvent_

Member Data Documentation

◆ adjustEventToNewProductRegistry_

bool edm::streamer::StreamerInputSource::adjustEventToNewProductRegistry_
private

Definition at line 131 of file StreamerInputSource.h.

Referenced by deserializeAndMergeWithRegistry(), and read().

◆ dest_

std::vector<unsigned char> edm::streamer::StreamerInputSource::dest_
private

Definition at line 126 of file StreamerInputSource.h.

Referenced by deserializeEventCommon().

◆ eventMetaDataChecksum_

uint32_t edm::streamer::StreamerInputSource::eventMetaDataChecksum_ = 0
private

Definition at line 135 of file StreamerInputSource.h.

Referenced by deserializeEventCommon(), and presentEventMetaDataChecksum().

◆ eventPrincipalHolder_

edm::propagate_const<std::unique_ptr<EventPrincipalHolder> > edm::streamer::StreamerInputSource::eventPrincipalHolder_
private

Definition at line 129 of file StreamerInputSource.h.

Referenced by deserializeEventCommon(), and read().

◆ processName_

std::string edm::streamer::StreamerInputSource::processName_
private

Definition at line 133 of file StreamerInputSource.h.

Referenced by deserializeRegistry().

◆ protocolVersion_

unsigned int edm::streamer::StreamerInputSource::protocolVersion_
private

Definition at line 134 of file StreamerInputSource.h.

Referenced by deserializeRegistry().

◆ sendEvent_

edm::propagate_const<std::unique_ptr<SendEvent> > edm::streamer::StreamerInputSource::sendEvent_
private

Definition at line 128 of file StreamerInputSource.h.

Referenced by deserializeEventCommon(), read(), and updateEventMetaData().

◆ streamToEventPrincipalHolders_

std::vector<edm::propagate_const<std::unique_ptr<EventPrincipalHolder> > > edm::streamer::StreamerInputSource::streamToEventPrincipalHolders_
private

Definition at line 130 of file StreamerInputSource.h.

Referenced by read().

◆ tc_

edm::propagate_const<TClass*> edm::streamer::StreamerInputSource::tc_
private

Definition at line 125 of file StreamerInputSource.h.

Referenced by deserializeEventCommon().

◆ xbuf_

TBufferFile edm::streamer::StreamerInputSource::xbuf_
private

Definition at line 127 of file StreamerInputSource.h.

Referenced by deserializeEventCommon().