diff --git a/macros/runCond/lumiExtract b/macros/runCond/lumiExtract index 0bc7a1c..bcff021 100755 --- a/macros/runCond/lumiExtract +++ b/macros/runCond/lumiExtract Binary files differ diff --git a/macros/runCond/lumiExtract.C b/macros/runCond/lumiExtract.C index 8255fed..98b13f8 100644 --- a/macros/runCond/lumiExtract.C +++ b/macros/runCond/lumiExtract.C @@ -42,16 +42,25 @@ int argc_copy = argc; - TApplication theApp("Analysis", &argc, argv); - argc = theApp.Argc(); - argv = theApp.Argv(); + TApplication* theApp = new TApplication("Analysis", &argc, argv); + argc = theApp->Argc(); + argv = theApp->Argv(); + bool runBatch = false; + for (int i = 1; iSetBatch(); + } + } int exit = lumiExtract(argc,argv); Printf("End"); - theApp.Run(kTRUE); + if (!runBatch) { + theApp->Run(!runBatch); + } return exit; } @@ -295,9 +304,11 @@ vr_stop_tot.Write("v_stopTime_tot"); vr_peak_tot.Print(); vr_peak_tot.Write("v_peakLumi_tot"); + + Info("lumiExtract", "Data written to %s/lumi.root", dn_lumi.Data()); f_lumiout->Close(); - return 0; + return EXIT_SUCCESS; }