#include <FRDEventFileWriter.h>
Definition at line 10 of file FRDEventFileWriter.h.
FRDEventFileWriter::FRDEventFileWriter |
( |
std::string const & |
fileName | ) |
|
|
explicit |
FRDEventFileWriter::~FRDEventFileWriter |
( |
| ) |
|
uint32 FRDEventFileWriter::adler32 |
( |
| ) |
const |
|
inline |
Definition at line 22 of file FRDEventFileWriter.cc.
References cms::Adler32(), adlera_, adlerb_, edm::hlt::Exception, fileName_, ost_, FRDEventMsgView::size(), and FRDEventMsgView::startAddress().
24 ost_->write((
const char*)
msg.startAddress(),
msg.size());
27 <<
"Error writing FED Raw Data event data to "
28 <<
fileName_ <<
". Possibly the output disk "
29 <<
"is full?" << std::endl;
35 <<
"Error writing FED Raw Data event data to "
36 <<
fileName_ <<
". Possibly the output disk "
37 <<
"is full?" << std::endl;
std::auto_ptr< std::ofstream > ost_
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
void FRDEventFileWriter::doOutputEventFragment |
( |
unsigned char * |
dataPtr, |
|
|
unsigned long |
dataSize |
|
) |
| |
Definition at line 43 of file FRDEventFileWriter.cc.
References cms::Adler32(), adlera_, adlerb_, edm::hlt::Exception, fileName_, and ost_.
46 ost_->write((
const char*) dataPtr, dataSize);
48 throw cms::Exception(
"FRDEventFileWriter",
"doOutputEventFragment")
49 <<
"Error writing FED Raw Data event data to "
50 <<
fileName_ <<
". Possibly the output disk "
51 <<
"is full?" << std::endl;
56 throw cms::Exception(
"FRDEventFileWriter",
"doOutputEventFragment")
57 <<
"Error writing FED Raw Data event data to "
58 <<
fileName_ <<
". Possibly the output disk "
59 <<
"is full?" << std::endl;
std::auto_ptr< std::ofstream > ost_
void Adler32(char const *data, size_t len, uint32_t &a, uint32_t &b)
void FRDEventFileWriter::initialize |
( |
std::string const & |
name | ) |
|
|
private |
void FRDEventFileWriter::start |
( |
void |
| ) |
|
|
inline |
void FRDEventFileWriter::stop |
( |
| ) |
|
|
inline |
uint32 FRDEventFileWriter::adlera_ |
|
private |
uint32 FRDEventFileWriter::adlerb_ |
|
private |
std::string FRDEventFileWriter::fileName_ |
|
private |
std::auto_ptr<std::ofstream> FRDEventFileWriter::ost_ |
|
private |