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
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
 
boost::shared_ptr
< StreamerOutputFile
stream_writer_events_
 
boost::shared_ptr
< StreamerOutputFile
stream_writer_preamble_
 

Detailed Description

Definition at line 23 of file RecoEventWriterForFU.h.

Constructor & Destructor Documentation

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

Definition at line 6 of file RecoEventWriterForFU.cc.

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

Definition at line 9 of file RecoEventWriterForFU.cc.

9  {
10  }

Member Function Documentation

void evf::RecoEventWriterForFU::closeOutputFile ( )

Definition at line 49 of file RecoEventWriterForFU.cc.

References stream_writer_events_.

49  {
50  stream_writer_events_.reset();
51  }
boost::shared_ptr< StreamerOutputFile > stream_writer_events_
void evf::RecoEventWriterForFU::doOutputEvent ( EventMsgBuilder const &  msg)

Definition at line 32 of file RecoEventWriterForFU.cc.

References EventMsgBuilder::startAddress().

32  {
33  EventMsgView eview(msg.startAddress());
34  doOutputEvent(eview);
35  }
void doOutputEvent(EventMsgBuilder const &msg)
void evf::RecoEventWriterForFU::doOutputEvent ( EventMsgView const &  msg)

Definition at line 27 of file RecoEventWriterForFU.cc.

References stream_writer_events_.

27  {
28  //Write the Event Message to Streamer file
29  stream_writer_events_->write(msg);
30  }
boost::shared_ptr< StreamerOutputFile > stream_writer_events_
void evf::RecoEventWriterForFU::doOutputHeader ( InitMsgBuilder const &  init_message)

Definition at line 12 of file RecoEventWriterForFU.cc.

References InitMsgBuilder::startAddress().

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

Definition at line 18 of file RecoEventWriterForFU.cc.

References preamble_adler32_, and stream_writer_preamble_.

18  {
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  }
boost::shared_ptr< StreamerOutputFile > stream_writer_preamble_
void evf::RecoEventWriterForFU::fillDescription ( edm::ParameterSetDescription desc)
static

Definition at line 37 of file RecoEventWriterForFU.cc.

37  {
38  }
uint32 evf::RecoEventWriterForFU::get_adler32 ( ) const
inline

Definition at line 46 of file RecoEventWriterForFU.h.

References stream_writer_events_.

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

Definition at line 45 of file RecoEventWriterForFU.h.

References preamble_adler32_.

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

Definition at line 40 of file RecoEventWriterForFU.cc.

References preamble_adler32_, and stream_writer_preamble_.

40  {
43  }
boost::shared_ptr< StreamerOutputFile > stream_writer_preamble_
void evf::RecoEventWriterForFU::setOutputFile ( std::string const &  events)

Definition at line 45 of file RecoEventWriterForFU.cc.

References stream_writer_events_.

45  {
47  }
boost::shared_ptr< StreamerOutputFile > stream_writer_events_
tuple events
Definition: patZpeak.py:19
void evf::RecoEventWriterForFU::start ( void  )
inline
void evf::RecoEventWriterForFU::stop ( )
inline

Definition at line 43 of file RecoEventWriterForFU.h.

43 {}

Member Data Documentation

uint32 evf::RecoEventWriterForFU::preamble_adler32_ =1
private

Definition at line 52 of file RecoEventWriterForFU.h.

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

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

Definition at line 51 of file RecoEventWriterForFU.h.

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

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

Definition at line 50 of file RecoEventWriterForFU.h.

Referenced by doOutputHeader(), and setInitMessageFile().