test
CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Functions
L1SubsystemParamsExt_cfi Namespace Reference

Functions

def initL1SubsystemsExt
 

Function Documentation

def L1SubsystemParamsExt_cfi.initL1SubsystemsExt (   tagBaseVec = [],
  objectKey = 'dummy' 
)

Definition at line 2 of file L1SubsystemParamsExt_cfi.py.

References L1RSSubsystemParamsExt_cfi.initL1RSSubsystemsExt(), and L1UniformTagsExt_cfi.initL1UniformTagsExt().

Referenced by L1CondDBSourceExt_cff.initCondDBSourceExt(), and L1CondDBIOVWriterExt_cff.initIOVWriterExt().

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