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
 
 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

boost::shared_ptr
< StreamerOutputFile
stream_writer_events_
 
boost::shared_ptr
< StreamerOutputFile
stream_writer_preamble_
 

Detailed Description

Definition at line 21 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 31 of file RecoEventWriterForFU.cc.

References EventMsgBuilder::startAddress().

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

Definition at line 26 of file RecoEventWriterForFU.cc.

References stream_writer_events_.

26  {
27  //Write the Event Message to Streamer file
28  stream_writer_events_->write(msg);
29  }
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 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);
23  }
24  }
boost::shared_ptr< StreamerOutputFile > stream_writer_preamble_
void evf::RecoEventWriterForFU::fillDescription ( edm::ParameterSetDescription desc)
static

Definition at line 36 of file RecoEventWriterForFU.cc.

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

36  {
37  desc.setComment("Writes events into a streamer output file.");
38  desc.addUntracked<std::string>("fileName", "teststreamfile.dat")->setComment("Name of output file.");
39  }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void setComment(std::string const &value)
uint32 evf::RecoEventWriterForFU::get_adler32 ( ) const
inline

Definition at line 43 of file RecoEventWriterForFU.h.

References stream_writer_events_.

43 { return stream_writer_events_->adler32();}
boost::shared_ptr< StreamerOutputFile > stream_writer_events_
void evf::RecoEventWriterForFU::setInitMessageFile ( std::string const &  init)

Definition at line 41 of file RecoEventWriterForFU.cc.

References stream_writer_preamble_.

41  {
43  }
int init
Definition: HydjetWrapper.h:62
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 41 of file RecoEventWriterForFU.h.

41 {};

Member Data Documentation

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

Definition at line 48 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 47 of file RecoEventWriterForFU.h.

Referenced by doOutputHeader(), and setInitMessageFile().