1 import FWCore.ParameterSet.Config
as cms
6 from PhysicsTools.SelectorUtils.centralIDRegistry
import central_id_registry
16 process.load(
"CondCore.CondDB.CondDB_cfi")
19 process.load(
'JetMETCorrections.Configuration.JetCorrectors_cff')
21 process.load(
'L1Trigger.L1TNtuples.l1JetRecoTree_cfi')
25 labelName =
"CorrectedPuppiJets",
26 jetSource = process.l1JetRecoTree.puppiJetToken,
27 jetCorrections = (
'AK4PFPuppi', [
'L1FastJet',
'L2Relative',
'L3Absolute',
'L2L3Residual'],
'None'),
28 pfCandidates = cms.InputTag(
"particleFlow"),
29 algo=
'AK', rParam = 0.4,
32 delattr(process,
'patJetGenJetMatchCorrectedPuppiJets')
33 delattr(process,
'patJetPartonMatchCorrectedPuppiJets')
40 process.load(
'CommonTools/RecoAlgos/HBHENoiseFilterResultProducer_cfi')
43 process.load(
"JetMETCorrections.Type1MET.correctionTermsPfMetType1Type2_cff")
44 process.load(
"JetMETCorrections.Type1MET.correctedMet_cff")
47 process.load(
'RecoMET.METFilters.BadPFMuonFilter_cfi')
48 process.BadPFMuonFilter.muons = cms.InputTag(
"muons")
49 process.BadPFMuonFilter.PFCandidates = cms.InputTag(
"particleFlow")
52 process.load(
'RecoMET.METFilters.BadChargedCandidateFilter_cfi')
53 process.BadChargedCandidateFilter.muons = cms.InputTag(
"muons")
54 process.BadChargedCandidateFilter.PFCandidates = cms.InputTag(
"particleFlow")
61 dataFormat = DataFormat.AOD
63 process.load(
"RecoEgamma.ElectronIdentification.egmGsfElectronIDs_cfi")
64 process.egmGsfElectronIDSequence = cms.Sequence(process.egmGsfElectronIDs)
66 idmod =
'RecoEgamma.ElectronIdentification.Identification.cutBasedElectronID_Spring15_25ns_V1_cff' 70 process.load(
"RecoEgamma.PhotonIdentification.egmPhotonIDs_cfi")
71 process.load(
"RecoEgamma.PhotonIdentification.PhotonMVAValueMapProducer_cfi")
72 process.egmPhotonIDs.physicsObjectSrc = cms.InputTag(
"photons")
73 process.photonMVAValueMapProducer.src = cms.InputTag(
"photons")
74 process.egmPhotonIDSequence = cms.Sequence(process.photonMVAValueMapProducer*process.egmPhotonIDs)
75 idmod_photon =
'RecoEgamma.PhotonIdentification.Identification.mvaPhotonID_Winter22_122X_V1_cff' 78 process.l1CustomReco = cms.Path(
79 process.ak4PFCHSL1FastL2L3ResidualCorrectorChain
80 +process.ak4CaloL1FastL2L3ResidualCorrectorChain
81 +process.HBHENoiseFilterResultProducer
82 +process.correctionTermsPfMetType1Type2
84 +process.egmGsfElectronIDSequence
85 +process.egmPhotonIDSequence
86 +process.BadPFMuonFilter
87 +process.BadChargedCandidateFilter
90 process.schedule.append(process.l1CustomReco)
97 process.load(
"CondCore.CondDB.CondDB_cfi")
99 process.jec = cms.ESSource(
101 DBParameters = cms.PSet(
102 messageLevel = cms.untracked.int32(0)
104 timetype = cms.string(
'runnumber'),
107 record = cms.string(
'JetCorrectionsRecord'),
109 tag = cms.string(
'JetCorrectorParametersCollection_Summer15_25nsV6_DATA_AK4PFchs'),
112 label = cms.untracked.string(
'AK4PFCHS')
115 connect = cms.string(
'sqlite:Summer15_25nsV6_DATA.db')
120 process.es_prefer_jec = cms.ESPrefer(
'PoolDBESSource',
'jec')
def L1NtupleCustomReco(process)
def getJECFromSQLite(process)