CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
RecoEventWriterForFU.cc
Go to the documentation of this file.
1 #include "RecoEventWriterForFU.h"
4 
5 namespace evf {
7 
9 
11  //Let us turn it into a View
12  InitMsgView view(init_message.startAddress());
13  doOutputHeader(view);
14  }
15 
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  }
24 
26  //Write the Event Message to Streamer file
27  stream_writer_events_->write(msg);
28  }
29 
31  EventMsgView eview(msg.startAddress());
32  doOutputEvent(eview);
33  }
34 
36 
40  }
41 
43  stream_writer_events_.reset(new StreamerOutputFile(events));
44  }
45 
47 
48 } // namespace evf
std::shared_ptr< StreamerOutputFile > stream_writer_events_
int init
Definition: HydjetWrapper.h:64
uint8 * startAddress() const
void setInitMessageFile(std::string const &)
std::shared_ptr< StreamerOutputFile > stream_writer_preamble_
void setOutputFile(std::string const &)
void doOutputEvent(EventMsgBuilder const &msg)
tuple msg
Definition: mps_check.py:285
void doOutputHeader(InitMsgBuilder const &init_message)
tuple events
Definition: patZpeak.py:20
static void fillDescription(edm::ParameterSetDescription &desc)
uint8 * startAddress() const
RecoEventWriterForFU(edm::ParameterSet const &ps)