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' 72 process.l1CustomReco = cms.Path(
73 process.ak4PFCHSL1FastL2L3ResidualCorrectorChain
74 +process.ak4CaloL1FastL2L3ResidualCorrectorChain
75 +process.HBHENoiseFilterResultProducer
76 +process.correctionTermsPfMetType1Type2
78 +process.egmGsfElectronIDSequence
79 +process.BadPFMuonFilter
80 +process.BadChargedCandidateFilter
83 process.schedule.append(process.l1CustomReco)
90 process.load(
"CondCore.CondDB.CondDB_cfi")
92 process.jec = cms.ESSource(
94 DBParameters = cms.PSet(
95 messageLevel = cms.untracked.int32(0)
97 timetype = cms.string(
'runnumber'),
100 record = cms.string(
'JetCorrectionsRecord'),
102 tag = cms.string(
'JetCorrectorParametersCollection_Summer15_25nsV6_DATA_AK4PFchs'),
105 label = cms.untracked.string(
'AK4PFCHS')
108 connect = cms.string(
'sqlite:Summer15_25nsV6_DATA.db')
113 process.es_prefer_jec = cms.ESPrefer(
'PoolDBESSource',
'jec')
def L1NtupleCustomReco(process)
def getJECFromSQLite(process)