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(BranchIDLists const& branchLists,
28  std::string const& processName,
29  std::string const& moduleLabel,
30  ParameterSetID const& toplevel);
31 
32  std::unique_ptr<EventMsgBuilder> serializeEvent(EventForOutput const& e,
34  ParameterSetID const& selectorCfg);
35 
38  serializeDataBuffer_.header_buf_.shrink_to_fit();
39  }
40 
41  private:
42  void setHltMask(EventForOutput const& e,
43  Handle<TriggerResults> const& triggerResults,
44  std::vector<unsigned char>& hltbits) const;
45 
47 
51 
52  // test luminosity sections
55 
57 
58  unsigned int hltsize_;
60  char host_name_[255];
61 
64 
65  }; //end-of-class-def
66 
67 } // namespace edm
68 
69 #endif
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
static void fillDescription(ParameterSetDescription &desc)
unsigned int uint32
Definition: MsgTools.h:13
std::unique_ptr< InitMsgBuilder > serializeRegistry(BranchIDLists const &branchLists, ThinnedAssociationsHelper const &helper, std::string const &processName, std::string const &moduleLabel, ParameterSetID const &toplevel)
void setHltMask(EventForOutput const &e, Handle< TriggerResults > const &triggerResults, std::vector< unsigned char > &hltbits) const
static std::string const triggerResults("TriggerResults")
HLT enums.
std::unique_ptr< EventMsgBuilder > serializeEvent(EventForOutput const &e, Handle< TriggerResults > const &triggerResults, ParameterSetID const &selectorCfg)