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 
8 #include <memory>
9 #include <vector>
10 
11 class InitMsgBuilder;
12 class EventMsgBuilder;
13 namespace edm {
16  public:
17  explicit StreamerOutputModuleBase(ParameterSet const& ps);
18  virtual ~StreamerOutputModuleBase();
19  static void fillDescription(ParameterSetDescription & desc);
20 
21  private:
22  virtual void beginRun(RunPrincipal const&);
23  virtual void endRun(RunPrincipal const&);
24  virtual void beginJob();
25  virtual void endJob();
26  virtual void writeRun(RunPrincipal const&);
28  virtual void write(EventPrincipal const& e);
29 
30  virtual void start() const = 0;
31  virtual void stop() const = 0;
32  virtual void doOutputHeader(InitMsgBuilder const& init_message) const = 0;
33  virtual void doOutputEvent(EventMsgBuilder const& msg) const = 0;
34 
35  std::auto_ptr<InitMsgBuilder> serializeRegistry();
36  std::auto_ptr<EventMsgBuilder> serializeEvent(EventPrincipal const& e);
37  void setHltMask(EventPrincipal const& e);
38  void setLumiSection();
39 
40  private:
42 
46 
47  // test luminosity sections
50 
52 
53  //Event variables, made class memebers to avoid re instatiation for each event.
54  unsigned int hltsize_;
56  std::vector<bool> l1bit_;
57  std::vector<unsigned char> hltbits_;
59  char host_name_[255];
60 
63  }; //end-of-class-def
64 } // end of namespace-edm
65 
66 #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 &)