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  struct Parameters {
29  };
30 
31  static Parameters parameters(ParameterSet const& ps);
32 
33  explicit StreamerOutputModuleCommon(Parameters const& p,
35  std::string const& moduleLabel);
36 
39  std::string const& moduleLabel)
41 
44 
45  std::unique_ptr<InitMsgBuilder> serializeRegistry(SerializeDataBuffer& sbuf,
46  BranchIDLists const& branchLists,
48  std::string const& processName,
49  std::string const& moduleLabel,
50  ParameterSetID const& toplevel,
51  SendJobHeader::ParameterSetMap const* psetMap);
52 
53  std::unique_ptr<EventMsgBuilder> serializeEvent(SerializeDataBuffer& sbuf,
54  EventForOutput const& e,
56  ParameterSetID const& selectorCfg);
57 
59 
60  protected:
61  std::unique_ptr<SerializeDataBuffer> serializerBuffer_;
62 
63  private:
64  void setHltMask(EventForOutput const& e,
66  std::vector<unsigned char>& hltbits) const;
67 
69 
74 
76 
77  // test luminosity sections
80 
81  unsigned int hltsize_;
82  char host_name_[255];
83 
86 
87  }; //end-of-class-def
88 
89 } // namespace edm
90 
91 #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
Definition: Hash.h:43
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
static Parameters parameters(ParameterSet const &ps)
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.
StreamerOutputModuleCommon(Parameters const &p, SelectedProducts const *selections, std::string const &moduleLabel)
StreamerCompressionAlgo