31 |
|
help="path to samples") |
32 |
|
parser.add_option("-S", "--samples", dest="names", default="", |
33 |
|
help="samples you want to run on") |
34 |
< |
parser.add_option("-C", "--config", dest="config", default="", |
34 |
> |
parser.add_option("-C", "--config", dest="config", default=[], action="append", |
35 |
|
help="configuration file") |
36 |
|
(opts, args) = parser.parse_args(argv) |
37 |
|
if opts.config =="": |
42 |
|
|
43 |
|
#get locations: |
44 |
|
Wdir=config.get('Directories','Wdir') |
45 |
– |
|
45 |
|
MVAdir=config.get('Directories','MVAdir') |
46 |
|
|
47 |
|
#systematics |
134 |
|
if eval(job.active): |
135 |
|
if job.name in namelist: |
136 |
|
#get trees: |
137 |
< |
input = TFile.Open(job.getpath(),'read') |
137 |
> |
input = TFile.Open(Apath+'/'+job.getpath(),'read') |
138 |
|
outfile = TFile.Open(job.path+'/'+MVAdir+job.prefix+job.identifier+'.root','recreate') |
139 |
|
input.cd() |
140 |
|
obj = ROOT.TObject |