Esempio n. 1
0
        print "Signal MC central value, so dumping PDF weights"
        dumpPdfWeights = True
        nPdfWeights = 60
        nAlphaSWeights = 2
        nScaleWeights = 9
    else:
        print "Data, background MC, or non-central value, or no systematics: no PDF weights"
        dumpPdfWeights = False
        nPdfWeights = -1
        nAlphaSWeights = -1
        nScaleWeights = -1
    if not customize.processId == "Data":
        fc.addGenOnlyAnalysis(process,
                              customize.processId,
                              customize.acceptance,
                              tagList,
                              systlabels,
                              pdfWeights=(dumpPdfWeights, nPdfWeights,
                                          nAlphaSWeights, nScaleWeights))

if (not hasattr(process, "options")): process.options = cms.untracked.PSet()
process.options.allowUnscheduled = cms.untracked.bool(True)

print "--- Dumping all modules: ---"
mns = process.p.moduleNames()
for mn in mns:
    module = getattr(process, mn)
    print str(module)

print "--- Dumping modules that take diphotons as input: ---"
mns = process.p.moduleNames()
Esempio n. 2
0
if customize.doFiducial:
    if ( customize.doPdfWeights or customize.doSystematics ) and ( (customize.datasetName() and customize.datasetName().count("HToGG")) 
                                                                   or customize.processId.count("h_") or customize.processId.count("vbf_") ) and (systlabel ==  ""):
          print "Signal MC central value, so dumping PDF weights"
          dumpPdfWeights = True
          nPdfWeights = 60
          nAlphaSWeights = 2
          nScaleWeights = 9
    else:
          print "Data, background MC, or non-central value, or no systematics: no PDF weights"
          dumpPdfWeights = False
          nPdfWeights = -1
          nAlphaSWeights = -1
          nScaleWeights = -1
    if not customize.processId == "Data":
        fc.addGenOnlyAnalysis(process,customize.processId,customize.acceptance,tagList,systlabels,pdfWeights=(dumpPdfWeights,nPdfWeights,nAlphaSWeights,nScaleWeights))

if( not hasattr(process,"options") ): process.options = cms.untracked.PSet()
process.options.allowUnscheduled = cms.untracked.bool(True)

print "--- Dumping modules that take diphotons as input: ---"
mns = process.p.moduleNames()
for mn in mns:
    module = getattr(process,mn)
    if hasattr(module,"src") and type(module.src) == type(cms.InputTag("")) and module.src.value().count("DiPhoton"):
        print str(module),module.src
    elif hasattr(module,"DiPhotonTag"):
        print str(module),module.DiPhotonTag
print
printSystematicInfo(process)
Esempio n. 3
0
            or customize.processId.count("h_")
            or customize.processId.count("vbf_")) and (systlabel == ""):
        print "Signal MC central value, so dumping PDF weights"
        dumpPdfWeights = True
        nPdfWeights = 60
        nAlphaSWeights = 2
        nScaleWeights = 9
    else:
        print "Data, background MC, or non-central value, or no systematics: no PDF weights"
        dumpPdfWeights = False
        nPdfWeights = -1
        nAlphaSWeights = -1
        nScaleWeights = -1
    if not customize.processId == "Data":
        #fc.addGenOnlyAnalysis(process,customize.processId,customize.acceptance,tagList,systlabels,pdfWeights=(dumpPdfWeights,nPdfWeights,nAlphaSWeights,nScaleWeights))
        fc.addGenOnlyAnalysis(process, customize.processId,
                              customize.acceptance, tagList, systlabels)

if (not hasattr(process, "options")): process.options = cms.untracked.PSet()
process.options.allowUnscheduled = cms.untracked.bool(True)

print "--- Dumping modules that take diphotons as input: ---"
mns = process.p.moduleNames()
for mn in mns:
    module = getattr(process, mn)
    if hasattr(module, "src") and type(module.src) == type(
            cms.InputTag("")) and module.src.value().count("DiPhoton"):
        print str(module), module.src
    elif hasattr(module, "DiPhotonTag"):
        print str(module), module.DiPhotonTag
print
printSystematicInfo(process)