CMS 3D CMS Logo

RecoEventWriterForFU.cc
Go to the documentation of this file.
1 #include "RecoEventWriterForFU.h"
4 
5 namespace evf {
7  }
8 
10  }
11 
13  //Let us turn it into a View
14  InitMsgView view(init_message.startAddress());
15  doOutputHeader(view);
16  }
17 
19  //Write the Init Message to init file and close it
20  if ( stream_writer_preamble_.get() ) {
21  stream_writer_preamble_->write(init_message);
24  }
25  }
26 
28  //Write the Event Message to Streamer file
29  stream_writer_events_->write(msg);
30  }
31 
33  EventMsgView eview(msg.startAddress());
34  doOutputEvent(eview);
35  }
36 
38  }
39 
43  }
44 
46  stream_writer_events_.reset(new StreamerOutputFile(events));
47  }
48 
50  stream_writer_events_.reset();
51  }
52 
53 } //namespace edm
Definition: fillJson.h:27
boost::shared_ptr< StreamerOutputFile > stream_writer_events_
uint8 * startAddress() const
void setInitMessageFile(std::string const &)
void setOutputFile(std::string const &)
void doOutputEvent(EventMsgBuilder const &msg)
Definition: init.py:1
tuple msg
Definition: mps_check.py:285
void doOutputHeader(InitMsgBuilder const &init_message)
boost::shared_ptr< StreamerOutputFile > stream_writer_preamble_
static void fillDescription(edm::ParameterSetDescription &desc)
uint8 * startAddress() const
RecoEventWriterForFU(edm::ParameterSet const &ps)