Ejemplo n.º 1
0
    process.pileupWeight = cms.EDProducer(
        "HPlusVertexWeightProducer",
        alias=cms.string("pileupWeight"),
    )
    puweight = "Run2011A"
    if len(options.puWeightEra) > 0:
        puweight = options.puWeightEra
    param.setPileupWeightFor2011(dataVersion, era=puweight)
    insertPSetContentsTo(param.vertexWeight, process.pileupWeight)

    # Vertex weighting
    process.vertexWeight = cms.EDProducer(
        "HPlusVertexWeightProducer",
        alias=cms.string("vertexWeight"),
    )
    param.setVertexWeightFor2011()
    insertPSetContentsTo(param.vertexWeight, process.vertexWeight)

    process.commonSequence *= (process.pileupWeight * process.vertexWeight)

# Add configuration information to histograms.root
process.infoPath = addConfigInfo(process, options, dataVersion)

################################################################################

process.firstPrimaryVertex = cms.EDProducer(
    "HPlusFirstVertexSelector", src=cms.InputTag("offlinePrimaryVertices"))
process.commonSequence *= process.firstPrimaryVertex

import HiggsAnalysis.HeavyChHiggsToTauNu.tauEmbedding.customisations as customisations
muons = customisations.addMuonIsolationEmbedding(process,
Ejemplo n.º 2
0
    # Pileup weighting
    process.pileupWeight = cms.EDProducer("HPlusVertexWeightProducer",
        alias = cms.string("pileupWeight"),
    )
    puweight = "Run2011A"
    if len(options.puWeightEra) > 0:
        puweight = options.puWeightEra
    param.setPileupWeightFor2011(dataVersion, era=puweight)
    insertPSetContentsTo(param.vertexWeight, process.pileupWeight)

    # Vertex weighting
    process.vertexWeight = cms.EDProducer("HPlusVertexWeightProducer",
        alias = cms.string("vertexWeight"),
    )
    param.setVertexWeightFor2011()
    insertPSetContentsTo(param.vertexWeight, process.vertexWeight)

    process.commonSequence *= (process.pileupWeight*process.vertexWeight)

# Add configuration information to histograms.root
process.infoPath = addConfigInfo(process, options, dataVersion)

################################################################################

process.firstPrimaryVertex = cms.EDProducer("HPlusFirstVertexSelector",
    src = cms.InputTag("offlinePrimaryVertices")
)
process.commonSequence *= process.firstPrimaryVertex

import HiggsAnalysis.HeavyChHiggsToTauNu.tauEmbedding.customisations as customisations