47 |
|
return condor_dir |
48 |
|
|
49 |
|
def set_commandline_arguments(parser): |
50 |
+ |
#### Configuration-related Options |
51 |
|
parser.add_option("-l", "--localConfig", dest="localConfig", |
52 |
|
help="local configuration file") |
52 |
– |
|
53 |
|
parser.add_option("-c", "--condorDir", dest="condorDir", |
54 |
|
help="condor output directory") |
55 |
+ |
parser.add_option("-o", "--output-file", dest="outputFileName", |
56 |
+ |
help="specify an output file name for the histogram file, default is 'stacked_histograms.root'") |
57 |
+ |
parser.add_option("-t", "--no-weights", action="store_true", dest="noWeights", default=False, |
58 |
+ |
help="do not apply cross section weights") |
59 |
+ |
|
60 |
+ |
|
61 |
+ |
#### Histogram Formatting Options |
62 |
|
parser.add_option("-n", "--normalize", action="store_true", dest="normalizeToData", default=False, |
63 |
|
help="normalize total background MC yield to the data") |
64 |
|
parser.add_option("-u", "--unit-area", action="store_true", dest="normalizeToUnitArea", default=False, |
65 |
|
help="normalize all samples to unit area (useful to compare shapes)") |
66 |
|
parser.add_option("-e", "--empty", action="store_true", dest="noStack", default=False, |
67 |
|
help="don't stack the background samples, draw them as empty histograms instead") |
68 |
+ |
|
69 |
|
parser.add_option("-r", "--ratio", action="store_true", dest="makeRatioPlots", default=False, |
70 |
|
help="draw (data-MC)/MC plots below all 1D histograms") |
71 |
< |
parser.add_option("-o", "--output-file", dest="outputFileName", |
72 |
< |
help="specify an output file name for the histogram file, default is 'stacked_histograms.root'") |
73 |
< |
parser.add_option("-t", "--no-weights", action="store_true", dest="noWeights", default=False, |
74 |
< |
help="do not apply cross section weights") |
75 |
< |
|
68 |
< |
parser.add_option("-b", "--rebin", dest="Rebin", |
69 |
< |
help="Rebin all the histograms that has more than num(number you type)*8 bins") |
70 |
< |
parser.add_option("-d", "--Diff", action="store_true", dest="makeDiffPlots", default=False, |
71 |
< |
help="only functional after -r, to draw data-MC plots below all 1D histograms") |
71 |
> |
parser.add_option("-d", "--diff", action="store_true", dest="makeDiffPlots", default=False, |
72 |
> |
help="draw data-MC plots below all 1D histograms") |
73 |
> |
parser.add_option("-b", "--rebin", dest="rebinFactor", |
74 |
> |
help="Rebin all the histograms which will have at least 10 bins after rebinning") |
75 |
> |
|
76 |
|
return parser |
77 |
|
|
78 |
|
def get_short_name(dataset): |