CMS 3D CMS Logo

StreamerOutputModuleCommon.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_StreamerOutputModuleCommon_h
2 #define IOPool_Streamer_StreamerOutputModuleCommon_h
3 
9 #include <memory>
10 #include <vector>
11 
12 class InitMsgBuilder;
13 class EventMsgBuilder;
14 namespace edm {
15  class ParameterSet;
17  class EventForOutput;
18  class ThinnedAssociationsHelper;
19  class TriggerResults;
20 
22  public:
23  explicit StreamerOutputModuleCommon(ParameterSet const& ps,
25  std::string const& moduleLabel);
28 
29  std::unique_ptr<InitMsgBuilder> serializeRegistry(SerializeDataBuffer& sbuf,
30  BranchIDLists const& branchLists,
32  std::string const& processName,
33  std::string const& moduleLabel,
34  ParameterSetID const& toplevel,
35  SendJobHeader::ParameterSetMap const* psetMap);
36 
37  std::unique_ptr<EventMsgBuilder> serializeEvent(SerializeDataBuffer& sbuf,
38  EventForOutput const& e,
40  ParameterSetID const& selectorCfg);
41 
43 
44  protected:
45  std::unique_ptr<SerializeDataBuffer> serializerBuffer_;
46 
47  private:
48  void setHltMask(EventForOutput const& e,
50  std::vector<unsigned char>& hltbits) const;
51 
53 
58 
60 
61  // test luminosity sections
64 
65  unsigned int hltsize_;
66  char host_name_[255];
67 
70 
71  }; //end-of-class-def
72 
73 } // namespace edm
74 
75 #endif
std::unique_ptr< EventMsgBuilder > serializeEvent(SerializeDataBuffer &sbuf, EventForOutput const &e, Handle< TriggerResults > const &triggerResults, ParameterSetID const &selectorCfg)
std::vector< BranchIDList > BranchIDLists
Definition: BranchIDList.h:19
Definition: helper.py:1
EventSelector::Strings Strings
std::map< ParameterSetID, ParameterSetBlob > ParameterSetMap
void setHltMask(EventForOutput const &e, Handle< TriggerResults > const &triggerResults, std::vector< unsigned char > &hltbits) const
std::vector< std::pair< BranchDescription const *, EDGetToken > > SelectedProducts
std::unique_ptr< SerializeDataBuffer > serializerBuffer_
StreamerOutputModuleCommon(ParameterSet const &ps, SelectedProducts const *selections, std::string const &moduleLabel)
static void fillDescription(ParameterSetDescription &desc)
unsigned int uint32
Definition: MsgTools.h:13
std::unique_ptr< InitMsgBuilder > serializeRegistry(SerializeDataBuffer &sbuf, BranchIDLists const &branchLists, ThinnedAssociationsHelper const &helper, std::string const &processName, std::string const &moduleLabel, ParameterSetID const &toplevel, SendJobHeader::ParameterSetMap const *psetMap)
static std::string const triggerResults("TriggerResults")
HLT enums.
StreamerCompressionAlgo