CMS 3D CMS Logo

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

#include <StreamerOutputModuleCommon.h>

Inheritance diagram for edm::streamer::StreamerOutputModuleCommon:
edm::streamer::StreamerOutputModuleBase edm::streamer::StreamerOutputModule< Consumer >

Public Types

using Parameters = StreamerOutputMsgBuilders::Parameters
 

Public Member Functions

std::unique_ptr< EventMsgBuilderserializeEvent (EventForOutput const &e, Handle< TriggerResults > const &triggerResults, ParameterSetID const &selectorCfg)
 
std::unique_ptr< EventMsgBuilderserializeEventMetaData (BranchIDLists const &branchLists, ThinnedAssociationsHelper const &helper)
 
std::unique_ptr< InitMsgBuilderserializeRegistry (std::string const &processName, std::string const &moduleLabel, ParameterSetID const &toplevel, SendJobHeader::ParameterSetMap const *psetMap)
 
 StreamerOutputModuleCommon (Parameters const &p, SelectedProducts const *selections, std::string const &moduleLabel)
 
 StreamerOutputModuleCommon (ParameterSet const &ps, SelectedProducts const *selections, std::string const &moduleLabel)
 
 ~StreamerOutputModuleCommon ()
 

Static Public Member Functions

static void fillDescription (ParameterSetDescription &desc)
 
static Parameters parameters (ParameterSet const &ps)
 

Protected Member Functions

void clearHeaderBuffer ()
 

Private Attributes

SerializeDataBuffer buffer_
 
StreamerOutputMsgBuilders builders_
 
uint32_t eventMetaDataChecksum_ = 0
 

Detailed Description

Definition at line 23 of file StreamerOutputModuleCommon.h.

Member Typedef Documentation

◆ Parameters

Definition at line 25 of file StreamerOutputModuleCommon.h.

Constructor & Destructor Documentation

◆ StreamerOutputModuleCommon() [1/2]

edm::streamer::StreamerOutputModuleCommon::StreamerOutputModuleCommon ( Parameters const &  p,
SelectedProducts const *  selections,
std::string const &  moduleLabel 
)
explicit

◆ StreamerOutputModuleCommon() [2/2]

edm::streamer::StreamerOutputModuleCommon::StreamerOutputModuleCommon ( ParameterSet const &  ps,
SelectedProducts const *  selections,
std::string const &  moduleLabel 
)
inlineexplicit

Definition at line 33 of file StreamerOutputModuleCommon.h.

StreamerOutputModuleCommon(Parameters const &p, SelectedProducts const *selections, std::string const &moduleLabel)
static Parameters parameters(ParameterSet const &ps)

◆ ~StreamerOutputModuleCommon()

edm::streamer::StreamerOutputModuleCommon::~StreamerOutputModuleCommon ( )

Definition at line 35 of file StreamerOutputModuleCommon.cc.

35 {}

Member Function Documentation

◆ clearHeaderBuffer()

void edm::streamer::StreamerOutputModuleCommon::clearHeaderBuffer ( )
inlineprotected

◆ fillDescription()

void edm::streamer::StreamerOutputModuleCommon::fillDescription ( ParameterSetDescription desc)
static

◆ parameters()

StreamerOutputModuleCommon::Parameters edm::streamer::StreamerOutputModuleCommon::parameters ( ParameterSet const &  ps)
static

Definition at line 26 of file StreamerOutputModuleCommon.cc.

References edm::streamer::StreamerOutputMsgBuilders::parameters().

26  {
28  }
static Parameters parameters(ParameterSet const &ps)

◆ serializeEvent()

std::unique_ptr< EventMsgBuilder > edm::streamer::StreamerOutputModuleCommon::serializeEvent ( EventForOutput const &  e,
Handle< TriggerResults > const &  triggerResults,
ParameterSetID const &  selectorCfg 
)

Definition at line 45 of file StreamerOutputModuleCommon.cc.

References buffer_, builders_, MillePedeFileConverter_cfg::e, eventMetaDataChecksum_, edm::streamer::StreamerOutputMsgBuilders::serializeEvent(), and edm::triggerResults().

Referenced by edm::streamer::StreamerOutputModuleBase::write().

46  {
48  }
std::unique_ptr< EventMsgBuilder > serializeEvent(SerializeDataBuffer &sbuf, EventForOutput const &e, Handle< TriggerResults > const &triggerResults, ParameterSetID const &selectorCfg, uint32_t eventMetaDataChecksum) const
static std::string const triggerResults("TriggerResults")

◆ serializeEventMetaData()

std::unique_ptr< EventMsgBuilder > edm::streamer::StreamerOutputModuleCommon::serializeEventMetaData ( BranchIDLists const &  branchLists,
ThinnedAssociationsHelper const &  helper 
)

Definition at line 50 of file StreamerOutputModuleCommon.cc.

References buffer_, builders_, eventMetaDataChecksum_, eostools::move(), runTheMatrix::ret, and edm::streamer::StreamerOutputMsgBuilders::serializeEventMetaData().

Referenced by edm::streamer::StreamerOutputModuleBase::write().

51  {
52  auto ret = builders_.serializeEventMetaData(buffer_, branchLists, helper);
53  eventMetaDataChecksum_ = ret.second;
54  return std::move(ret.first);
55  }
Definition: helper.py:1
ret
prodAgent to be discontinued
def move(src, dest)
Definition: eostools.py:511
std::pair< std::unique_ptr< EventMsgBuilder >, uint32_t > serializeEventMetaData(SerializeDataBuffer &sbuf, BranchIDLists const &branchLists, ThinnedAssociationsHelper const &helper) const

◆ serializeRegistry()

std::unique_ptr< InitMsgBuilder > edm::streamer::StreamerOutputModuleCommon::serializeRegistry ( std::string const &  processName,
std::string const &  moduleLabel,
ParameterSetID const &  toplevel,
SendJobHeader::ParameterSetMap const *  psetMap 
)

Definition at line 37 of file StreamerOutputModuleCommon.cc.

References buffer_, builders_, HerwigMaxPtPartonFilter_cfi::moduleLabel, SimL1EmulatorRepack_CalouGT_cff::processName, and edm::streamer::StreamerOutputMsgBuilders::serializeRegistry().

Referenced by edm::streamer::StreamerOutputModuleBase::beginRun().

41  {
42  return builders_.serializeRegistry(buffer_, processName, moduleLabel, toplevel, psetMap);
43  }
std::unique_ptr< InitMsgBuilder > serializeRegistry(SerializeDataBuffer &sbuf, std::string const &processName, std::string const &moduleLabel, ParameterSetID const &toplevel, SendJobHeader::ParameterSetMap const *psetMap) const

Member Data Documentation

◆ buffer_

SerializeDataBuffer edm::streamer::StreamerOutputModuleCommon::buffer_
private

◆ builders_

StreamerOutputMsgBuilders edm::streamer::StreamerOutputModuleCommon::builders_
private

◆ eventMetaDataChecksum_

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

Definition at line 60 of file StreamerOutputModuleCommon.h.

Referenced by serializeEvent(), and serializeEventMetaData().