CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
evf::RecoEventWriterForFU Class Reference

#include <RecoEventWriterForFU.h>

Public Member Functions

void closeOutputFile ()
 
void doOutputEvent (EventMsgBuilder const &msg)
 
void doOutputEvent (EventMsgView const &msg)
 
void doOutputHeader (InitMsgBuilder const &init_message)
 
void doOutputHeader (InitMsgView const &init_message)
 
uint32 get_adler32 () const
 
uint32 get_adler32_ini () const
 
 RecoEventWriterForFU (edm::ParameterSet const &ps)
 
void setInitMessageFile (std::string const &)
 
void setOutputFile (std::string const &)
 
void start ()
 
void stop ()
 
 ~RecoEventWriterForFU ()
 

Static Public Member Functions

static void fillDescription (edm::ParameterSetDescription &desc)
 

Private Attributes

uint32 preamble_adler32_ = 1
 
std::shared_ptr< StreamerOutputFilestream_writer_events_
 
std::shared_ptr< StreamerOutputFilestream_writer_preamble_
 

Detailed Description

Definition at line 20 of file RecoEventWriterForFU.h.

Constructor & Destructor Documentation

evf::RecoEventWriterForFU::RecoEventWriterForFU ( edm::ParameterSet const &  ps)
explicit

Definition at line 6 of file RecoEventWriterForFU.cc.

6 {}
evf::RecoEventWriterForFU::~RecoEventWriterForFU ( )

Definition at line 8 of file RecoEventWriterForFU.cc.

8 {}

Member Function Documentation

void evf::RecoEventWriterForFU::closeOutputFile ( )

Definition at line 46 of file RecoEventWriterForFU.cc.

References stream_writer_events_.

46 { stream_writer_events_.reset(); }
std::shared_ptr< StreamerOutputFile > stream_writer_events_
void evf::RecoEventWriterForFU::doOutputEvent ( EventMsgBuilder const &  msg)

Definition at line 30 of file RecoEventWriterForFU.cc.

References EventMsgBuilder::startAddress().

30  {
31  EventMsgView eview(msg.startAddress());
32  doOutputEvent(eview);
33  }
void doOutputEvent(EventMsgBuilder const &msg)
tuple msg
Definition: mps_check.py:285
void evf::RecoEventWriterForFU::doOutputEvent ( EventMsgView const &  msg)

Definition at line 25 of file RecoEventWriterForFU.cc.

References stream_writer_events_.

25  {
26  //Write the Event Message to Streamer file
27  stream_writer_events_->write(msg);
28  }
std::shared_ptr< StreamerOutputFile > stream_writer_events_
tuple msg
Definition: mps_check.py:285
void evf::RecoEventWriterForFU::doOutputHeader ( InitMsgBuilder const &  init_message)

Definition at line 10 of file RecoEventWriterForFU.cc.

References InitMsgBuilder::startAddress().

10  {
11  //Let us turn it into a View
12  InitMsgView view(init_message.startAddress());
13  doOutputHeader(view);
14  }
void doOutputHeader(InitMsgBuilder const &init_message)
void evf::RecoEventWriterForFU::doOutputHeader ( InitMsgView const &  init_message)

Definition at line 16 of file RecoEventWriterForFU.cc.

References preamble_adler32_, and stream_writer_preamble_.

16  {
17  //Write the Init Message to init file and close it
18  if (stream_writer_preamble_.get()) {
19  stream_writer_preamble_->write(init_message);
22  }
23  }
std::shared_ptr< StreamerOutputFile > stream_writer_preamble_
void evf::RecoEventWriterForFU::fillDescription ( edm::ParameterSetDescription desc)
static

Definition at line 35 of file RecoEventWriterForFU.cc.

35 {}
uint32 evf::RecoEventWriterForFU::get_adler32 ( ) const
inline

Definition at line 41 of file RecoEventWriterForFU.h.

References stream_writer_events_.

41 { return stream_writer_events_->adler32(); }
std::shared_ptr< StreamerOutputFile > stream_writer_events_
uint32 evf::RecoEventWriterForFU::get_adler32_ini ( ) const
inline

Definition at line 40 of file RecoEventWriterForFU.h.

References preamble_adler32_.

void evf::RecoEventWriterForFU::setInitMessageFile ( std::string const &  init)

Definition at line 37 of file RecoEventWriterForFU.cc.

References preamble_adler32_, and stream_writer_preamble_.

37  {
40  }
std::shared_ptr< StreamerOutputFile > stream_writer_preamble_
Definition: init.py:1
void evf::RecoEventWriterForFU::setOutputFile ( std::string const &  events)

Definition at line 42 of file RecoEventWriterForFU.cc.

References stream_writer_events_.

42  {
44  }
std::shared_ptr< StreamerOutputFile > stream_writer_events_
void evf::RecoEventWriterForFU::start ( )
inline
void evf::RecoEventWriterForFU::stop ( )
inline

Definition at line 38 of file RecoEventWriterForFU.h.

38 {}

Member Data Documentation

uint32 evf::RecoEventWriterForFU::preamble_adler32_ = 1
private

Definition at line 46 of file RecoEventWriterForFU.h.

Referenced by doOutputHeader(), get_adler32_ini(), and setInitMessageFile().

std::shared_ptr<StreamerOutputFile> evf::RecoEventWriterForFU::stream_writer_events_
private

Definition at line 45 of file RecoEventWriterForFU.h.

Referenced by closeOutputFile(), doOutputEvent(), get_adler32(), and setOutputFile().

std::shared_ptr<StreamerOutputFile> evf::RecoEventWriterForFU::stream_writer_preamble_
private

Definition at line 44 of file RecoEventWriterForFU.h.

Referenced by doOutputHeader(), and setInitMessageFile().