CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch2/src/CondTools/L1Trigger/python/L1SubsystemParams_cfi.py

Go to the documentation of this file.
00001 def initL1Subsystems( tagBaseVec = [],
00002                       objectKey = 'dummy' ):
00003 
00004     import FWCore.ParameterSet.Config as cms
00005     from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
00006 
00007     if len( tagBaseVec ) == 0:
00008         from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
00009         initL1UniformTags()
00010         tagBaseVec = initL1UniformTags.tagBaseVec
00011 
00012     initL1Subsystems.params = cms.PSet(
00013         recordInfo = cms.VPSet(
00014         cms.PSet(
00015             record = cms.string('L1JetEtScaleRcd'),
00016             tag = cms.string('L1JetEtScale_' + tagBaseVec[ L1CondEnum.L1JetEtScale ]),
00017             type = cms.string('L1CaloEtScale'),
00018             key = cms.string(objectKey)
00019         ), 
00020         cms.PSet(
00021             record = cms.string('L1EmEtScaleRcd'),
00022             tag = cms.string('L1EmEtScale_' + tagBaseVec[ L1CondEnum.L1EmEtScale ]),
00023             type = cms.string('L1CaloEtScale'),
00024             key = cms.string(objectKey)
00025         ), 
00026         cms.PSet(
00027             record = cms.string('L1HtMissScaleRcd'),
00028             tag = cms.string('L1HtMissScale_' + tagBaseVec[ L1CondEnum.L1HtMissScale ]),
00029             type = cms.string('L1CaloEtScale'),
00030             key = cms.string(objectKey)
00031         ), 
00032         cms.PSet(
00033             record = cms.string('L1HfRingEtScaleRcd'),
00034             tag = cms.string('L1HfRingEtScale_' + tagBaseVec[ L1CondEnum.L1HfRingEtScale ]),
00035             type = cms.string('L1CaloEtScale'),
00036             key = cms.string(objectKey)
00037         ), 
00038         cms.PSet(
00039             record = cms.string('L1MuTriggerScalesRcd'),
00040             tag = cms.string('L1MuTriggerScales_' + tagBaseVec[ L1CondEnum.L1MuTriggerScales ]),
00041             type = cms.string('L1MuTriggerScales'),
00042             key = cms.string(objectKey)
00043         ), 
00044         cms.PSet(
00045             record = cms.string('L1MuTriggerPtScaleRcd'),
00046             tag = cms.string('L1MuTriggerPtScale_' + tagBaseVec[ L1CondEnum.L1MuTriggerPtScale ]),
00047             type = cms.string('L1MuTriggerPtScale'),
00048             key = cms.string(objectKey)
00049         ), 
00050         cms.PSet(
00051             record = cms.string('L1MuGMTScalesRcd'),
00052             tag = cms.string('L1MuGMTScales_' + tagBaseVec[ L1CondEnum.L1MuGMTScales ]),
00053             type = cms.string('L1MuGMTScales'),
00054             key = cms.string(objectKey)
00055         ), 
00056         cms.PSet(
00057             record = cms.string('L1MuCSCTFConfigurationRcd'),
00058             tag = cms.string('L1MuCSCTFConfiguration_' + tagBaseVec[ L1CondEnum.L1MuCSCTFConfiguration ]),
00059             type = cms.string('L1MuCSCTFConfiguration'),
00060             key = cms.string(objectKey)
00061         ), 
00062         cms.PSet(
00063             record = cms.string('L1MuCSCTFAlignmentRcd'),
00064             tag = cms.string('L1MuCSCTFAlignment_' + tagBaseVec[ L1CondEnum.L1MuCSCTFAlignment ]),
00065             type = cms.string('L1MuCSCTFAlignment'),
00066             key = cms.string(objectKey)
00067         ), 
00068         cms.PSet(
00069             record = cms.string('L1MuCSCPtLutRcd'),
00070             tag = cms.string('L1MuCSCPtLut_' + tagBaseVec[ L1CondEnum.L1MuCSCPtLut ]),
00071             type = cms.string('L1MuCSCPtLut'),
00072             key = cms.string(objectKey)
00073         ), 
00074         cms.PSet(
00075             record = cms.string('L1MuDTEtaPatternLutRcd'),
00076             tag = cms.string('L1MuDTEtaPatternLut_' + tagBaseVec[ L1CondEnum.L1MuDTEtaPatternLut ]),
00077             type = cms.string('L1MuDTEtaPatternLut'),
00078             key = cms.string(objectKey)
00079         ), 
00080         cms.PSet(
00081             record = cms.string('L1MuDTExtLutRcd'),
00082             tag = cms.string('L1MuDTExtLut_' + tagBaseVec[ L1CondEnum.L1MuDTExtLut ]),
00083             type = cms.string('L1MuDTExtLut'),
00084             key = cms.string(objectKey)
00085         ), 
00086         cms.PSet(
00087             record = cms.string('L1MuDTPhiLutRcd'),
00088             tag = cms.string('L1MuDTPhiLut_' + tagBaseVec[ L1CondEnum.L1MuDTPhiLut ]),
00089             type = cms.string('L1MuDTPhiLut'),
00090             key = cms.string(objectKey)
00091         ), 
00092         cms.PSet(
00093             record = cms.string('L1MuDTPtaLutRcd'),
00094             tag = cms.string('L1MuDTPtaLut_' + tagBaseVec[ L1CondEnum.L1MuDTPtaLut ]),
00095             type = cms.string('L1MuDTPtaLut'),
00096             key = cms.string(objectKey)
00097         ), 
00098         cms.PSet(
00099             record = cms.string('L1MuDTQualPatternLutRcd'),
00100             tag = cms.string('L1MuDTQualPatternLut_' + tagBaseVec[ L1CondEnum.L1MuDTQualPatternLut ]),
00101             type = cms.string('L1MuDTQualPatternLut'),
00102             key = cms.string(objectKey)
00103         ), 
00104         cms.PSet(
00105             record = cms.string('L1MuDTTFParametersRcd'),
00106             tag = cms.string('L1MuDTTFParameters_' + tagBaseVec[ L1CondEnum.L1MuDTTFParameters ]),
00107             type = cms.string('L1MuDTTFParameters'),
00108             key = cms.string(objectKey)
00109         ), 
00110         cms.PSet(
00111             record = cms.string('L1RPCConfigRcd'),
00112             tag = cms.string('L1RPCConfig_' + tagBaseVec[ L1CondEnum.L1RPCConfig ]),
00113             type = cms.string('L1RPCConfig'),
00114             key = cms.string(objectKey)
00115         ), 
00116         cms.PSet(
00117             record = cms.string('L1RPCConeDefinitionRcd'),
00118             tag = cms.string('L1RPCConeDefinition_' + tagBaseVec[ L1CondEnum.L1RPCConeDefinition ]),
00119             type = cms.string('L1RPCConeDefinition'),
00120             key = cms.string(objectKey)
00121         ),
00122         cms.PSet(
00123             record = cms.string('L1RPCHsbConfigRcd'),
00124             tag = cms.string('L1RPCHsbConfig_' + tagBaseVec[ L1CondEnum.L1RPCHsbConfig ]),
00125             type = cms.string('L1RPCHsbConfig'),
00126             key = cms.string(objectKey)
00127         ),
00128         cms.PSet(
00129             record = cms.string('L1RPCBxOrConfigRcd'),
00130             tag = cms.string('L1RPCBxOrConfig_' + tagBaseVec[ L1CondEnum.L1RPCBxOrConfig ]),
00131             type = cms.string('L1RPCBxOrConfig'),
00132             key = cms.string(objectKey)
00133         ),
00134         cms.PSet(
00135             record = cms.string('L1MuGMTParametersRcd'),
00136             tag = cms.string('L1MuGMTParameters_' + tagBaseVec[ L1CondEnum.L1MuGMTParameters ]),
00137             type = cms.string('L1MuGMTParameters'),
00138             key = cms.string(objectKey)
00139         ), 
00140         cms.PSet(
00141             record = cms.string('L1RCTParametersRcd'),
00142             tag = cms.string('L1RCTParameters_' + tagBaseVec[ L1CondEnum.L1RCTParameters ]),
00143             type = cms.string('L1RCTParameters'),
00144             key = cms.string(objectKey)
00145         ), 
00146         cms.PSet(
00147             record = cms.string('L1CaloEcalScaleRcd'),
00148             tag = cms.string('L1CaloEcalScale_' + tagBaseVec[ L1CondEnum.L1CaloEcalScale ]),
00149             type = cms.string('L1CaloEcalScale'),
00150             key = cms.string(objectKey)
00151         ), 
00152         cms.PSet(
00153             record = cms.string('L1CaloHcalScaleRcd'),
00154             tag = cms.string('L1CaloHcalScale_' + tagBaseVec[ L1CondEnum.L1CaloHcalScale ]),
00155             type = cms.string('L1CaloHcalScale'),
00156             key = cms.string(objectKey)
00157         ), 
00158         cms.PSet(
00159             record = cms.string('L1GctJetFinderParamsRcd'),
00160             tag = cms.string('L1GctJetFinderParams_' + tagBaseVec[ L1CondEnum.L1GctJetFinderParams ]),
00161             type = cms.string('L1GctJetFinderParams'),
00162             key = cms.string(objectKey)
00163         ), 
00164         cms.PSet(
00165             record = cms.string('L1GtBoardMapsRcd'),
00166             tag = cms.string('L1GtBoardMaps_' + tagBaseVec[ L1CondEnum.L1GtBoardMaps ]),
00167             type = cms.string('L1GtBoardMaps'),
00168             key = cms.string(objectKey)
00169         ), 
00170         cms.PSet(
00171             record = cms.string('L1GtParametersRcd'),
00172             tag = cms.string('L1GtParameters_' + tagBaseVec[ L1CondEnum.L1GtParameters ]),
00173             type = cms.string('L1GtParameters'),
00174             key = cms.string(objectKey)
00175         ), 
00176         cms.PSet(
00177             record = cms.string('L1GtStableParametersRcd'),
00178             tag = cms.string('L1GtStableParameters_' + tagBaseVec[ L1CondEnum.L1GtStableParameters ]),
00179             type = cms.string('L1GtStableParameters'),
00180             key = cms.string(objectKey)
00181         ), 
00182         cms.PSet(
00183             record = cms.string('L1GtTriggerMaskVetoAlgoTrigRcd'),
00184             tag = cms.string('L1GtTriggerMaskVetoAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoAlgoTrig ]),
00185             type = cms.string('L1GtTriggerMask'),
00186             key = cms.string(objectKey)
00187         ), 
00188         cms.PSet(
00189             record = cms.string('L1GtTriggerMenuRcd'),
00190             tag = cms.string('L1GtTriggerMenu_' + tagBaseVec[ L1CondEnum.L1GtTriggerMenu ]),
00191             type = cms.string('L1GtTriggerMenu'),
00192             key = cms.string(objectKey)
00193         ), 
00194         cms.PSet(
00195             record = cms.string('L1GtPsbSetupRcd'),
00196             tag = cms.string('L1GtPsbSetup_' + tagBaseVec[ L1CondEnum.L1GtPsbSetup ]),
00197             type = cms.string('L1GtPsbSetup'),
00198             key = cms.string(objectKey)
00199         ), 
00200         cms.PSet(
00201             record = cms.string('L1CaloGeometryRecord'),
00202             tag = cms.string('L1CaloGeometry_' + tagBaseVec[ L1CondEnum.L1CaloGeometry ]),
00203             type = cms.string('L1CaloGeometry'),
00204             key = cms.string(objectKey)
00205         ))
00206         )
00207 
00208     from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
00209     initL1RSSubsystems( tagBaseVec,
00210                         objectKey,
00211                         objectKey,
00212                         objectKey,
00213                         objectKey,
00214                         objectKey,
00215                         objectKey,
00216                         objectKey,
00217                         objectKey,
00218                         objectKey )
00219     initL1Subsystems.params.recordInfo.extend(initL1RSSubsystems.params.recordInfo)