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 
8 #include <memory>
9 #include <vector>
10 
11 class InitMsgBuilder;
12 class EventMsgBuilder;
13 namespace edm {
14  class ParameterSet;
16  class EventForOutput;
17  class ThinnedAssociationsHelper;
18  class TriggerResults;
19 
21  public:
24  static void fillDescription(ParameterSetDescription& desc);
25 
26  std::unique_ptr<InitMsgBuilder> serializeRegistry(SerializeDataBuffer& sbuf,
27  BranchIDLists const& branchLists,
29  std::string const& processName,
30  std::string const& moduleLabel,
31  ParameterSetID const& toplevel);
32 
33  std::unique_ptr<EventMsgBuilder> serializeEvent(SerializeDataBuffer& sbuf,
34  EventForOutput const& e,
36  ParameterSetID const& selectorCfg);
37 
39 
40  protected:
41  std::unique_ptr<SerializeDataBuffer> serializerBuffer_;
42 
43  private:
44  void setHltMask(EventForOutput const& e,
45  Handle<TriggerResults> const& triggerResults,
46  std::vector<unsigned char>& hltbits) const;
47 
49 
54 
56 
57  // test luminosity sections
60 
61  unsigned int hltsize_;
62  char host_name_[255];
63 
66 
67  }; //end-of-class-def
68 
69 } // namespace edm
70 
71 #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
StreamerOutputModuleCommon(ParameterSet const &ps, SelectedProducts const *selections)
std::vector< std::pair< BranchDescription const *, EDGetToken > > SelectedProducts
std::unique_ptr< SerializeDataBuffer > serializerBuffer_
static void fillDescription(ParameterSetDescription &desc)
unsigned int uint32
Definition: MsgTools.h:13
void setHltMask(EventForOutput const &e, Handle< TriggerResults > const &triggerResults, std::vector< unsigned char > &hltbits) const
static std::string const triggerResults("TriggerResults")
std::unique_ptr< InitMsgBuilder > serializeRegistry(SerializeDataBuffer &sbuf, BranchIDLists const &branchLists, ThinnedAssociationsHelper const &helper, std::string const &processName, std::string const &moduleLabel, ParameterSetID const &toplevel)
HLT enums.
StreamerCompressionAlgo