7 #include <HDDM/hddm_s.hpp>
12 void Process_s(
unsigned int &NEvents,
unsigned int &NEvents_read)
15 std::cout <<
" output file: " <<
OUTFILENAME << std::endl;
17 if (! ofs.is_open()) {
18 std::cout <<
" Error opening output file \"" <<
OUTFILENAME
19 <<
"\"!" << std::endl;
22 hddm_s::ostream *fout =
new hddm_s::ostream(ofs);
24 std::cout <<
" Enabling bz2 compression of output HDDM file stream"
26 fout->setCompression(hddm_s::k_bz2_compression);
29 std::cout <<
" HDDM compression disabled" << std::endl;
32 std::cout <<
" Enabling CRC data integrity check in output HDDM"
33 " file stream" << std::endl;
34 fout->setIntegrityChecks(hddm_s::k_crc32_integrity);
37 std::cout <<
" HDDM integrity checks disabled" << std::endl;
41 time_t last_time = time(NULL);
43 std::cout <<
" input file: " <<
INFILENAMES[i] << std::endl;
45 if (! ifs.is_open()) {
46 std::cout <<
" Error opening input file \"" <<
INFILENAMES[i]
47 <<
"\"!" << std::endl;
50 hddm_s::istream *fin =
new hddm_s::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_s(unsigned int &NEvents, unsigned int &NEvents_read)
bool HDDM_USE_COMPRESSION
bool HDDM_USE_INTEGRITY_CHECKS
vector< char * > INFILENAMES