9 |
|
#suppres the EvalInstace conversion warning bug |
10 |
|
import warnings |
11 |
|
warnings.filterwarnings( action='ignore', category=RuntimeWarning, message='creating converter.*' ) |
12 |
+ |
from optparse import OptionParser |
13 |
|
from BetterConfigParser import BetterConfigParser |
14 |
|
from samplesclass import sample |
15 |
|
from mvainfos import mvainfo |
20 |
|
#CONFIGURE |
21 |
|
|
22 |
|
#load config |
23 |
+ |
#os.mkdir(path+'/sys') |
24 |
+ |
argv = sys.argv[5:] |
25 |
+ |
parser = OptionParser() |
26 |
+ |
parser.add_option("-C", "--config", dest="config", default=[], action="append", |
27 |
+ |
help="configuration defining the plots to make") |
28 |
+ |
(opts, args) = parser.parse_args(argv) |
29 |
+ |
if opts.config ==[]: |
30 |
+ |
opts.config = "config" |
31 |
+ |
print opts.config |
32 |
|
config = BetterConfigParser() |
33 |
< |
config.read('./config') |
33 |
> |
config.read(opts.config) |
34 |
> |
anaTag = config.get("Analysis","tag") |
35 |
|
|
36 |
|
#get locations: |
37 |
|
Wdir=config.get('Directories','Wdir') |
52 |
|
#Evaluate multi: Must Have same treeVars!!! |
53 |
|
|
54 |
|
Apath=sys.argv[1] |
55 |
+ |
infofile = open(Apath+'/samples.info','r') |
56 |
+ |
info = pickle.load(infofile) |
57 |
+ |
infofile.close() |
58 |
|
arglist=sys.argv[2] #RTight_blavla,bsbsb |
59 |
|
|
60 |
|
namelistIN=sys.argv[3] |