Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:30:32

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 process = cms.Process("WRITELUTS")
0004 # 
0005 # # used to get ECAL scales for RC LUTs
0006 # # ecal tpg params
0007 # es_module = EcalTrigPrimESProducer {
0008 # #untracked string DatabaseFile = "TPG.txt"
0009 # untracked string DatabaseFile = "TPG_RCT_identity.txt"
0010 # }
0011 # 
0012 # # Sources of records
0013 # es_source tpparams6 = EmptyESSource {
0014 # string recordName = "EcalTPGLutGroupRcd"
0015 # vuint32 firstValid = { 1 }
0016 # bool iovIsRunNotTime = true
0017 # }
0018 # es_source tpparams7 = EmptyESSource {
0019 # string recordName = "EcalTPGLutIdMapRcd"
0020 # vuint32 firstValid = { 1 }
0021 # bool iovIsRunNotTime = true
0022 # }
0023 # es_source tpparams12 = EmptyESSource {
0024 # string recordName = "EcalTPGPhysicsConstRcd"
0025 # vuint32 firstValid = { 1 }
0026 # bool iovIsRunNotTime = true
0027 # } 
0028 #include "FWCore/MessageService/data/MessageLogger.cfi"
0029 # configuration of RCT
0030 #include "L1TriggerConfig/RCTConfigProducers/data/L1RCTConfig.cff"
0031 process.load("L1TriggerConfig.L1ScalesProducers.L1CaloInputScalesConfig_cff")
0032 
0033 #include "L1Trigger/RegionalCaloTrigger/data/L1RCTTestAnalyzer.cfi"
0034 #replace L1RCTTestAnalyzer.showRegionSums = false
0035 # need to get HCAL scales for RC and JSC (HF) LUTs
0036 process.load("SimCalorimetry.HcalTrigPrimProducers.hcaltpdigi_cff")
0037 
0038 #replace CaloTPGTranscoder.hcalLUT2 = "TPGcalcDecompress2Identity.txt"
0039 # need for EIC LUT -- em cand linear energy -> rank conversion
0040 process.load("L1TriggerConfig.L1ScalesProducers.L1CaloScalesConfig_cff")
0041 
0042 process.maxEvents = cms.untracked.PSet(
0043     input = cms.untracked.int32(1)
0044 )
0045 process.source = cms.Source("EmptySource")
0046 
0047 process.l1RctParamsRecords = cms.ESSource("EmptyESSource",
0048     recordName = cms.string('L1RCTParametersRcd'),
0049     iovIsRunNotTime = cms.bool(True),
0050     firstValid = cms.vuint32(1)
0051 )
0052 
0053 process.RCTConfigProducers = cms.ESProducer("RCTConfigProducers",
0054     eGammaHCalScaleFactors = cms.vdouble(1.0, 1.0, 1.0, 1.0, 1.0, 
0055         1.0, 1.0, 1.0, 1.0, 1.0, 
0056         1.0, 1.0, 1.0, 1.0, 1.0, 
0057         1.0, 1.0, 1.0, 1.0, 1.0, 
0058         1.0, 1.0, 1.0, 1.0, 1.0, 
0059         1.0, 1.0, 1.0),
0060     eMaxForFGCut = cms.double(-999.0),
0061     noiseVetoHB = cms.bool(False),
0062     eMaxForHoECut = cms.double(-999.0),
0063     hOeCut = cms.double(999.0),
0064     eGammaECalScaleFactors = cms.vdouble(1.0, 1.0, 1.0, 1.0, 1.0, 
0065         1.0, 1.0, 1.0, 1.0, 1.0, 
0066         1.0, 1.0, 1.0, 1.0, 1.0, 
0067         1.0, 1.0, 1.0, 1.0, 1.0, 
0068         1.0, 1.0, 1.0, 1.0, 1.0, 
0069         1.0, 1.0, 1.0),
0070     eMinForHoECut = cms.double(999.0),
0071     jscQuietThresholdBarrel = cms.uint32(3),
0072     hActivityCut = cms.double(999.0),
0073     eActivityCut = cms.double(999.0),
0074     jetMETHCalScaleFactors = cms.vdouble(1.0, 1.0, 1.0, 1.0, 1.0, 
0075         1.0, 1.0, 1.0, 1.0, 1.0, 
0076         1.0, 1.0, 1.0, 1.0, 1.0, 
0077         1.0, 1.0, 1.0, 1.0, 1.0, 
0078         1.0, 1.0, 1.0, 1.0, 1.0, 
0079         1.0, 1.0, 1.0),
0080     noiseVetoHEplus = cms.bool(False),
0081     eicIsolationThreshold = cms.uint32(0),
0082     jetMETLSB = cms.double(1.0),
0083     jetMETECalScaleFactors = cms.vdouble(1.0, 1.0, 1.0, 1.0, 1.0, 
0084         1.0, 1.0, 1.0, 1.0, 1.0, 
0085         1.0, 1.0, 1.0, 1.0, 1.0, 
0086         1.0, 1.0, 1.0, 1.0, 1.0, 
0087         1.0, 1.0, 1.0, 1.0, 1.0, 
0088         1.0, 1.0, 1.0),
0089     eMinForFGCut = cms.double(999.0),
0090     eGammaLSB = cms.double(1.0),
0091     jscQuietThresholdEndcap = cms.uint32(3),
0092     hMinForHoECut = cms.double(999.0),
0093     noiseVetoHEminus = cms.bool(False)
0094 )
0095 
0096 process.l1RctMaskRcds = cms.ESSource("EmptyESSource",
0097     recordName = cms.string('L1RCTChannelMaskRcd'),
0098     iovIsRunNotTime = cms.bool(True),
0099     firstValid = cms.vuint32(1)
0100 )
0101 
0102 process.rctLutWriter = cms.EDAnalyzer("L1RCTLutWriter",
0103     useDebugTpgScales = cms.bool(True),
0104     key = cms.string('noKey')
0105 )
0106 
0107 process.p = cms.Path(process.rctLutWriter)
0108 process.schedule = cms.Schedule(process.p)
0109 
0110 process.CaloTPGTranscoder.hcalLUT2 = 'L1Trigger/RegionalCaloTrigger/test/data/TPGcalcDecompress2Identity.txt'
0111 process.l1CaloScales.L1CaloEmEtScaleLSB = 1.0
0112 
0113