// Author: Edward Brash February 15, 2005 // // // hd_root.cc // #include #include #include "MyProcessor.h" #include "DANA/DApplication.h" typedef void SetTFilePtrAddress_t(TFile **); TFile* tfilePtr = NULL; string OUTPUT_FILENAME = "hd_root.root"; void ParseCommandLineArguments(int &narg, char *argv[]); void Usage(void); //----------- // main //----------- int main(int narg, char *argv[]) { // Parse the command line ParseCommandLineArguments(narg, argv); // Instantiate our event processor MyProcessor myproc; // Instantiate an event loop object DApplication app(narg, argv); // Run though all events, calling our event processor's methods app.monitor_heartbeat=false; app.Run(&myproc); return 0; } //----------- // ParseCommandLineArguments //----------- void ParseCommandLineArguments(int &narg, char *argv[]) { if(narg==1)Usage(); for(int i=1;i=narg-1){ cerr<<"\"-o\" requires a filename!"<