58 |
|
return |
59 |
|
|
60 |
|
|
61 |
< |
watch = TStopwatch() |
61 |
> |
watch = TStopwatch() |
62 |
> |
watch1 = TStopwatch() |
63 |
> |
|
64 |
|
|
65 |
|
parser = OptionParser() |
66 |
|
parser = set_commandline_arguments(parser) |
101 |
|
#chain trees together |
102 |
|
ch = TChain("OSUAnalysis/"+hist['channel']+"/BNTree_"+hist['channel']) |
103 |
|
ch.Add(condor_dir + "/" + dataset + "/hist_*.root") |
104 |
< |
print "Looping over chain with # entries = %f" % ch.GetEntries() |
104 |
> |
print "Looping over chain with # entries = %f; time = " % ch.GetEntries() |
105 |
> |
watch1.Stop(); watch1.Print(); watch1.Start() |
106 |
|
|
107 |
|
outputFile = TFile(condor_dir + "/" + dataset + ".root", "UPDATE") |
108 |
|
if not outputFile or outputFile.IsZombie(): print "Could not open file: %s/%s.root" % (condor_dir, dataset) |