CMS 3D CMS Logo

StreamerOutputModuleCommon.cc
Go to the documentation of this file.
2 
16 
17 #include <iostream>
18 #include <memory>
19 #include <string>
20 #include <sys/time.h>
21 #include <unistd.h>
22 #include <vector>
23 #include <zlib.h>
24 
25 namespace edm::streamer {
28  }
29 
32  std::string const& moduleLabel)
33  : builders_(p, selections, moduleLabel) {}
34 
36 
37  std::unique_ptr<InitMsgBuilder> StreamerOutputModuleCommon::serializeRegistry(
38  std::string const& processName,
39  std::string const& moduleLabel,
40  ParameterSetID const& toplevel,
41  SendJobHeader::ParameterSetMap const* psetMap) {
42  return builders_.serializeRegistry(buffer_, processName, moduleLabel, toplevel, psetMap);
43  }
44 
45  std::unique_ptr<EventMsgBuilder> StreamerOutputModuleCommon::serializeEvent(
46  EventForOutput const& e, Handle<TriggerResults> const& triggerResults, ParameterSetID const& selectorCfg) {
48  }
49 
50  std::unique_ptr<EventMsgBuilder> StreamerOutputModuleCommon::serializeEventMetaData(
51  BranchIDLists const& branchLists, ThinnedAssociationsHelper const& helper) {
52  auto ret = builders_.serializeEventMetaData(buffer_, branchLists, helper);
53  eventMetaDataChecksum_ = ret.second;
54  return std::move(ret.first);
55  }
56 
59  }
60 
61 } // namespace edm::streamer
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
Definition: helper.py:1
StreamerOutputModuleCommon(Parameters const &p, SelectedProducts const *selections, std::string const &moduleLabel)
ret
prodAgent to be discontinued
std::map< ParameterSetID, ParameterSetBlob > ParameterSetMap
std::vector< std::pair< BranchDescription const *, EDGetToken > > SelectedProducts
static void fillDescription(ParameterSetDescription &desc)
static Parameters parameters(ParameterSet const &ps)
std::unique_ptr< EventMsgBuilder > serializeEvent(SerializeDataBuffer &sbuf, EventForOutput const &e, Handle< TriggerResults > const &triggerResults, ParameterSetID const &selectorCfg, uint32_t eventMetaDataChecksum) const
std::unique_ptr< InitMsgBuilder > serializeRegistry(std::string const &processName, std::string const &moduleLabel, ParameterSetID const &toplevel, SendJobHeader::ParameterSetMap const *psetMap)
std::unique_ptr< EventMsgBuilder > serializeEventMetaData(BranchIDLists const &branchLists, ThinnedAssociationsHelper const &helper)
static void fillDescription(ParameterSetDescription &desc)
static Parameters parameters(ParameterSet const &ps)
static std::string const triggerResults("TriggerResults")
def move(src, dest)
Definition: eostools.py:511
std::unique_ptr< EventMsgBuilder > serializeEvent(EventForOutput const &e, Handle< TriggerResults > const &triggerResults, ParameterSetID const &selectorCfg)
std::pair< std::unique_ptr< EventMsgBuilder >, uint32_t > serializeEventMetaData(SerializeDataBuffer &sbuf, BranchIDLists const &branchLists, ThinnedAssociationsHelper const &helper) const
std::unique_ptr< InitMsgBuilder > serializeRegistry(SerializeDataBuffer &sbuf, std::string const &processName, std::string const &moduleLabel, ParameterSetID const &toplevel, SendJobHeader::ParameterSetMap const *psetMap) const