Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:40

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 ##____________________________________________________________________________||
0004 from JetMETCorrections.Configuration.JetCorrectors_cff import *
0005 
0006 corrCaloMetType1 = cms.EDProducer(
0007     "CaloJetMETcorrInputProducer",
0008     src = cms.InputTag('ak4CaloJets'),
0009     jetCorrLabel = cms.InputTag("ak4CaloL2L3Corrector"), # NOTE: use "ak4CaloL2L3Corrector" for MC / "ak4CaloL2L3ResidualCorrector" for Data
0010     jetCorrEtaMax = cms.double(9.9),
0011     type1JetPtThreshold = cms.double(20.0),
0012     skipEM = cms.bool(True),
0013     skipEMfractionThreshold = cms.double(0.90),
0014     srcMET = cms.InputTag('caloMetM')
0015 )
0016 
0017 ##____________________________________________________________________________||
0018 muCaloMetCorr = cms.EDProducer("MuonMETcorrInputProducer",
0019     src = cms.InputTag('muons'),
0020     srcMuonCorrections = cms.InputTag('muonMETValueMapProducer', 'muCorrData')
0021 )
0022 
0023 ##____________________________________________________________________________||
0024 corrCaloMetType2 = cms.EDProducer(
0025     "Type2CorrectionProducer",
0026     srcUnclEnergySums = cms.VInputTag(
0027         cms.InputTag('corrCaloMetType1', 'type2'),
0028         cms.InputTag('muCaloMetCorr') # NOTE: use this for 'caloMetM', do **not** use it for 'met' !!
0029         ),
0030     type2CorrFormula = cms.string("A + B*TMath::Exp(-C*x)"),
0031     type2CorrParameter = cms.PSet(
0032         A = cms.double(2.0),
0033         B = cms.double(1.3),
0034         C = cms.double(0.1)
0035         )
0036     )
0037 
0038 ##____________________________________________________________________________||
0039 correctionTermsCaloMetTask = cms.Task(
0040     ak4CaloL2L3CorrectorTask, # NOTE: use "ak4CaloL2L3CorrectorTask" for MC / "ak4CaloL2L3ResidualCorrectorTask" for Data
0041     ak4CaloL2L3ResidualCorrectorTask,
0042     corrCaloMetType1,
0043     muCaloMetCorr,
0044     corrCaloMetType2
0045     )
0046 
0047 correctionTermsCaloMet = cms.Sequence(correctionTermsCaloMetTask)