22 int main(
int narg,
char* argv[])
29 unsigned int NEvents = 0;
30 unsigned int NEvents_read = 0;
38 std::cout <<
"Don't know how to process HDDM class \"" <<
HDDM_CLASS
39 <<
"\"!" << std::endl;
43 std::cout << std::endl;
44 std::cout <<
" " << NEvents_read <<
" events read, "
45 << NEvents <<
" events written" << std::endl;
56 for (
int i=1; i<narg; i++) {
79 INFILENAMES.push_back(argv[i]);
83 if (INFILENAMES.size() == 0) {
84 std::cout << std::endl <<
"You must enter a filename!"
85 << std::endl << std::endl;
101 std::cout << std::endl <<
"Usage:" << std::endl;
102 std::cout <<
" hddm_merge_files [options] "
103 "file1.hddm file2.hddm ..." << std::endl;
104 std::cout << std::endl;
105 std::cout <<
"options:" << std::endl;
106 std::cout <<
" -oOutputfile Set output filename "
107 <<
"(def. merged_files.hddm)" << std::endl;
108 std::cout <<
" -I Enable data integrity checks on"
109 " the output hddm stream" << std::endl;
110 std::cout <<
" -C Enable data compression on"
111 " the output hddm stream" << std::endl;
112 std::cout <<
" -r Input file is in REST format" << std::endl;
113 std::cout << std::endl;
114 std::cout <<
" This will merge 1 or more HDDM files "
115 "into a single HDDM file." << std::endl;
116 std::cout <<
" " << std::endl;
117 std::cout <<
" " << std::endl;
118 std::cout << std::endl;
129 std::cerr << std::endl <<
"SIGINT received (" <<
QUIT <<
")....."
void Process_s(unsigned int &NEvents, unsigned int &NEvents_read)
sprintf(text,"Post KinFit Cut")
void Process_r(unsigned int &NEvents, unsigned int &NEvents_read)
void ParseCommandLineArguments(int &narg, char *argv[])
bool HDDM_USE_COMPRESSION
bool HDDM_USE_INTEGRITY_CHECKS
vector< char * > INFILENAMES
void Usage(JApplication &app)
int main(int argc, char *argv[])