115 |
|
for job in Ainfo[start:stop]: |
116 |
|
#get trees: |
117 |
|
input = TFile.Open(job.getpath(),'read') |
118 |
< |
outfile = TFile.Open(job.path+'/MVAout2/'+job.prefix+job.identifier+'.root','recreate') |
118 |
> |
outfile = TFile.Open(job.path+'/MVAout/'+job.prefix+job.identifier+'.root','recreate') |
119 |
|
input.cd() |
120 |
|
obj = ROOT.TObject |
121 |
|
for key in ROOT.gDirectory.GetListOfKeys(): |
122 |
|
input.cd() |
123 |
|
obj = key.ReadObj() |
124 |
< |
print obj.GetName() |
124 |
> |
#print obj.GetName() |
125 |
|
if obj.GetName() == job.tree: |
126 |
|
continue |
127 |
|
outfile.cd() |
128 |
< |
print key.GetName() |
128 |
> |
#print key.GetName() |
129 |
|
obj.Write(key.GetName()) |
130 |
|
tree = input.Get(job.tree) |
131 |
|
nEntries = tree.GetEntries() |