#
# Generate trees from QCD and a child node with event counts
#
#qcdTreeNodes = {}
#eventCountNodes = {}

ttbarTreeMiter  = Miter()
qcdTreeMiter    = Miter()
eventCountMiter = Miter()

for dataset in qcd_datasets:
    treeNode,produceTree = genTree( g=g,input = nullInput,
                                nodeName = "tree-%s" % dataset[1],
                                edgeName = "generateTree-%s" % dataset[1],
                                crabCfg  = "/uscms_data/d2/meloam/s8workflow/crab_mc.cfg", 
                                cmsswCfg = "/uscms_data/d2/meloam/s8workflow/cmssw_mc.py",
                                dataset  = dataset[0],
                                overridepath = dataset[0],
                                overridefiles= "s8_trees.txt")


    #qcdTreeNodes[ dataset[1] ] = treeNode
    qcdTreeMiter.add( treeNode, dataset = dataset[1] )

for dataset in ttbar_datasets:
    treeNode,produceTree = genTree( g=g,input = nullInput,
                                nodeName = "tree-%s" % dataset[1],
                                edgeName = "generateTree-%s" % dataset[1],
                                crabCfg  = "/uscms_data/d2/meloam/s8workflow/crab_mc.cfg", 
                                cmsswCfg = "/uscms_data/d2/meloam/s8workflow/cmssw_mc.py",
                                dataset  = dataset[0],
Esempio n. 2
0
#
# Generate trees from QCD and a child node with event counts
#
# qcdTreeNodes = {}
# eventCountNodes = {}

qcdTreeMiter = Miter()
eventCountMiter = Miter()

for dataset in qcd_datasets:
    treeNode, produceTree = genTree(
        g=g,
        input=nullInput,
        nodeName="tree-%s" % dataset[1],
        edgeName="generateTree-%s" % dataset[1],
        crabCfg="/uscms_data/d2/meloam/s8workflow/crab_mc.cfg",
        cmsswCfg="/uscms_data/d2/meloam/s8workflow/cmssw_mc.py",
        dataset=dataset[0],
    )

    # qcdTreeNodes[ dataset[1] ] = treeNode
    qcdTreeMiter.add(treeNode, dataset=dataset[1])

    #
    # we've generated the trees, add a step to extract the luminosities
    #
    eventNode = Node(name="eventCounts-%s" % (dataset[1]))
    # will return the crab workdir
    crabWorkDir = BindCrabWorkDir(produceTree)
    # will return the following command line substituted in with the late-bound values
Esempio n. 3
0


#
# Generate trees from QCD and a child node with event counts
#
#qcdTreeNodes = {}
#eventCountNodes = {}

qcdTreeMiter    = Miter()
eventCountMiter = Miter()

for dataset in qcd_datasets:
    treeNode,produceTree = genTree( g=g,input = nullInput,
                                nodeName = "tree-%s" % dataset[1],
                                edgeName = "generateTree-%s" % dataset[1],
                                crabCfg  = "/uscms_data/d2/meloam/s8workflow/crab_mc.cfg", 
                                cmsswCfg = "/uscms_data/d2/meloam/s8workflow/cmssw_mc.py",
                                dataset  = dataset[0] )

    #qcdTreeNodes[ dataset[1] ] = treeNode
    qcdTreeMiter.add( treeNode, dataset = dataset[1] )

    #
    # we've generated the trees, add a step to extract the luminosities
    #
    eventNode = Node( name = "eventCounts-%s" % (dataset[1]) )
    # will return the crab workdir
    crabWorkDir  = BindCrabWorkDir( produceTree )
    # will return the following command line substituted in with the late-bound values
    commandLine  = BindSubstitutes( 
        "crab -report -continue %s | grep 'Total Events read: ' | awk '{print $4;}' > events.txt"
Esempio n. 4
0
#
# Generate trees from QCD and a child node with event counts
#
#qcdTreeNodes = {}
#eventCountNodes = {}

qcdTreeMiter    = Miter()
eventCountMiter = Miter()

for dataset in qcd_datasets:
    treeNode,produceTree = genTree( g=g,input = nullInput,
                                nodeName = "tree-%s" % dataset[1],
                                edgeName = "generateTree-%s" % dataset[1],
                                crabCfg  = "/uscms_data/d2/meloam/vandy-submit/crab_mc.cfg", 
                                cmsswCfg = "/uscms_data/d2/meloam/vandy-submit/cmssw_mc.py",
                                dataset  = dataset[0],
                                crabReplacements  = [ 
                                      [ "REMOTEDIR", "user_remote_dir=39x/%s" %
                                        (dataset[1],) ]
                                    ] 
                                )


    #qcdTreeNodes[ dataset[1] ] = treeNode
    qcdTreeMiter.add( treeNode, dataset = dataset[1] )

    #
    # we've generated the trees, add a step to extract the luminosities
    #
    eventNode = Node( name = "eventCounts-%s" % (dataset[1]) )
    # will return the crab workdir