Ejemplo n.º 1
0
#ak5CaloL1FastjetNoPU = ak5CaloL1Fastjet.clone(
#    srcRho = cms.InputTag('kt6CaloJetsNoPU', 'rho')
#    )

ak5PFL1FastjetNoPU = ak5PFL1Fastjet.clone(algorithm="AK5PFchs",
                                          srcRho=cms.InputTag(
                                              'kt6PFJetsNoPU', 'rho'))

# L2 (relative eta-conformity) Correction Services
ak5PFL2RelativeNoPU = ak5CaloL2Relative.clone(algorithm='AK5PFchs')

# L3 (absolute) Correction Services
ak5PFL3AbsoluteNoPU = ak5CaloL3Absolute.clone(algorithm='AK5PFchs')

# Multiple corrections
ak5PFL2L3NoPU = ak5PFL2L3.clone(correctors=('ak5PFL2RelativeNoPU',
                                            'ak5PFL3AbsoluteNoPU'))
ak5PFL1FastL2L3NoPU = ak5PFL1FastL2L3.clone(correctors=('ak5PFL1FastjetNoPU',
                                                        'ak5PFL2RelativeNoPU',
                                                        'ak5PFL3AbsoluteNoPU'))

from CommonTools.ParticleFlow.pfNoPileUp_cff import *
pfPileUp.checkClosestZVertex = cms.bool(False)
pfPileUp.Vertices = cms.InputTag('offlinePrimaryVertices')
pfPileUp.PFCandidates = cms.InputTag("particleFlow")

# Jets
from RecoJets.JetProducers.ak5PFJets_cfi import ak5PFJets
ak5PFJetsNoPU = ak5PFJets.clone(src=cms.InputTag("pfNoPileUp"),
                                doAreaFastjet=cms.bool(True))

ak7PFJetsNoPU = ak5PFJetsNoPU.clone(rParam=0.7)
Ejemplo n.º 2
0
import FWCore.ParameterSet.Config as cms

from DQMOffline.RecoB.bTagAnalysisData_cfi import *
calobTagAnalysis = bTagAnalysis.clone()
bTagPlots = cms.Sequence(calobTagAnalysis)
calobTagAnalysis.finalizePlots = False
calobTagAnalysis.finalizeOnly = False


#Jet collection
JetCut=cms.string("neutralHadronEnergyFraction < 0.99 && neutralEmEnergyFraction < 0.99 && nConstituents > 1 && chargedHadronEnergyFraction > 0.0 && chargedMultiplicity > 0.0 && chargedEmEnergyFraction < 0.99")

from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak5PFL2L3,ak5PFL2Relative,ak5PFL3Absolute
newAk5PFL2L3 = ak5PFL2L3.clone()

from JetMETCorrections.Configuration.DefaultJEC_cff import ak5PFJetsL2L3
ak5PFJetsJEC = ak5PFJetsL2L3.clone(
    correctors = ['newAk5PFL2L3']
    )

PFJetsFilter = cms.EDFilter("PFJetSelector",
                            src = cms.InputTag("ak5PFJetsJEC"),
                            cut = JetCut,
                            filter = cms.bool(False)
                            )

jetID = cms.InputTag("PFJetsFilter")

#JTA
from RecoJets.JetAssociationProducers.ak5JTA_cff import *
pfAk5JetTracksAssociatorAtVertex = ak5JetTracksAssociatorAtVertex.clone(jets = jetID)
Ejemplo n.º 3
0
#    srcRho = cms.InputTag('kt6CaloJetsNoPU', 'rho')
#    )

ak5PFL1FastjetNoPU = ak5PFL1Fastjet.clone(
    algorithm = "AK5PFchs",
    srcRho = cms.InputTag('kt6PFJetsNoPU', 'rho')
    )

# L2 (relative eta-conformity) Correction Services
ak5PFL2RelativeNoPU = ak5CaloL2Relative.clone( algorithm = 'AK5PFchs' )

# L3 (absolute) Correction Services
ak5PFL3AbsoluteNoPU = ak5CaloL3Absolute.clone( algorithm = 'AK5PFchs' )

# Multiple corrections
ak5PFL2L3NoPU = ak5PFL2L3.clone( correctors = ('ak5PFL2RelativeNoPU','ak5PFL3AbsoluteNoPU') )
ak5PFL1FastL2L3NoPU = ak5PFL1FastL2L3.clone( correctors = ('ak5PFL1FastjetNoPU','ak5PFL2RelativeNoPU','ak5PFL3AbsoluteNoPU') )

from CommonTools.ParticleFlow.pfNoPileUp_cff import *
pfPileUp.checkClosestZVertex = cms.bool(False)
pfPileUp.Vertices = cms.InputTag('offlinePrimaryVertices')
pfPileUp.PFCandidates = cms.InputTag("particleFlow")

# Jets
from RecoJets.JetProducers.ak5PFJets_cfi import ak5PFJets
ak5PFJetsNoPU = ak5PFJets.clone(
    src = cms.InputTag("pfNoPileUp"),
    doAreaFastjet = cms.bool(True)
    )

ak7PFJetsNoPU = ak5PFJetsNoPU.clone( rParam = 0.7 )
Ejemplo n.º 4
0
import FWCore.ParameterSet.Config as cms

from DQMOffline.RecoB.bTagAnalysisData_cfi import *
calobTagAnalysis = bTagAnalysis.clone()
bTagPlots = cms.Sequence(calobTagAnalysis)
calobTagAnalysis.finalizePlots = False
calobTagAnalysis.finalizeOnly = False

#Jet collection
JetCut = cms.string(
    "neutralHadronEnergyFraction < 0.99 && neutralEmEnergyFraction < 0.99 && nConstituents > 1 && chargedHadronEnergyFraction > 0.0 && chargedMultiplicity > 0.0 && chargedEmEnergyFraction < 0.99"
)

from JetMETCorrections.Configuration.JetCorrectionServices_cff import ak5PFL2L3, ak5PFL2Relative, ak5PFL3Absolute
newAk5PFL2L3 = ak5PFL2L3.clone()

from JetMETCorrections.Configuration.DefaultJEC_cff import ak5PFJetsL2L3
ak5PFJetsJEC = ak5PFJetsL2L3.clone(correctors=['newAk5PFL2L3'])

PFJetsFilter = cms.EDFilter("PFJetSelector",
                            src=cms.InputTag("ak5PFJetsJEC"),
                            cut=JetCut,
                            filter=cms.bool(False))

jetID = cms.InputTag("PFJetsFilter")

#JTA
from RecoJets.JetAssociationProducers.ak5JTA_cff import *
pfAk5JetTracksAssociatorAtVertex = ak5JetTracksAssociatorAtVertex.clone(
    jets=jetID)