CMS 3D CMS Logo

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('L1TGlobalPrescalesVetosFractO2ORcd'),
22  tag = cms.string('L1TGlobalPrescalesVetosFract_' + tagBaseVec[ L1CondEnumExt.L1TGlobalPrescalesVetosFract ]),
23  type = cms.string('L1TGlobalPrescalesVetosFract'),
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('L1TMuonEndCapForestO2ORcd'),
40  tag = cms.string('L1TMuonEndCapForest_' + tagBaseVec[ L1CondEnumExt.L1TMuonEndCapForest ]),
41  type = cms.string('L1TMuonEndCapForest'),
42  key = cms.string(objectKey)
43  ),
44  cms.PSet(
45  record = cms.string('L1TMuonOverlapFwVersionO2ORcd'),
46  tag = cms.string('L1TMuonOverlapFwVersion_' + tagBaseVec[ L1CondEnumExt.L1TMuonOverlapFwVersion ]),
47  type = cms.string('L1TMuonOverlapFwVersion'),
48  key = cms.string(objectKey)
49  ),
50  cms.PSet(
51  record = cms.string('L1TMuonOverlapParamsO2ORcd'),
52  tag = cms.string('L1TMuonOverlapParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonOverlapParams ]),
53  type = cms.string('L1TMuonOverlapParams'),
54  key = cms.string(objectKey)
55  ),
56  cms.PSet(
57  record = cms.string('L1TMuonBarrelParamsO2ORcd'),
58  tag = cms.string('L1TMuonBarrelParams_' + tagBaseVec[ L1CondEnumExt.L1TMuonBarrelParams ]),
59  type = cms.string('L1TMuonBarrelParams'),
60  key = cms.string(objectKey)
61  ),
62  cms.PSet(
63  record = cms.string('L1TCaloParamsO2ORcd'),
64  tag = cms.string('L1TCaloParams_' + tagBaseVec[ L1CondEnumExt.L1TCaloParams ]),
65  type = cms.string('L1TCaloParams'),
66  key = cms.string(objectKey)
67  )
68  )
69  )
70 
71  from CondTools.L1TriggerExt.L1RSSubsystemParamsExt_cfi import initL1RSSubsystemsExt
72  initL1RSSubsystemsExt( tagBaseVec )
73  initL1SubsystemsExt.params.recordInfo.extend(initL1RSSubsystemsExt.params.recordInfo)
def initL1SubsystemsExt(tagBaseVec=[], objectKey='dummy')
def initL1UniformTagsExt(tagBase="IDEAL")