// Author: Edward Brash February 15, 2005 // // // hd_root.cc // #include #include #include "MyProcessor.h" #include "DApplication.h" typedef void SetTFilePtrAddress_t(TFile **); TFile* tfilePtr = NULL; //----------- // main //----------- int main(int narg, char *argv[]) { // Instantiate our event processor MyProcessor myproc; // Instantiate an event loop object DApplication app(narg, argv); // Get the list of shared objects (if any) and try setting their // TFile pointer address globals so that they use the same // ROOT file for output. vector sohandles = app.GetSharedObjectHandles(); for(unsigned int i=0; i