#include <FRDEventFileWriter.h>
Definition at line 11 of file FRDEventFileWriter.h.
FRDEventFileWriter::FRDEventFileWriter |
( |
std::string const & |
fileName | ) |
|
|
explicit |
FRDEventFileWriter::~FRDEventFileWriter |
( |
| ) |
|
uint32 FRDEventFileWriter::adler32 |
( |
| ) |
const |
|
inline |
Definition at line 23 of file FRDEventFileWriter.cc.
References cms::Adler32(), adlera_, adlerb_, edm::hlt::Exception, fileName_, ost_, FRDEventMsgView::size(), and FRDEventMsgView::startAddress().
25 ost_->write((
const char*)
msg.startAddress(),
msg.size());
28 <<
"Error writing FED Raw Data event data to "
29 <<
fileName_ <<
". Possibly the output disk "
30 <<
"is full?" << std::endl;
36 <<
"Error writing FED Raw Data event data to "
37 <<
fileName_ <<
". Possibly the output disk "
38 <<
"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 44 of file FRDEventFileWriter.cc.
References cms::Adler32(), adlera_, adlerb_, edm::hlt::Exception, fileName_, and ost_.
47 ost_->write((
const char*) dataPtr, dataSize);
49 throw cms::Exception(
"FRDEventFileWriter",
"doOutputEventFragment")
50 <<
"Error writing FED Raw Data event data to "
51 <<
fileName_ <<
". Possibly the output disk "
52 <<
"is full?" << std::endl;
57 throw cms::Exception(
"FRDEventFileWriter",
"doOutputEventFragment")
58 <<
"Error writing FED Raw Data event data to "
59 <<
fileName_ <<
". Possibly the output disk "
60 <<
"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 |