|
15 | 15 | process.load("DQMServices.Core.DQM_cfg") |
16 | 16 | process.load("DQMServices.Components.DQMEnvironment_cfi") |
17 | 17 |
|
| 18 | +# load jet correctors |
| 19 | +process.load('JetMETCorrections.Configuration.JetCorrectors_cff') |
| 20 | + |
18 | 21 | # my analyzer |
19 | 22 | process.load('DQMOffline.ParticleFlow.runBasic_cfi') |
20 | 23 |
|
| 24 | +# Setup Global Tag |
| 25 | +from Configuration.AlCa.GlobalTag import GlobalTag |
| 26 | +process.GlobalTag = GlobalTag(process.GlobalTag, '150X_dataRun3_Prompt_v1', '') |
| 27 | + |
| 28 | +# Here we explicitly override the jet energy corrections (JECs) in a Global Tag |
| 29 | +process.GlobalTag.toGet = cms.VPSet( |
| 30 | + cms.PSet( |
| 31 | + record = cms.string("JetCorrectionsRecord"), |
| 32 | + tag = cms.string("JetCorrectorParametersCollection_Winter25Prompt25_RunC_V1_DATA_AK4PFPuppi_v1"), |
| 33 | + label = cms.untracked.string('AK4PFPuppi'), |
| 34 | + connect = cms.string("frontier://FrontierProd/CMS_CONDITIONS") |
| 35 | + ) |
| 36 | +) |
21 | 37 |
|
22 | 38 | with open('fileList.log') as f: |
23 | 39 | lines = f.readlines() |
24 | 40 | #Input source |
25 | 41 | process.source = cms.Source("PoolSource", fileNames = cms.untracked.vstring(lines)) |
26 | 42 |
|
| 43 | +# "CorrectedPFJetProducer" module applies the jet energy |
| 44 | +# corrections on the jet collection and sort the collection |
| 45 | +# according to pt |
| 46 | +process.ak4PFJetsPuppiCorrected = cms.EDProducer('CorrectedPFJetProducer', |
| 47 | + src = cms.InputTag('ak4PFJetsPuppi'), |
| 48 | + correctors = cms.VInputTag('ak4PFPuppiL1FastL2L3ResidualCorrector') |
| 49 | +) |
| 50 | + |
| 51 | +################################################################### |
| 52 | +# Data certification GoldenJSON filtering |
| 53 | +################################################################### |
| 54 | +goldenJSONPath="/eos/user/c/cmsdqm/www/CAF/certification/Collisions25/Cert_Collisions2025_391658_397294_Golden.json" |
| 55 | +if goldenJSONPath != "": |
| 56 | + import FWCore.PythonUtilities.LumiList as LumiList |
| 57 | + process.source.lumisToProcess = LumiList.LumiList(filename = goldenJSONPath).getVLuminosityBlockRange() |
27 | 58 |
|
28 | 59 | from DQMOffline.ParticleFlow.runBasic_cfi import * |
29 | 60 |
|
30 | 61 | process.DQMoutput = cms.OutputModule("DQMRootOutputModule", |
31 | 62 | fileName = cms.untracked.string("OUT_step1.root")) |
32 | 63 |
|
33 | 64 |
|
34 | | -process.p = cms.Path(process.PFAnalyzer) |
| 65 | +process.p = cms.Path( |
| 66 | + process.ak4PFPuppiL1FastL2L3ResidualCorrectorChain+ |
| 67 | + process.ak4PFJetsPuppiCorrected+ |
| 68 | + process.PFAnalyzer) |
35 | 69 | process.DQMoutput_step = cms.EndPath(process.DQMoutput) |
36 | 70 |
|
37 | 71 |
|
|
0 commit comments