コード例 #1
0
ファイル: 2415.py プロジェクト: PerilousApricot/ScriptGraph
                    input_files = dataset[0] )
        preweightMiter.add( currNode, bin = bin[0], dataset=dataset[1]['dataset'] )

#
# Merge the pthats
#

mcForWeights = {}
preweightMergeMiter = Miter()
mcForPlots = Miter()
mcForPlots_rangea = Miter()
mcForPlots_rangeb = Miter()
for currmerge in preweightMiter.iterGrouped( 'bin' ):
    step_postfix = "-%s-preweight" % ( currmerge.vals[0][1]['bin'], )
    mergeNode = merge_with_root_qcd_helper( g, "root-qcd" + step_postfix, step_postfix,
                    inputNodes  = currmerge.getValues(), pu = True
                )
    preweightMergeMiter.add( mergeNode,
                        bin     = currmerge.vals[0][1]['bin'] )
    singleMonitorMiter.add( mergeNode,\
                                    bin     = currmerge.vals[0][1]['bin'],
                                    njetpt  = True,
                                    njeteta = True,
                                    privert = True,
                                    type    = "skipless_root_qcd" )
    mcForWeights[ currmerge.vals[0][1]['bin'] ] = mergeNode
#    mcForPlots.add( mergeNode, bin = currmerge.vals[0][1]['bin'] )
#
# Calculate the weights (on a bin-only basis)
#
weightMiter = Miter()
コード例 #2
0
                fileKey=dataset[1]["dataset"],
                trigger_name="HLT_BTagMu_DiJet10U",
                step_postfix=step_postfix,
                muon_pt="6..",
                input_files=dataset[0],
            )
            dijet10QCDMiter.add(currNode, bin=bin[0], dataset=dataset[1]["dataset"], opoint=opoint)
singleMonitorMiter = Miter()
rootQCDMiter = Miter()
# merge the dijet10 QCD into one guy
for currmerge in dijet10QCDMiter.iterGrouped("bin", "opoint"):
    step_postfix = "-%s-%s" % (currmerge.vals[0][1]["bin"], currmerge.vals[0][1]["opoint"])
    mergeNode = merge_with_root_qcd_helper(
        g,
        "root-qcd" + step_postfix,
        step_postfix,
        inputNodes=currmerge.getValues(),
        triggerName="hltjet10u",
        lumiMiter=exports["luminosityMiter"],
    )
    rootQCDMiter.add(mergeNode, bin=currmerge.vals[0][1]["bin"], opoint=currmerge.vals[0][1]["opoint"])
    singleMonitorMiter.add(
        mergeNode,
        trigger="hltdijet10u",
        bin=currmerge.vals[0][1]["bin"],
        opoint=currmerge.vals[0][1]["opoint"],
        njetpt=True,
        njeteta=True,
        privert=True,
        type="skipless_root_qcd",
    )
skiplessDataMiter = Miter()