--- UserCode/OSUT3Analysis/Configuration/scripts/makeBNTreePlot.py 2013/06/12 09:03:07 1.10 +++ UserCode/OSUT3Analysis/Configuration/scripts/makeBNTreePlot.py 2013/06/12 09:10:31 1.11 @@ -58,7 +58,9 @@ def RunOnCondor(arguments, split_dataset return -watch = TStopwatch() +watch = TStopwatch() +watch1 = TStopwatch() + parser = OptionParser() parser = set_commandline_arguments(parser) @@ -99,7 +101,8 @@ if not arguments.quickMerge: #chain trees together ch = TChain("OSUAnalysis/"+hist['channel']+"/BNTree_"+hist['channel']) ch.Add(condor_dir + "/" + dataset + "/hist_*.root") - print "Looping over chain with # entries = %f" % ch.GetEntries() + print "Looping over chain with # entries = %f; time = " % ch.GetEntries() + watch1.Stop(); watch1.Print(); watch1.Start() outputFile = TFile(condor_dir + "/" + dataset + ".root", "UPDATE") if not outputFile or outputFile.IsZombie(): print "Could not open file: %s/%s.root" % (condor_dir, dataset)