CMS 3D CMS Logo

FRDEventFileWriter.h

Go to the documentation of this file.
00001 #ifndef IOPool_Streamer_FRDEventFileWriter_h
00002 #define IOPool_Streamer_FRDEventFileWriter_h 
00003 
00004 // $Id: FRDEventFileWriter.h,v 1.1 2008/08/13 18:35:21 biery Exp $
00005 
00006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00007 #include "IOPool/Streamer/interface/FRDEventMessage.h"
00008 
00009 #include <fstream>
00010 
00011 class FRDEventFileWriter 
00012 {
00013  public:
00014 
00015   explicit FRDEventFileWriter(edm::ParameterSet const& ps);
00016   explicit FRDEventFileWriter(std::string const& fileName);
00017   ~FRDEventFileWriter();
00018 
00019   void doOutputEvent(FRDEventMsgView const& msg);
00020 
00021   void start() {}
00022   void stop() {}
00023  
00024  private:
00025 
00026   void initialize(std::string const& name);
00027 
00028   std::auto_ptr<std::ofstream> ost_;
00029   std::string fileName_;
00030 
00031 };
00032 #endif

Generated on Tue Jun 9 17:39:16 2009 for CMSSW by  doxygen 1.5.4