algorithm=cms.string('AK4PFchs'),
                                          level=cms.string('L2L3Residual'))

#Corrections applied to miniaod slimmedJets
pfJECS = cms.PSet(L1FastJet=cms.string("ak4PFCHSL1Fastjet"),
                  L2Relative=cms.string("ak4PFCHSL2Relative"),
                  L3Absolute=cms.string("ak4PFCHSL3Absolute"))
if isData: pfJECS.append(L2L3Residual=cms.string("ak4PFCHSResidual"))

# b-tagging
process.load("RecoJets.JetAssociationProducers.ak4JTA_cff")
from RecoJets.JetAssociationProducers.ak4JTA_cff import ak4JetTracksAssociatorAtVertex
process.load("RecoBTag.Configuration.RecoBTag_cff")
import RecoBTag.Configuration.RecoBTag_cff as btag
process.jetTracksAssociatorAtVertexAK4PF = ak4JetTracksAssociatorAtVertex.clone(
    jets=cms.InputTag("ak4PFJetsCHS"),
    tracks=cms.InputTag("unpackedTracksAndVertices"),
    pvSrc=cms.InputTag("unpackedTracksAndVertices"))

process.impactParameterTagInfosAK4PF = btag.impactParameterTagInfos.clone(
    jetTracks=cms.InputTag('jetTracksAssociatorAtVertexAK4PF'),
    primaryVertex=cms.InputTag("unpackedTracksAndVertices"))

process.secondaryVertexTagInfosAK4PF = btag.secondaryVertexTagInfos.clone(
    trackIPTagInfos=cms.InputTag('impactParameterTagInfosAK4PF'))
process.simpleSecondaryVertexHighEffBJetTagsAK4PF = btag.simpleSecondaryVertexHighEffBJetTags.clone(
    tagInfos=cms.VInputTag('secondaryVertexTagInfosAK4PF'))
process.simpleSecondaryVertexHighPurBJetTagsAK4PF = btag.simpleSecondaryVertexHighPurBJetTags.clone(
    tagInfos=cms.VInputTag('secondaryVertexTagInfosAK4PF'))
process.combinedSecondaryVertexBJetTagsAK4PF = btag.combinedSecondaryVertexBJetTags.clone(
    tagInfos=cms.VInputTag('impactParameterTagInfosAK4PF',
                           'secondaryVertexTagInfosAK4PF'))
예제 #2
0
pfTausPtrsEI = pfTausPtrs.clone(src=cms.InputTag("pfTausEI") )
pfNoTauEI = pfNoTau.clone(
    topCollection = cms.InputTag('pfTausPtrsEI'),
    bottomCollection = cms.InputTag('pfJetsPtrsEI')
    )

pfTauEISequence = cms.Sequence(
    pfTausPreSequence+
    pfTausBaseSequence+
    pfTausEI+
    pfTausPtrsEI
    )

#### B-tagging ####
pfJetTrackAssociatorEI = ak4JetTracksAssociatorAtVertex.clone (
    src = cms.InputTag("pfJetsEI")
    )
impactParameterTagInfosEI = impactParameterTagInfos.clone(
    jetTracks = cms.InputTag( 'pfJetTrackAssociatorEI' )
    )
secondaryVertexTagInfosEI = secondaryVertexTagInfos.clone(
    trackIPTagInfos = cms.InputTag( 'impactParameterTagInfosEI' )
    )
combinedSecondaryVertexBJetTagsEI = combinedSecondaryVertexBJetTags.clone(
    tagInfos = cms.VInputTag(cms.InputTag("impactParameterTagInfosEI"),
                             cms.InputTag("secondaryVertexTagInfosEI"))
    )



#### MET ####
예제 #3
0
pfJetSequenceEI = cms.Sequence(pfJetsEI + pfJetsPtrsEI)

pfNoJetEI = pfNoJet.clone(topCollection='pfJetsPtrsEI',
                          bottomCollection='pfNoElectronJME')

#### Taus ####
pfTausEI = pfTaus.clone()
pfTausPtrsEI = pfTausPtrs.clone(src=cms.InputTag("pfTausEI"))
pfNoTauEI = pfNoTau.clone(topCollection=cms.InputTag('pfTausPtrsEI'),
                          bottomCollection=cms.InputTag('pfJetsPtrsEI'))

pfTauEISequence = cms.Sequence(pfTausPreSequence + pfTausBaseSequence +
                               pfTausEI + pfTausPtrsEI)

#### B-tagging ####
pfJetTrackAssociatorEI = ak4JetTracksAssociatorAtVertex.clone(
    src=cms.InputTag("pfJetsEI"))
impactParameterTagInfosEI = impactParameterTagInfos.clone(
    jetTracks=cms.InputTag('pfJetTrackAssociatorEI'))
secondaryVertexTagInfosEI = secondaryVertexTagInfos.clone(
    trackIPTagInfos=cms.InputTag('impactParameterTagInfosEI'))
combinedSecondaryVertexBJetTagsEI = combinedSecondaryVertexBJetTags.clone(
    tagInfos=cms.VInputTag(cms.InputTag("impactParameterTagInfosEI"),
                           cms.InputTag("secondaryVertexTagInfosEI")))

#### MET ####
pfMetEI = pfMET.clone(jets=cms.InputTag("pfJetsEI"))

#EITopPAG = cms.Sequence(
EIsequence = cms.Sequence(pfPileUpEI + pfPileUpJMEEI + pfNoPileUpEI +
                          pfNoPileUpJMEEI + pfAllMuonsEI +
                          pfMuonsFromVertexEI + pfIsolatedMuonsEI + pfNoMuon +
        L2Relative=cms.string("ak4PFCHSL2Relative"),
        L3Absolute=cms.string("ak4PFCHSL3Absolute"),
        L2L3Residual=cms.string("ak4PFCHSResidual"),
    )

# b-tagging
process.load("RecoJets.JetAssociationProducers.ak4JTA_cff")
from RecoJets.JetAssociationProducers.ak4JTA_cff import ak4JetTracksAssociatorAtVertex

process.load("RecoBTag.Configuration.RecoBTag_cff")
import RecoBTag.Configuration.RecoBTag_cff as btag

# chs
process.jetTracksAssociatorAtVertexAK4PFCHS = ak4JetTracksAssociatorAtVertex.clone(
    jets=cms.InputTag("ak4PFJetsCHS"),
    tracks=cms.InputTag("unpackedTracksAndVertices"),
    pvSrc=cms.InputTag("unpackedTracksAndVertices"),
)

process.impactParameterTagInfosAK4PFCHS = btag.pfImpactParameterTagInfos.clone(
    # jetTracks = cms.InputTag('jetTracksAssociatorAtVertexAK4PF'),
    computeGhostTrack=cms.bool(False),
    candidates=cms.InputTag("packedPFCandidates"),
    primaryVertex=cms.InputTag("unpackedTracksAndVertices"),
)

process.secondaryVertexTagInfosAK4PFCHS = btag.pfSecondaryVertexTagInfos.clone(
    trackIPTagInfos=cms.InputTag("impactParameterTagInfosAK4PFCHS")
)
process.simpleSecondaryVertexHighEffBJetTagsAK4PFCHS = btag.pfSimpleSecondaryVertexHighEffBJetTags.clone(
    tagInfos=cms.VInputTag("secondaryVertexTagInfosAK4PFCHS")