CMS 3D CMS Logo

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 
44  }
45 
47 
48 } // namespace evf
InitMsgBuilder
Definition: InitMsgBuilder.h:9
InitMsgBuilder::startAddress
uint8 * startAddress() const
Definition: InitMsgBuilder.h:24
evf::RecoEventWriterForFU::setOutputFile
void setOutputFile(std::string const &)
Definition: RecoEventWriterForFU.cc:42
evf::RecoEventWriterForFU::RecoEventWriterForFU
RecoEventWriterForFU(edm::ParameterSet const &ps)
Definition: RecoEventWriterForFU.cc:6
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
mps_check.msg
tuple msg
Definition: mps_check.py:285
patZpeak.events
events
Definition: patZpeak.py:20
EventMsgView
Definition: EventMessage.h:72
EventMsgBuilder
Definition: EventMsgBuilder.h:8
evf::RecoEventWriterForFU::doOutputEvent
void doOutputEvent(EventMsgBuilder const &msg)
Definition: RecoEventWriterForFU.cc:30
evf::RecoEventWriterForFU::setInitMessageFile
void setInitMessageFile(std::string const &)
Definition: RecoEventWriterForFU.cc:37
evf::RecoEventWriterForFU::doOutputHeader
void doOutputHeader(InitMsgBuilder const &init_message)
Definition: RecoEventWriterForFU.cc:10
evf::RecoEventWriterForFU::stream_writer_preamble_
std::shared_ptr< StreamerOutputFile > stream_writer_preamble_
Definition: RecoEventWriterForFU.h:44
StreamerOutputFile
Definition: StreamerOutputFile.h:23
ParameterSetDescription.h
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
evf::RecoEventWriterForFU::stream_writer_events_
std::shared_ptr< StreamerOutputFile > stream_writer_events_
Definition: RecoEventWriterForFU.h:45
edm::ParameterSet
Definition: ParameterSet.h:47
evf::RecoEventWriterForFU::~RecoEventWriterForFU
~RecoEventWriterForFU()
Definition: RecoEventWriterForFU.cc:8
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251
init
Definition: init.py:1
RecoEventWriterForFU.h
evf
Definition: fillJson.h:27
ParameterSet.h
evf::RecoEventWriterForFU::closeOutputFile
void closeOutputFile()
Definition: RecoEventWriterForFU.cc:46
evf::RecoEventWriterForFU::preamble_adler32_
uint32 preamble_adler32_
Definition: RecoEventWriterForFU.h:46
InitMsgView
Definition: InitMessage.h:61
evf::RecoEventWriterForFU::fillDescription
static void fillDescription(edm::ParameterSetDescription &desc)
Definition: RecoEventWriterForFU.cc:35