from PhysicsTools.PatAlgos.mcMatchLayer0.jetMatch_cfi import * patJetPartonMatch.src = jetSource patJetGenJetMatch.src = jetSource patJetGenJetMatch.matched = 'ak5GenJetsNoNu' from PhysicsTools.PatAlgos.mcMatchLayer0.jetFlavourId_cff import * patJetPartonAssociation.jets = jetSource jetsPtGt1Cut = '(neutralHadronEnergy())/(correctedJet(0).pt()/pt()*energy()) < 0.99 && (neutralEmEnergy()/(correctedJet(0).pt()/pt()*energy())) < 0.99 && (nConstituents()) > 1 && ((abs(eta()) < 2.4 && chargedHadronEnergy()/(correctedJet(0).pt()/pt()*energy()) > 0 && chargedEmEnergy() /(correctedJet(0).pt()/pt()*energy()) < 0.99 && chargedMultiplicity() > 0) || abs(eta()) > 2.4) ' if not isNewerThan('CMSSW_5_2_0'): # addtl cut needed due to different MVA MET training in 44X jetsPtGt1Cut = ' && '.join([jetsPtGt1Cut,'pt()>1']) jetsPtGt1 = cmgCandSel.clone( src = 'patJets', cut = jetsPtGt1Cut ) from CMGTools.Common.miscProducers.collectionSize.candidateSize_cfi import candidateSize nJetsPtGt1 = candidateSize.clone( src = 'jetsPtGt1' ) # jet extender patJetsWithVar = cms.EDProducer('JetExtendedProducer', jets = cms.InputTag('selectedPatJets'), vertices = cms.InputTag('goodOfflinePrimaryVertices'), #debug = cms.untracked.bool(True), payload = cms.string('AK5PF') ) outPFCand = cms.EDProducer('VbfHbbPFCandOutOfJets', jets = cms.InputTag('patJetsWithVar'), vtx = cms.InputTag('goodOfflinePrimaryVertices'), pfcandidates = cms.InputTag('particleFlow'), btagger = cms.string('combinedSecondaryVertexBJetTags') )
import FWCore.ParameterSet.Config as cms from CMGTools.Common.miscProducers.collectionSize.vertexSize_cfi import vertexSize from CMGTools.Common.miscProducers.collectionSize.candidateSize_cfi import candidateSize muonSelSize = candidateSize.clone(src='cmgMuonSel') electronSelSize = candidateSize.clone(src='cmgElectronSel') tauSelSize = candidateSize.clone(src='cmgTauSel') pfJetSelSize = candidateSize.clone(src='cmgPFJetSel') collectionSizeSequence = cms.Sequence(vertexSize + muonSelSize + electronSelSize + tauSelSize + pfJetSelSize)
from PhysicsTools.PatAlgos.mcMatchLayer0.jetMatch_cfi import * patJetPartonMatch.src = jetSource patJetGenJetMatch.src = jetSource patJetGenJetMatch.matched = 'ak5GenJetsNoNu' from PhysicsTools.PatAlgos.mcMatchLayer0.jetFlavourId_cff import * patJetPartonAssociation.jets = jetSource jetsPtGt1Cut = '(neutralHadronEnergy())/(correctedJet(0).pt()/pt()*energy()) < 0.99 && (neutralEmEnergy()/(correctedJet(0).pt()/pt()*energy())) < 0.99 && (nConstituents()) > 1 && ((abs(eta()) < 2.4 && chargedHadronEnergy()/(correctedJet(0).pt()/pt()*energy()) > 0 && chargedEmEnergy() /(correctedJet(0).pt()/pt()*energy()) < 0.99 && chargedMultiplicity() > 0) || abs(eta()) > 2.4) ' if not isNewerThan('CMSSW_5_2_0'): # addtl cut needed due to different MVA MET training in 44X jetsPtGt1Cut = ' && '.join([jetsPtGt1Cut,'pt()>1']) jetsPtGt1 = cmgCandSel.clone( src = 'patJets', cut = jetsPtGt1Cut ) from CMGTools.Common.miscProducers.collectionSize.candidateSize_cfi import candidateSize nJetsPtGt1 = candidateSize.clone( src = 'jetsPtGt1' ) # QG Tagger QGTagger = cms.EDProducer('QGTagger', srcJets = cms.InputTag('selectedPatJets'), isPatJet = cms.untracked.bool(True), useCHS = cms.untracked.bool(False), srcRho = cms.InputTag('kt6PFJets','rho'), srcRhoIso = cms.InputTag('kt6PFJetsIsoQG','rho'), ) # jet extender patJetsWithVar = cms.EDProducer('JetExtendedProducer', jets = cms.InputTag('selectedPatJets'), vertices = cms.InputTag('goodOfflinePrimaryVertices'), #debug = cms.untracked.bool(True),
import FWCore.ParameterSet.Config as cms from CMGTools.Common.miscProducers.collectionSize.vertexSize_cfi import vertexSize from CMGTools.Common.miscProducers.collectionSize.candidateSize_cfi import candidateSize muonSelSize = candidateSize.clone( src='cmgMuonSel') electronSelSize = candidateSize.clone( src='cmgElectronSel') tauSelSize = candidateSize.clone( src='cmgTauSel') pfJetSelSize = candidateSize.clone( src='cmgPFJetSel') collectionSizeSequence = cms.Sequence( vertexSize + muonSelSize + electronSelSize + tauSelSize + pfJetSelSize )