22 int main(
int argc,
char** argv) {
23 std::string config, data;
24 for(
int i=1; i<argc; ++i) {
25 if ( 0 == ::strncmp(argv[i],
"-config",4) )
27 else if ( 0 == ::strncmp(argv[i],
"--config",5) )
29 else if ( 0 == ::strncmp(argv[i],
"-data",4) )
31 else if ( 0 == ::strncmp(argv[i],
"--data",5) )
35 "ddeve -opt [-opt] \n"
36 " -config <file> XML configuration file \n"
37 " -data <file> Event data file file \n"
42 std::pair<int, char**> a(0,0);
43 const char* config_xml = config.empty() ? 0 : config.c_str();
44 gApplication =
new TRint(
"DDEve", &a.first, a.second);