1 import FWCore.ParameterSet.Config
as cms
19 nanoMetadata = cms.EDProducer(
"UniqueStringProducer",
21 tag = cms.string(
"untagged"),
25 linkedObjects = cms.EDProducer(
"PATObjectCrossLinker",
26 jets=cms.InputTag(
"finalJets"),
27 muons=cms.InputTag(
"finalMuons"),
28 electrons=cms.InputTag(
"finalElectrons"),
29 taus=cms.InputTag(
"finalTaus"),
30 photons=cms.InputTag(
"finalPhotons"),
33 simpleCleanerTable = cms.EDProducer(
"NanoAODSimpleCrossCleaner",
34 name=cms.string(
"cleanmask"),
35 doc=cms.string(
"simple cleaning mask with priority to leptons"),
36 jets=cms.InputTag(
"linkedObjects",
"jets"),
37 muons=cms.InputTag(
"linkedObjects",
"muons"),
38 electrons=cms.InputTag(
"linkedObjects",
"electrons"),
39 taus=cms.InputTag(
"linkedObjects",
"taus"),
40 photons=cms.InputTag(
"linkedObjects",
"photons"),
41 jetSel=cms.string(
"pt>15"),
42 muonSel=cms.string(
"isPFMuon && innerTrack.validFraction >= 0.49 && ( isGlobalMuon && globalTrack.normalizedChi2 < 3 && combinedQuality.chi2LocalPosition < 12 && combinedQuality.trkKink < 20 && segmentCompatibility >= 0.303 || segmentCompatibility >= 0.451 )"),
43 electronSel=cms.string(
""),
44 tauSel=cms.string(
""),
45 photonSel=cms.string(
""),
46 jetName=cms.string(
"Jet"),muonName=cms.string(
"Muon"),electronName=cms.string(
"Electron"),
47 tauName=cms.string(
"Tau"),photonName=cms.string(
"Photon")
51 genWeightsTable = cms.EDProducer(
"GenWeightsTableProducer",
52 genEvent = cms.InputTag(
"generator"),
53 lheInfo = cms.InputTag(
"externalLHEProducer"),
54 preferredPDFs = cms.VPSet(
55 cms.PSet( name = cms.string(
"PDF4LHC15_nnlo_30_pdfas"), lhaid = cms.uint32(91400) ),
56 cms.PSet( name = cms.string(
"NNPDF31_nnlo_hessian_pdfas"), lhaid = cms.uint32(306000) ),
57 cms.PSet( name = cms.string(
"NNPDF30_nlo_as_0118"), lhaid = cms.uint32(260000) ),
58 cms.PSet( name = cms.string(
"NNPDF30_lo_as_0130"), lhaid = cms.uint32(262000) ),
60 namedWeightIDs = cms.vstring(),
61 namedWeightLabels = cms.vstring(),
62 lheWeightPrecision = cms.int32(14),
63 maxPdfWeights = cms.uint32(150),
64 debug = cms.untracked.bool(
False),
66 lheInfoTable = cms.EDProducer(
"LHETablesProducer",
67 lheInfo = cms.InputTag(
"externalLHEProducer"),
70 l1bits=cms.EDProducer(
"L1TriggerResultsConverter", src=cms.InputTag(
"gtStage2Digis"), legacyL1=cms.bool(
False))
72 nanoSequence = cms.Sequence(
73 nanoMetadata + muonSequence + jetSequence + tauSequence + electronSequence+photonSequence+vertexSequence+metSequence+
76 jetTables + muonTables + tauTables + electronTables + photonTables + globalTables +vertexTables+ metTables+simpleCleanerTable + triggerObjectTables + isoTrackTables +
79 nanoSequenceMC = cms.Sequence(genParticleSequence + particleLevelSequence + nanoSequence + jetMC + muonMC + electronMC + photonMC + tauMC + metMC + ttbarCatMCProducers + globalTablesMC + genWeightsTable + genParticleTables + particleLevelTables + lheInfoTable + ttbarCategoryTable )
87 process.calibratedPatElectrons.isMC = cms.bool(
False)
88 process.calibratedPatPhotons.isMC = cms.bool(
False)
93 process.calibratedPatElectrons.isMC = cms.bool(
True)
94 process.calibratedPatPhotons.isMC = cms.bool(
True)
98 from Configuration.Eras.Modifier_run2_miniAOD_80XLegacy_cff
import run2_miniAOD_80XLegacy
99 _80x_sequence = nanoSequence.copy()
101 _80x_sequence.remove(isoTrackTable)
102 _80x_sequence.remove(isoTrackSequence)
104 run2_miniAOD_80XLegacy.toReplaceWith( nanoSequence, _80x_sequence)
def nanoAOD_customizeMC(process)
def nanoAOD_customizeCommon(process)
def nanoAOD_customizeData(process)