Пример #1
0
process.tagsDumper.className = "DiPhotonTagDumper"
process.tagsDumper.src = "flashggSystTagMerger"
#process.tagsDumper.src = "flashggTagSystematics"
process.tagsDumper.processId = "test"
process.tagsDumper.dumpTrees = customize.dumpTrees
process.tagsDumper.dumpWorkspace = customize.dumpWorkspace
process.tagsDumper.dumpHistos = False
process.tagsDumper.quietRooFit = True
process.tagsDumper.nameTemplate = cms.untracked.string("$PROCESS_$SQRTS_$CLASSNAME_$SUBCAT_$LABEL")

if(customize.doFiducial):
#    if customize.processId == "Data":
#        fc.addRecoGlobalVariables(process, process.tagsDumper)
#    else:
    fc.addObservables(process, process.tagsDumper, customize.processId )

#tagList=[
#["UntaggedTag",4],
#["VBFTag",2],
#["VHTightTag",0],
#["VHLooseTag",0],
#["VHEtTag",0],
#["VHHadronicTag",0],
#["TTHHadronicTag",0],
##["TTHLeptonicTag",0]
#]


if customize.doFiducial:
    tagList=[["SigmaMpTTag",3]]
Пример #2
0
process.tagsDumper.splitPdfByStage0Cat = cms.untracked.bool(customize.doHTXS)

if customize.options.WeightName:
    lheProduct = customize.dataset[1]["LHESourceName"].split("_")
    #print lheProduct
    process.tagsDumper.LHEEventProduct = cms.untracked.InputTag(
        str(lheProduct[1]), str(lheProduct[2]), str(lheProduct[3]))
    #print process.tagsDumper.LHEEventProduct
    process.tagsDumper.LHEWeightName = cms.untracked.string(
        customize.options.WeightName)

if (customize.doFiducial):
    #    if customize.processId == "Data":
    #        fc.addRecoGlobalVariables(process, process.tagsDumper)
    #    else:
    fc.addObservables(process, process.tagsDumper, customize.processId)

if customize.processId == "tHq":
    import flashgg.Taggers.THQLeptonicTagVariables as var
    variablesToUse = minimalVariables + var.vtx_variables + var.dipho_variables

#tagList=[
#["UntaggedTag",4],
#["VBFTag",2],
#["VHTightTag",0],
#["VHLooseTag",0],
#["VHEtTag",0],
#["VHHadronicTag",0],
#["TTHHadronicTag",0],
##["TTHLeptonicTag",0]
#]