//---------------------------------- // XFT analysis driver script //----------------------------------- { // // Make a TStnAna object // TStnAna x("/nosu6a/thomsone/xft/stnmaker_test_data.root"); TChain* chain = new TChain("STNTUPLE"); chain->Add("/nosu6a/thomsone/xft/stnmaker_21118A1_data.root"); chain->Add("/nosu6a/thomsone/xft/stnmaker_21118A2_data.root"); TStnAna x(chain); // // Compile our analysis module gSystem->CompileMacro("Stntuple/ana/Helix.cc","+"); gSystem->CompileMacro("Stntuple/ana/TXftAnaModule.cc","+"); // // Get an instance of the analysis module TXftAnaModule* m = new TXftAnaModule(); // // Set the job name -> this defines the output histogram file name m->SetJobName("myrun"); // // Add the analysis module x.AddModule(m); // // Run x.Run(); }