test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
L1SubsystemParamsExt_cfi.py
Go to the documentation of this file.
1 def initL1SubsystemsExt( tagBaseVec = [],
2  objectKey = 'dummy' ):
3 
4  import FWCore.ParameterSet.Config as cms
5  from CondTools.L1TriggerExt.L1CondEnumExt_cfi import L1CondEnumExt
6 
7  if len( tagBaseVec ) == 0:
8  from CondTools.L1TriggerExt.L1UniformTagsExt_cfi import initL1UniformTagsExt
10  tagBaseVec = initL1UniformTagsExt.tagBaseVec
11 
12  initL1SubsystemsExt.params = cms.PSet(
13  recordInfo = cms.VPSet(
14  cms.PSet(
15  record = cms.string('L1TUtmTriggerMenuO2ORcd'),
16  tag = cms.string('L1TUtmTriggerMenu_' + tagBaseVec[ L1CondEnumExt.L1TUtmTriggerMenu ]),
17  type = cms.string('L1TUtmTriggerMenu'),
18  key = cms.string(objectKey)
19  ),
20  cms.PSet(
21  record = cms.string('L1TGlobalPrescalesVetosO2ORcd'),
22  tag = cms.string('L1TGlobalPrescalesVetos_' + tagBaseVec[ L1CondEnumExt.L1TGlobalPrescalesVetos ]),
23  type = cms.string('L1TGlobalPrescalesVetos'),
24  key = cms.string(objectKey)
25  ),
26  cms.PSet(
27  record = cms.string('L1TMuonGlobalParamsO2ORcd'),
28  tag = cms.string('L1TMuonGlobalParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonGlobalParams ]),
29  type = cms.string('L1TMuonGlobalParams'),
30  key = cms.string(objectKey)
31  ),
32  cms.PSet(
33  record = cms.string('L1TMuonEndcapParamsO2ORcd'),
34  tag = cms.string('L1TMuonEndCapParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonEndcapParams ]),
35  type = cms.string('L1TMuonEndCapParams'),
36  key = cms.string(objectKey)
37  ),
38  cms.PSet(
39  record = cms.string('L1TMuonOverlapParamsO2ORcd'),
40  tag = cms.string('L1TMuonOverlapParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonOverlapParams ]),
41  type = cms.string('L1TMuonOverlapParams'),
42  key = cms.string(objectKey)
43  ),
44  cms.PSet(
45  record = cms.string('L1TMuonBarrelParamsO2ORcd'),
46  tag = cms.string('L1TMuonBarrelParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonBarrelParams ]),
47  type = cms.string('L1TMuonBarrelParams'),
48  key = cms.string(objectKey)
49  ),
50  cms.PSet(
51  record = cms.string('L1TCaloParamsO2ORcd'),
52  tag = cms.string('L1TCaloParams_' + tagBaseVec[ L1CondEnumExt.L1TCaloParams ]),
53  type = cms.string('L1TCaloParams'),
54  key = cms.string(objectKey)
55  )
56  )
57  )
58 
59  from CondTools.L1TriggerExt.L1RSSubsystemParamsExt_cfi import initL1RSSubsystemsExt
60  initL1RSSubsystemsExt( tagBaseVec )
61  initL1SubsystemsExt.params.recordInfo.extend(initL1RSSubsystemsExt.params.recordInfo)