Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:03:13

0001 def initL1Subsystems( tagBaseVec = [],
0002                       objectKey = 'dummy' ):
0003 
0004     import FWCore.ParameterSet.Config as cms
0005     from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
0006 
0007     if len( tagBaseVec ) == 0:
0008         from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
0009         initL1UniformTags()
0010         tagBaseVec = initL1UniformTags.tagBaseVec
0011 
0012     initL1Subsystems.params = cms.PSet(
0013         recordInfo = cms.VPSet(
0014         cms.PSet(
0015             record = cms.string('L1JetEtScaleRcd'),
0016             tag = cms.string('L1JetEtScale_' + tagBaseVec[ L1CondEnum.L1JetEtScale ]),
0017             type = cms.string('L1CaloEtScale'),
0018             key = cms.string(objectKey)
0019         ), 
0020         cms.PSet(
0021             record = cms.string('L1EmEtScaleRcd'),
0022             tag = cms.string('L1EmEtScale_' + tagBaseVec[ L1CondEnum.L1EmEtScale ]),
0023             type = cms.string('L1CaloEtScale'),
0024             key = cms.string(objectKey)
0025         ), 
0026         cms.PSet(
0027             record = cms.string('L1HtMissScaleRcd'),
0028             tag = cms.string('L1HtMissScale_' + tagBaseVec[ L1CondEnum.L1HtMissScale ]),
0029             type = cms.string('L1CaloEtScale'),
0030             key = cms.string(objectKey)
0031         ), 
0032         cms.PSet(
0033             record = cms.string('L1HfRingEtScaleRcd'),
0034             tag = cms.string('L1HfRingEtScale_' + tagBaseVec[ L1CondEnum.L1HfRingEtScale ]),
0035             type = cms.string('L1CaloEtScale'),
0036             key = cms.string(objectKey)
0037         ), 
0038         cms.PSet(
0039             record = cms.string('L1MuTriggerScalesRcd'),
0040             tag = cms.string('L1MuTriggerScales_' + tagBaseVec[ L1CondEnum.L1MuTriggerScales ]),
0041             type = cms.string('L1MuTriggerScales'),
0042             key = cms.string(objectKey)
0043         ), 
0044         cms.PSet(
0045             record = cms.string('L1MuTriggerPtScaleRcd'),
0046             tag = cms.string('L1MuTriggerPtScale_' + tagBaseVec[ L1CondEnum.L1MuTriggerPtScale ]),
0047             type = cms.string('L1MuTriggerPtScale'),
0048             key = cms.string(objectKey)
0049         ), 
0050         cms.PSet(
0051             record = cms.string('L1MuGMTScalesRcd'),
0052             tag = cms.string('L1MuGMTScales_' + tagBaseVec[ L1CondEnum.L1MuGMTScales ]),
0053             type = cms.string('L1MuGMTScales'),
0054             key = cms.string(objectKey)
0055         ), 
0056         cms.PSet(
0057             record = cms.string('L1MuCSCTFConfigurationRcd'),
0058             tag = cms.string('L1MuCSCTFConfiguration_' + tagBaseVec[ L1CondEnum.L1MuCSCTFConfiguration ]),
0059             type = cms.string('L1MuCSCTFConfiguration'),
0060             key = cms.string(objectKey)
0061         ), 
0062         cms.PSet(
0063             record = cms.string('L1MuCSCTFAlignmentRcd'),
0064             tag = cms.string('L1MuCSCTFAlignment_' + tagBaseVec[ L1CondEnum.L1MuCSCTFAlignment ]),
0065             type = cms.string('L1MuCSCTFAlignment'),
0066             key = cms.string(objectKey)
0067         ), 
0068         cms.PSet(
0069             record = cms.string('L1MuCSCPtLutRcd'),
0070             tag = cms.string('L1MuCSCPtLut_' + tagBaseVec[ L1CondEnum.L1MuCSCPtLut ]),
0071             type = cms.string('L1MuCSCPtLut'),
0072             key = cms.string(objectKey)
0073         ), 
0074         cms.PSet(
0075             record = cms.string('L1MuDTEtaPatternLutRcd'),
0076             tag = cms.string('L1MuDTEtaPatternLut_' + tagBaseVec[ L1CondEnum.L1MuDTEtaPatternLut ]),
0077             type = cms.string('L1MuDTEtaPatternLut'),
0078             key = cms.string(objectKey)
0079         ), 
0080         cms.PSet(
0081             record = cms.string('L1MuDTExtLutRcd'),
0082             tag = cms.string('L1MuDTExtLut_' + tagBaseVec[ L1CondEnum.L1MuDTExtLut ]),
0083             type = cms.string('L1MuDTExtLut'),
0084             key = cms.string(objectKey)
0085         ), 
0086         cms.PSet(
0087             record = cms.string('L1MuDTPhiLutRcd'),
0088             tag = cms.string('L1MuDTPhiLut_' + tagBaseVec[ L1CondEnum.L1MuDTPhiLut ]),
0089             type = cms.string('L1MuDTPhiLut'),
0090             key = cms.string(objectKey)
0091         ), 
0092         cms.PSet(
0093             record = cms.string('L1MuDTPtaLutRcd'),
0094             tag = cms.string('L1MuDTPtaLut_' + tagBaseVec[ L1CondEnum.L1MuDTPtaLut ]),
0095             type = cms.string('L1MuDTPtaLut'),
0096             key = cms.string(objectKey)
0097         ), 
0098         cms.PSet(
0099             record = cms.string('L1MuDTQualPatternLutRcd'),
0100             tag = cms.string('L1MuDTQualPatternLut_' + tagBaseVec[ L1CondEnum.L1MuDTQualPatternLut ]),
0101             type = cms.string('L1MuDTQualPatternLut'),
0102             key = cms.string(objectKey)
0103         ), 
0104         cms.PSet(
0105             record = cms.string('L1MuDTTFParametersRcd'),
0106             tag = cms.string('L1MuDTTFParameters_' + tagBaseVec[ L1CondEnum.L1MuDTTFParameters ]),
0107             type = cms.string('L1MuDTTFParameters'),
0108             key = cms.string(objectKey)
0109         ), 
0110         cms.PSet(
0111             record = cms.string('L1RPCConfigRcd'),
0112             tag = cms.string('L1RPCConfig_' + tagBaseVec[ L1CondEnum.L1RPCConfig ]),
0113             type = cms.string('L1RPCConfig'),
0114             key = cms.string(objectKey)
0115         ), 
0116         cms.PSet(
0117             record = cms.string('L1RPCConeDefinitionRcd'),
0118             tag = cms.string('L1RPCConeDefinition_' + tagBaseVec[ L1CondEnum.L1RPCConeDefinition ]),
0119             type = cms.string('L1RPCConeDefinition'),
0120             key = cms.string(objectKey)
0121         ),
0122         cms.PSet(
0123             record = cms.string('L1RPCHsbConfigRcd'),
0124             tag = cms.string('L1RPCHsbConfig_' + tagBaseVec[ L1CondEnum.L1RPCHsbConfig ]),
0125             type = cms.string('L1RPCHsbConfig'),
0126             key = cms.string(objectKey)
0127         ),
0128         cms.PSet(
0129             record = cms.string('L1RPCBxOrConfigRcd'),
0130             tag = cms.string('L1RPCBxOrConfig_' + tagBaseVec[ L1CondEnum.L1RPCBxOrConfig ]),
0131             type = cms.string('L1RPCBxOrConfig'),
0132             key = cms.string(objectKey)
0133         ),
0134         cms.PSet(
0135             record = cms.string('L1MuGMTParametersRcd'),
0136             tag = cms.string('L1MuGMTParameters_' + tagBaseVec[ L1CondEnum.L1MuGMTParameters ]),
0137             type = cms.string('L1MuGMTParameters'),
0138             key = cms.string(objectKey)
0139         ), 
0140         cms.PSet(
0141             record = cms.string('L1RCTParametersRcd'),
0142             tag = cms.string('L1RCTParameters_' + tagBaseVec[ L1CondEnum.L1RCTParameters ]),
0143             type = cms.string('L1RCTParameters'),
0144             key = cms.string(objectKey)
0145         ), 
0146         cms.PSet(
0147             record = cms.string('L1CaloEcalScaleRcd'),
0148             tag = cms.string('L1CaloEcalScale_' + tagBaseVec[ L1CondEnum.L1CaloEcalScale ]),
0149             type = cms.string('L1CaloEcalScale'),
0150             key = cms.string(objectKey)
0151         ), 
0152         cms.PSet(
0153             record = cms.string('L1CaloHcalScaleRcd'),
0154             tag = cms.string('L1CaloHcalScale_' + tagBaseVec[ L1CondEnum.L1CaloHcalScale ]),
0155             type = cms.string('L1CaloHcalScale'),
0156             key = cms.string(objectKey)
0157         ), 
0158         cms.PSet(
0159             record = cms.string('L1GctJetFinderParamsRcd'),
0160             tag = cms.string('L1GctJetFinderParams_' + tagBaseVec[ L1CondEnum.L1GctJetFinderParams ]),
0161             type = cms.string('L1GctJetFinderParams'),
0162             key = cms.string(objectKey)
0163         ), 
0164         cms.PSet(
0165             record = cms.string('L1GtBoardMapsRcd'),
0166             tag = cms.string('L1GtBoardMaps_' + tagBaseVec[ L1CondEnum.L1GtBoardMaps ]),
0167             type = cms.string('L1GtBoardMaps'),
0168             key = cms.string(objectKey)
0169         ), 
0170         cms.PSet(
0171             record = cms.string('L1GtParametersRcd'),
0172             tag = cms.string('L1GtParameters_' + tagBaseVec[ L1CondEnum.L1GtParameters ]),
0173             type = cms.string('L1GtParameters'),
0174             key = cms.string(objectKey)
0175         ), 
0176         cms.PSet(
0177             record = cms.string('L1GtStableParametersRcd'),
0178             tag = cms.string('L1GtStableParameters_' + tagBaseVec[ L1CondEnum.L1GtStableParameters ]),
0179             type = cms.string('L1GtStableParameters'),
0180             key = cms.string(objectKey)
0181         ), 
0182         cms.PSet(
0183             record = cms.string('L1GtTriggerMaskVetoAlgoTrigRcd'),
0184             tag = cms.string('L1GtTriggerMaskVetoAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoAlgoTrig ]),
0185             type = cms.string('L1GtTriggerMask'),
0186             key = cms.string(objectKey)
0187         ), 
0188         cms.PSet(
0189             record = cms.string('L1GtTriggerMenuRcd'),
0190             tag = cms.string('L1GtTriggerMenu_' + tagBaseVec[ L1CondEnum.L1GtTriggerMenu ]),
0191             type = cms.string('L1GtTriggerMenu'),
0192             key = cms.string(objectKey)
0193         ), 
0194         cms.PSet(
0195             record = cms.string('L1GtPsbSetupRcd'),
0196             tag = cms.string('L1GtPsbSetup_' + tagBaseVec[ L1CondEnum.L1GtPsbSetup ]),
0197             type = cms.string('L1GtPsbSetup'),
0198             key = cms.string(objectKey)
0199         ), 
0200         cms.PSet(
0201             record = cms.string('L1CaloGeometryRecord'),
0202             tag = cms.string('L1CaloGeometry_' + tagBaseVec[ L1CondEnum.L1CaloGeometry ]),
0203             type = cms.string('L1CaloGeometry'),
0204             key = cms.string(objectKey)
0205         ))
0206         )
0207 
0208     from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
0209     initL1RSSubsystems( tagBaseVec,
0210                         objectKey,
0211                         objectKey,
0212                         objectKey,
0213                         objectKey,
0214                         objectKey,
0215                         objectKey,
0216                         objectKey,
0217                         objectKey,
0218                         objectKey )
0219     initL1Subsystems.params.recordInfo.extend(initL1RSSubsystems.params.recordInfo)