7 #include <HDDM/hddm_r.hpp>
8 using namespace hddm_r;
14 void Process_r(
unsigned int &NEvents,
unsigned int &NEvents_read)
17 std::cout <<
" output file: " <<
OUTFILENAME << std::endl;
19 if (! ofs.is_open()) {
20 std::cout <<
" Error opening output file \"" <<
OUTFILENAME
21 <<
"\"!" << std::endl;
24 hddm_r::ostream *ostr =
new hddm_r::ostream(ofs);
26 std::cout <<
" Enabling bz2 compression of output HDDM file stream"
28 ostr->setCompression(hddm_r::k_bz2_compression);
31 std::cout <<
" HDDM compression disabled" << std::endl;
34 std::cout <<
" Enabling CRC data integrity check in output HDDM"
35 " file stream" << std::endl;
36 ostr->setIntegrityChecks(hddm_r::k_crc32_integrity);
39 std::cout <<
" HDDM integrity checks disabled" << std::endl;
43 time_t last_time = time(NULL);
45 std::cout <<
" input file: " <<
INFILENAMES[i] << std::endl;
51 hddm_r::istream *istr =
new hddm_r::istream(ifs);
63 time_t now = time(NULL);
64 if (now != last_time) {
65 std::cout <<
" " << NEvents_read <<
" events read ("
66 << NEvents <<
" event written) \r";
void Process_r(unsigned int &NEvents, unsigned int &NEvents_read)
bool HDDM_USE_COMPRESSION
bool HDDM_USE_INTEGRITY_CHECKS
vector< char * > INFILENAMES