Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:25:30

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 
0004 # ---------- Tight Electron ID
0005 from RecoEgamma.ElectronIdentification.electronIdSequence_cff import eidTight
0006 JPTeidTight = eidTight.clone()
0007 
0008 
0009 # ---------- Module definition
0010 from RecoJets.JetPlusTracks.JetPlusTrackCorrections_cfi import *
0011 JetPlusTrackZSPCorJetAntiKtPu4 = cms.EDProducer(
0012     "JetPlusTrackProducerAA",
0013     cms.PSet(JPTZSPCorrectorAntiKt4),
0014     src = cms.InputTag("akPu4CaloJets"),
0015     coneSize = cms.double(0.4),
0016     tracks = cms.InputTag("hiGoodMergedTracks"),
0017     tagName = cms.vstring('ZSP_CMSSW332_Iterative_Cone_05_PU0'),
0018     tagNameOffset = cms.vstring(),
0019     PU = cms.int32(-1),
0020     FixedPU = cms.int32(0), 
0021     UseZSP = cms.bool(False),   
0022     srcPVs  = cms.InputTag('hiSelectedVertex'),
0023     alias = cms.untracked.string('JetPlusTrackZSPCorJetAntiKt4'),
0024     extrapolations = cms.InputTag("trackExtrapolator")
0025     )
0026 
0027 JetPlusTrackZSPCorJetAntiKtPu4.JetTracksAssociationAtVertex = "JPTAntiKtPu4JetTracksAssociatorAtVertex"
0028 JetPlusTrackZSPCorJetAntiKtPu4.JetTracksAssociationAtCaloFace = "JPTAntiKtPu4JetTracksAssociatorAtCaloFace"
0029 JetPlusTrackZSPCorJetAntiKtPu4.JetSplitMerge = 2
0030 JetPlusTrackZSPCorJetAntiKtPu4.UseTrackQuality = False
0031 JetPlusTrackZSPCorJetAntiKtPu4.UseMuons = False
0032 JetPlusTrackZSPCorJetAntiKtPu4.UseElectron = False
0033 JetPlusTrackZSPCorJetAntiKtPu4.EfficiencyMap = "CondFormats/JetMETObjects/data/CMSSW_538HI_TrackNonEff.txt"
0034 
0035 from RecoJets.JetAssociationProducers.trackExtrapolator_cfi import *
0036 JPTtrackExtrapolatorAA = trackExtrapolator.clone(
0037                          trackSrc = "hiGoodMergedTracks",
0038                          trackQuality = 'highPurity'
0039 )
0040 
0041 from RecoJets.JetAssociationProducers.ak4JTA_cff import *
0042 JPTAntiKtPu4JetTracksAssociatorAtVertex = ak4JetTracksAssociatorAtVertex.clone(
0043                                           useAssigned = True,
0044                                           pvSrc = "hiSelectedVertex",
0045                                           jets = "akPu4CaloJets",
0046                                           tracks = "hiGoodMergedTracks"
0047 )
0048 JPTAntiKtPu4JetTracksAssociatorAtCaloFace = ak4JetTracksAssociatorAtCaloFace.clone(
0049                                             jets = "akPu4CaloJets",
0050                                             tracks = "hiGoodMergedTracks",
0051                                             extrapolations = "JPTtrackExtrapolatorAA"
0052 )
0053 ak4JetExtenderJPTPAT = ak4JetExtender.clone(
0054                        jets = "akPu4CaloJets",
0055                        jet2TracksAtCALO = "JPTAntiKtPu4JetTracksAssociatorAtCaloFace",
0056                        jet2TracksAtVX = "JPTAntiKtPu4JetTracksAssociatorAtVertex"
0057 )
0058 
0059 # Task definition
0060 JetPlusTrackCorrectionsAntiKtPu4Task = cms.Task(
0061     JPTtrackExtrapolatorAA,
0062     JPTAntiKtPu4JetTracksAssociatorAtVertex,
0063     JPTAntiKtPu4JetTracksAssociatorAtCaloFace*
0064     JPTAntiKtPu4JetExtender,
0065     JetPlusTrackZSPCorJetAntiKtPu4
0066     )