Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 def initL1SubsystemsExt( tagBaseVec = [],
0002                       objectKey = 'dummy' ):
0003 
0004     import FWCore.ParameterSet.Config as cms
0005     from CondTools.L1TriggerExt.L1CondEnumExt_cfi import L1CondEnumExt
0006 
0007     if len( tagBaseVec ) == 0:
0008         from CondTools.L1TriggerExt.L1UniformTagsExt_cfi import initL1UniformTagsExt
0009         initL1UniformTagsExt()
0010         tagBaseVec = initL1UniformTagsExt.tagBaseVec
0011 
0012     initL1SubsystemsExt.params = cms.PSet(
0013         recordInfo = cms.VPSet(
0014         cms.PSet(
0015             record = cms.string('L1TUtmTriggerMenuO2ORcd'),
0016             tag = cms.string('L1TUtmTriggerMenu_' + tagBaseVec[ L1CondEnumExt.L1TUtmTriggerMenu ]),
0017             type = cms.string('L1TUtmTriggerMenu'),
0018             key = cms.string(objectKey)
0019         ),
0020         cms.PSet(
0021             record = cms.string('L1TGlobalPrescalesVetosFractO2ORcd'),
0022             tag = cms.string('L1TGlobalPrescalesVetosFract_' + tagBaseVec[ L1CondEnumExt.L1TGlobalPrescalesVetosFract ]),
0023             type = cms.string('L1TGlobalPrescalesVetosFract'),
0024             key = cms.string(objectKey)
0025         ),
0026         cms.PSet(
0027             record = cms.string('L1TMuonGlobalParamsO2ORcd'),
0028             tag = cms.string('L1TMuonGlobalParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonGlobalParams ]),
0029             type = cms.string('L1TMuonGlobalParams'),
0030             key = cms.string(objectKey)
0031         ),
0032         cms.PSet(
0033             record = cms.string('L1TMuonEndCapParamsO2ORcd'),
0034             tag = cms.string('L1TMuonEndCapParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonEndCapParams ]),
0035             type = cms.string('L1TMuonEndCapParams'),
0036             key = cms.string(objectKey)
0037         ),
0038         cms.PSet(
0039             record = cms.string('L1TMuonEndCapForestO2ORcd'),
0040             tag = cms.string('L1TMuonEndCapForest_' + tagBaseVec[ L1CondEnumExt.L1TMuonEndCapForest ]),
0041             type = cms.string('L1TMuonEndCapForest'),
0042             key = cms.string(objectKey)
0043         ),
0044         cms.PSet(
0045             record = cms.string('L1TMuonOverlapFwVersionO2ORcd'),
0046             tag = cms.string('L1TMuonOverlapFwVersion_' + tagBaseVec[ L1CondEnumExt.L1TMuonOverlapFwVersion ]),
0047             type = cms.string('L1TMuonOverlapFwVersion'),
0048             key = cms.string(objectKey)
0049         ),
0050         cms.PSet(
0051             record = cms.string('L1TMuonOverlapParamsO2ORcd'),
0052             tag = cms.string('L1TMuonOverlapParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonOverlapParams ]),
0053             type = cms.string('L1TMuonOverlapParams'),
0054             key = cms.string(objectKey)
0055         ),
0056         cms.PSet(
0057             record = cms.string('L1TMuonBarrelParamsO2ORcd'),
0058             tag = cms.string('L1TMuonBarrelParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonBarrelParams ]),
0059             type = cms.string('L1TMuonBarrelParams'),
0060             key = cms.string(objectKey)
0061         ),
0062         cms.PSet(
0063             record = cms.string('L1TCaloParamsO2ORcd'),
0064             tag = cms.string('L1TCaloParams_' + tagBaseVec[ L1CondEnumExt.L1TCaloParams ]),
0065             type = cms.string('L1TCaloParams'),
0066             key = cms.string(objectKey)
0067         )
0068         )
0069     )
0070 
0071     from CondTools.L1TriggerExt.L1RSSubsystemParamsExt_cfi import initL1RSSubsystemsExt
0072     initL1RSSubsystemsExt( tagBaseVec )
0073     initL1SubsystemsExt.params.recordInfo.extend(initL1RSSubsystemsExt.params.recordInfo)