ATLAS Offline Software
|
Functions | |
def | isFloat (x) |
def | convertHistToScatter (ao) |
def | renameAOs (fin_name, aoMap) |
def | makeBeamer (plotDictionary, outdir) |
def | makeSummaryTable (plotDictionary, outfile, hdataName=None) |
def | matchAOs (aoList1, aoList2, strategy=0, recursive=True) |
def | markupYODAwithCorrelationsFromYODAs (reference, correlationsDir) |
def | markupYODAwithCorrelationsFromYAML (reference, correlationsDir) |
def | markupYODAwithCorrelations (ref, corrDir, ignoreCorrelations) |
def | returnFileContents (filename, inputType='data') |
def | getCorrelationInfoFromWeb (name=None, dlformat="yoda") |
Variables | |
parser = optparse.OptionParser(usage="%prog [options]") | |
help | |
dest | |
default | |
False | |
action | |
opts | |
args | |
dictionary | histograms |
ntoys | |
verbosity | |
filter | |
ignore_corrs_data | |
ignore_corrs_mc | |
dictionary | mcNames = {} |
dictionary | plotDictionary = {'error-analysis': {}, 'covariance-matrix': {}, 'correlation-matrix': {}, 'data-vs-mc': {}, 'chi2-contribs': {}, 'chi2-value': {}, 'covDetails': {}, 'summary-plot': {}, 'summary-table': {}} |
data | |
string | outdir = "outputs/%s/data/plots" % (opts.data.replace(".yoda", "")) |
plotparser = rivet.mkStdPlotParser([], []) | |
headers = plotparser.getHeaders(hdata.path()) | |
XLabel | |
Title | |
xLabel | |
title | |
mcName = mc.split(":")[1] | |
mc = mc.split(":")[0] | |
def | mcnew = markupYODAwithCorrelations(mc, opts.corr_mc, opts.ignore_corrs_mc) |
def | aoMap = matchAOs(histograms['data'], histograms['models'][mcnew]) |
def | newmc = renameAOs(mcnew, aoMap) |
dataSuperAO = ct.makeSuperAO(histograms['data']) | |
mcSuperAO = ct.makeSuperAO(histograms['models'][mc]) | |
dictionary | mcResults = {} |
bool | passFilter = False |
def | hmc = aoMap[hdata] |
string | covDetailsData = "Size of uncertainties across range, and Data Correlation Matrix" |
covData = ct.makeCovarianceMatrixFromToys(hdata, opts.ntoys, opts.ignore_corrs_data) | |
string | covDetailsMC = "MC Covariance Matrix" |
covMC = ct.makeCovarianceMatrixFromToys(hmc, opts.ntoys, opts.ignore_corrs_mc) | |
covTotal = covData + covMC | |
chi2 | |
ndf | |
prob | |
chi2contribs | |
chi2ContribsByRow = ct.chi2ContribsByRow(chi2contribs) | |
chi2ContribsByRowYAML = yaml.dump(chi2ContribsByRow, default_flow_style=True, default_style='', width=1e6) | |
dictionary | res = {'%s' % opts.data: '[Data]', '%s' % model: '[%s (# chi^2=%.2f/%d)]' % (mcName, chi2, ndf)} |
string | outdirplots = outdir + "/data-vs-%s/plots/" % mcName |
plots = st.makeSystematicsPlotsWithROOT(res, outdirplots, nominalName='Data', ratioZoom=None, regexFilter=".*%s.*" % hmc.name(), regexVeto=None) | |
pathName = hdata.path().replace("/REF", "") | |
dictionary | mcR = mcResults[model] |
def | beamerPath = makeBeamer(plotDictionary, outdir) |
def covarianceTool.convertHistToScatter | ( | ao | ) |
Definition at line 69 of file covarianceTool.py.
def covarianceTool.getCorrelationInfoFromWeb | ( | name = None , |
|
dlformat = "yoda" |
|||
) |
Definition at line 479 of file covarianceTool.py.
def covarianceTool.isFloat | ( | x | ) |
Definition at line 60 of file covarianceTool.py.
def covarianceTool.makeBeamer | ( | plotDictionary, | |
outdir | |||
) |
Definition at line 93 of file covarianceTool.py.
def covarianceTool.makeSummaryTable | ( | plotDictionary, | |
outfile, | |||
hdataName = None |
|||
) |
Definition at line 143 of file covarianceTool.py.
def covarianceTool.markupYODAwithCorrelations | ( | ref, | |
corrDir, | |||
ignoreCorrelations | |||
) |
Definition at line 419 of file covarianceTool.py.
def covarianceTool.markupYODAwithCorrelationsFromYAML | ( | reference, | |
correlationsDir | |||
) |
Definition at line 292 of file covarianceTool.py.
def covarianceTool.markupYODAwithCorrelationsFromYODAs | ( | reference, | |
correlationsDir | |||
) |
Definition at line 228 of file covarianceTool.py.
def covarianceTool.matchAOs | ( | aoList1, | |
aoList2, | |||
strategy = 0 , |
|||
recursive = True |
|||
) |
Definition at line 176 of file covarianceTool.py.
def covarianceTool.renameAOs | ( | fin_name, | |
aoMap | |||
) |
Definition at line 74 of file covarianceTool.py.
def covarianceTool.returnFileContents | ( | filename, | |
inputType = 'data' |
|||
) |
Definition at line 436 of file covarianceTool.py.
covarianceTool.action |
Definition at line 34 of file covarianceTool.py.
def covarianceTool.aoMap = matchAOs(histograms['data'], histograms['models'][mcnew]) |
Definition at line 564 of file covarianceTool.py.
covarianceTool.args |
Definition at line 49 of file covarianceTool.py.
def covarianceTool.beamerPath = makeBeamer(plotDictionary, outdir) |
Definition at line 730 of file covarianceTool.py.
covarianceTool.chi2 |
Definition at line 678 of file covarianceTool.py.
covarianceTool.chi2contribs |
Definition at line 678 of file covarianceTool.py.
covarianceTool.chi2ContribsByRow = ct.chi2ContribsByRow(chi2contribs) |
Definition at line 683 of file covarianceTool.py.
covarianceTool.chi2ContribsByRowYAML = yaml.dump(chi2ContribsByRow, default_flow_style=True, default_style='', width=1e6) |
Definition at line 684 of file covarianceTool.py.
covarianceTool.covData = ct.makeCovarianceMatrixFromToys(hdata, opts.ntoys, opts.ignore_corrs_data) |
Definition at line 621 of file covarianceTool.py.
string covarianceTool.covDetailsData = "Size of uncertainties across range, and Data Correlation Matrix" |
Definition at line 618 of file covarianceTool.py.
string covarianceTool.covDetailsMC = "MC Covariance Matrix" |
Definition at line 638 of file covarianceTool.py.
covarianceTool.covMC = ct.makeCovarianceMatrixFromToys(hmc, opts.ntoys, opts.ignore_corrs_mc) |
Definition at line 641 of file covarianceTool.py.
Definition at line 654 of file covarianceTool.py.
covarianceTool.data |
Definition at line 529 of file covarianceTool.py.
covarianceTool.dataSuperAO = ct.makeSuperAO(histograms['data']) |
Definition at line 585 of file covarianceTool.py.
covarianceTool.default |
Definition at line 32 of file covarianceTool.py.
covarianceTool.dest |
Definition at line 32 of file covarianceTool.py.
covarianceTool.False |
Definition at line 34 of file covarianceTool.py.
covarianceTool.filter |
Definition at line 514 of file covarianceTool.py.
covarianceTool.headers = plotparser.getHeaders(hdata.path()) |
Definition at line 537 of file covarianceTool.py.
covarianceTool.help |
Definition at line 32 of file covarianceTool.py.
dictionary covarianceTool.histograms |
Definition at line 53 of file covarianceTool.py.
def covarianceTool.hmc = aoMap[hdata] |
Definition at line 610 of file covarianceTool.py.
covarianceTool.ignore_corrs_data |
Definition at line 516 of file covarianceTool.py.
covarianceTool.ignore_corrs_mc |
Definition at line 517 of file covarianceTool.py.
covarianceTool.mc = mc.split(":")[0] |
Definition at line 554 of file covarianceTool.py.
dictionary covarianceTool.mcName = mc.split(":")[1] |
Definition at line 553 of file covarianceTool.py.
dictionary covarianceTool.mcNames = {} |
Definition at line 519 of file covarianceTool.py.
def covarianceTool.mcnew = markupYODAwithCorrelations(mc, opts.corr_mc, opts.ignore_corrs_mc) |
Definition at line 558 of file covarianceTool.py.
dictionary covarianceTool.mcR = mcResults[model] |
Definition at line 709 of file covarianceTool.py.
dictionary covarianceTool.mcResults = {} |
Definition at line 602 of file covarianceTool.py.
covarianceTool.mcSuperAO = ct.makeSuperAO(histograms['models'][mc]) |
Definition at line 589 of file covarianceTool.py.
covarianceTool.ndf |
Definition at line 678 of file covarianceTool.py.
Definition at line 565 of file covarianceTool.py.
covarianceTool.ntoys |
Definition at line 512 of file covarianceTool.py.
covarianceTool.opts |
Definition at line 49 of file covarianceTool.py.
Definition at line 532 of file covarianceTool.py.
Definition at line 697 of file covarianceTool.py.
covarianceTool.parser = optparse.OptionParser(usage="%prog [options]") |
Definition at line 31 of file covarianceTool.py.
covarianceTool.passFilter = False |
Definition at line 604 of file covarianceTool.py.
covarianceTool.pathName = hdata.path().replace("/REF", "") |
Definition at line 704 of file covarianceTool.py.
dictionary covarianceTool.plotDictionary = {'error-analysis': {}, 'covariance-matrix': {}, 'correlation-matrix': {}, 'data-vs-mc': {}, 'chi2-contribs': {}, 'chi2-value': {}, 'covDetails': {}, 'summary-plot': {}, 'summary-table': {}} |
Definition at line 520 of file covarianceTool.py.
covarianceTool.plotparser = rivet.mkStdPlotParser([], []) |
Definition at line 536 of file covarianceTool.py.
covarianceTool.plots = st.makeSystematicsPlotsWithROOT(res, outdirplots, nominalName='Data', ratioZoom=None, regexFilter=".*%s.*" % hmc.name(), regexVeto=None) |
Definition at line 698 of file covarianceTool.py.
covarianceTool.prob |
Definition at line 678 of file covarianceTool.py.
dictionary covarianceTool.res = {'%s' % opts.data: '[Data]', '%s' % model: '[%s (# chi^2=%.2f/%d)]' % (mcName, chi2, ndf)} |
Definition at line 696 of file covarianceTool.py.
covarianceTool.Title |
Definition at line 540 of file covarianceTool.py.
covarianceTool.title |
Definition at line 542 of file covarianceTool.py.
covarianceTool.verbosity |
Definition at line 513 of file covarianceTool.py.
covarianceTool.XLabel |
Definition at line 538 of file covarianceTool.py.
covarianceTool.xLabel |
Definition at line 542 of file covarianceTool.py.