Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2023-03-17 11:18:19

0001 import FWCore.ParameterSet.Config as cms
0002 from JetMETCorrections.FFTJetModules.fftjetcorrectionesproducer_cfi import *
0003 
0004 def configure_fftjet_correction_producer(sequenceTags, jetProducerModule):
0005     used_records = [fftjet_corr_types[s].correctorRecord for s in sequenceTags]
0006     config = cms.EDProducer(
0007         "FFTJetCorrectionProducer",
0008         #
0009         # Input jet collection
0010         src = cms.InputTag(jetProducerModule, "MadeByFFTJet"),
0011         #
0012         # Label for the output jet collection
0013         outputLabel = cms.string(""),
0014         #
0015         # Event setup record types for jet correction sequences
0016         records = cms.vstring(used_records),
0017         #
0018         # Jet type to process
0019         jetType = cms.string(fftjet_corr_types[sequenceTags[0]].jetType),
0020         #
0021         # Are we going to write out a corresponding collection
0022         # of systematic uncertainties?
0023         writeUncertainties = cms.bool(False),
0024         #
0025         # Subtract the pileup?
0026         subtractPileup = cms.bool(True),
0027         #
0028         # Are we subtracting pileup as 4-vector?
0029         subtractPileupAs4Vec = cms.bool(False)
0030     )
0031     return config