CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
StreamerOutputModuleBase.h
Go to the documentation of this file.
1 #ifndef IOPool_Streamer_StreamerOutputModuleBase_h
2 #define IOPool_Streamer_StreamerOutputModuleBase_h
3 
7 #include <memory>
8 #include <vector>
9 
10 class InitMsgBuilder;
11 class EventMsgBuilder;
12 namespace edm {
15  public:
16  explicit StreamerOutputModuleBase(ParameterSet const& ps);
17  virtual ~StreamerOutputModuleBase();
18  static void fillDescription(ParameterSetDescription & desc);
19 
20  private:
21  virtual void beginRun(RunPrincipal const&);
22  virtual void endRun(RunPrincipal const&);
23  virtual void beginJob();
24  virtual void endJob();
25  virtual void writeRun(RunPrincipal const&);
27  virtual void write(EventPrincipal const& e);
28 
29  virtual void start() const = 0;
30  virtual void stop() const = 0;
31  virtual void doOutputHeader(InitMsgBuilder const& init_message) const = 0;
32  virtual void doOutputEvent(EventMsgBuilder const& msg) const = 0;
33 
34  std::auto_ptr<InitMsgBuilder> serializeRegistry();
35  std::auto_ptr<EventMsgBuilder> serializeEvent(EventPrincipal const& e);
36  void setHltMask(EventPrincipal const& e);
37  void setLumiSection();
38 
39  private:
41 
45 
46  // test luminosity sections
49 
51 
52  //Event variables, made class memebers to avoid re instatiation for each event.
53  unsigned int hltsize_;
55  std::vector<bool> l1bit_;
56  std::vector<unsigned char> hltbits_;
58  char host_name_[255];
59 
62  }; //end-of-class-def
63 } // end of namespace-edm
64 
65 #endif
static void fillDescription(ParameterSetDescription &desc)
virtual void doOutputHeader(InitMsgBuilder const &init_message) const =0
void setHltMask(EventPrincipal const &e)
std::auto_ptr< EventMsgBuilder > serializeEvent(EventPrincipal const &e)
std::vector< std::string > Strings
Definition: MsgTools.h:18
std::auto_ptr< InitMsgBuilder > serializeRegistry()
virtual void doOutputEvent(EventMsgBuilder const &msg) const =0
virtual void stop() const =0
virtual void endRun(RunPrincipal const &)
virtual void beginRun(RunPrincipal const &)
virtual void writeRun(RunPrincipal const &)
virtual void start() const =0
unsigned int uint32
Definition: MsgTools.h:13
StreamerOutputModuleBase(ParameterSet const &ps)
virtual void write(EventPrincipal const &e)
std::vector< unsigned char > hltbits_
virtual void writeLuminosityBlock(LuminosityBlockPrincipal const &)