CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
edm::StreamerFileWriter Class Reference

#include <StreamerFileWriter.h>

Public Member Functions

void doOutputEvent (EventMsgBuilder const &msg)
 
void doOutputEvent (EventMsgView const &msg)
 
void doOutputEventFragment (StreamerFileWriterEventParams const &)
 
void doOutputHeader (InitMsgBuilder const &init_message)
 
void doOutputHeader (InitMsgView const &init_message)
 
void doOutputHeaderFragment (StreamerFileWriterHeaderParams const &)
 
uint32 get_adler32 () const
 
void start ()
 
void stop ()
 
 StreamerFileWriter (edm::ParameterSet const &ps)
 
 StreamerFileWriter (std::string const &fileName)
 
 ~StreamerFileWriter ()
 

Static Public Member Functions

static void fillDescription (ParameterSetDescription &desc)
 

Private Attributes

std::auto_ptr< StreamerOutputFilestream_writer_
 

Detailed Description

Definition at line 44 of file StreamerFileWriter.h.

Constructor & Destructor Documentation

edm::StreamerFileWriter::StreamerFileWriter ( edm::ParameterSet const &  ps)
explicit

Definition at line 5 of file StreamerFileWriter.cc.

5  :
7  ps.getUntrackedParameter<std::string>("fileName")))
8  {
9  }
std::auto_ptr< StreamerOutputFile > stream_writer_
edm::StreamerFileWriter::StreamerFileWriter ( std::string const &  fileName)
explicit

Definition at line 11 of file StreamerFileWriter.cc.

11  :
13  {
14  }
std::auto_ptr< StreamerOutputFile > stream_writer_
edm::StreamerFileWriter::~StreamerFileWriter ( )

Definition at line 16 of file StreamerFileWriter.cc.

16  {
17  }

Member Function Documentation

void edm::StreamerFileWriter::doOutputEvent ( EventMsgBuilder const &  msg)

Definition at line 43 of file StreamerFileWriter.cc.

References EventMsgBuilder::startAddress().

43  {
44  EventMsgView eview(msg.startAddress());
45  doOutputEvent(eview);
46  }
void doOutputEvent(EventMsgBuilder const &msg)
void edm::StreamerFileWriter::doOutputEvent ( EventMsgView const &  msg)

Definition at line 38 of file StreamerFileWriter.cc.

References stream_writer_.

38  {
39  //Write the Event Message to Streamer file
40  stream_writer_->write(msg);
41  }
std::auto_ptr< StreamerOutputFile > stream_writer_
void edm::StreamerFileWriter::doOutputEventFragment ( StreamerFileWriterEventParams const &  evtParams)

Definition at line 48 of file StreamerFileWriter.cc.

References edm::StreamerFileWriterEventParams::dataPtr, edm::StreamerFileWriterEventParams::dataSize, edm::StreamerFileWriterEventParams::fragmentCount, edm::StreamerFileWriterEventParams::fragmentIndex, and stream_writer_.

48  {
49  //Write the Event Message to Streamer file
50  stream_writer_->writeEventFragment(evtParams.fragmentIndex,
51  evtParams.fragmentCount,
52  evtParams.dataPtr,
53  evtParams.dataSize);
54  }
std::auto_ptr< StreamerOutputFile > stream_writer_
void edm::StreamerFileWriter::doOutputHeader ( InitMsgBuilder const &  init_message)

Definition at line 19 of file StreamerFileWriter.cc.

References InitMsgBuilder::startAddress().

19  {
20  //Let us turn it into a View
21  InitMsgView view(init_message.startAddress());
22  doOutputHeader(view);
23  }
void doOutputHeader(InitMsgBuilder const &init_message)
void edm::StreamerFileWriter::doOutputHeader ( InitMsgView const &  init_message)

Definition at line 25 of file StreamerFileWriter.cc.

References stream_writer_.

25  {
26  //Write the Init Message to Streamer file
27  stream_writer_->write(init_message);
28  }
std::auto_ptr< StreamerOutputFile > stream_writer_
void edm::StreamerFileWriter::doOutputHeaderFragment ( StreamerFileWriterHeaderParams const &  hdrParams)

Definition at line 30 of file StreamerFileWriter.cc.

References edm::StreamerFileWriterHeaderParams::dataPtr, edm::StreamerFileWriterHeaderParams::dataSize, edm::StreamerFileWriterHeaderParams::fragmentCount, edm::StreamerFileWriterHeaderParams::fragmentIndex, and stream_writer_.

30  {
31  //Write the Init Message to Streamer file
32  stream_writer_->writeInitFragment(hdrParams.fragmentIndex,
33  hdrParams.fragmentCount,
34  hdrParams.dataPtr,
35  hdrParams.dataSize);
36  }
std::auto_ptr< StreamerOutputFile > stream_writer_
void edm::StreamerFileWriter::fillDescription ( ParameterSetDescription desc)
static

Definition at line 56 of file StreamerFileWriter.cc.

References edm::ParameterSetDescription::addUntracked(), edm::ParameterSetDescription::setComment(), and AlCaHLTBitMon_QueryRunRegistry::string.

56  {
57  desc.setComment("Writes events into a streamer output file.");
58  desc.addUntracked<std::string>("fileName", "teststreamfile.dat")->setComment("Name of output file.");
59  }
uint32 edm::StreamerFileWriter::get_adler32 ( ) const
inline

Definition at line 65 of file StreamerFileWriter.h.

References stream_writer_.

65 { return stream_writer_->adler32();}
std::auto_ptr< StreamerOutputFile > stream_writer_
void edm::StreamerFileWriter::start ( void  )
inline

Definition at line 62 of file StreamerFileWriter.h.

Referenced by progressbar.ProgressBar::__next__().

62 {}
void edm::StreamerFileWriter::stop ( )
inline

Definition at line 63 of file StreamerFileWriter.h.

63 {};

Member Data Documentation

std::auto_ptr<StreamerOutputFile> edm::StreamerFileWriter::stream_writer_
private