CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/CondTools/L1Trigger/python/L1RSSubsystemParams_cfi.py

Go to the documentation of this file.
00001 def initL1RSSubsystems( tagBaseVec = [],
00002                         L1MuDTTFMasksRcdKey = 'dummy',
00003                         L1MuGMTChannelMaskRcdKey = 'dummy',
00004                         L1RCTChannelMaskRcdKey = 'dummy',
00005                         L1RCTNoisyChannelMaskRcdKey = 'dummy',
00006                         L1GctChannelMaskRcdKey = 'dummy',
00007                         L1GtPrescaleFactorsAlgoTrigRcdKey = 'dummy',
00008                         L1GtPrescaleFactorsTechTrigRcdKey = 'dummy',
00009                         L1GtTriggerMaskAlgoTrigRcdKey = 'dummy',
00010                         L1GtTriggerMaskTechTrigRcdKey = 'dummy',
00011                         L1GtTriggerMaskVetoTechTrigRcdKey = 'dummy',
00012                         includeL1RCTNoisyChannelMask = True):
00013 
00014     import FWCore.ParameterSet.Config as cms
00015     from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
00016 
00017     if includeL1RCTNoisyChannelMask == True:
00018         initL1RSSubsystems.params = cms.PSet(
00019             recordInfo = cms.VPSet(
00020             cms.PSet(
00021             record = cms.string('L1MuDTTFMasksRcd'),
00022             tag = cms.string('L1MuDTTFMasks_' + tagBaseVec[ L1CondEnum.L1MuDTTFMasks ]),
00023             type = cms.string('L1MuDTTFMasks'),
00024             key = cms.string(L1MuDTTFMasksRcdKey)
00025             ), 
00026             cms.PSet(
00027             record = cms.string('L1MuGMTChannelMaskRcd'),
00028             tag = cms.string('L1MuGMTChannelMask_' + tagBaseVec[ L1CondEnum.L1MuGMTChannelMask ]),
00029             type = cms.string('L1MuGMTChannelMask'),
00030             key = cms.string(L1MuGMTChannelMaskRcdKey)
00031             ), 
00032             cms.PSet(
00033             record = cms.string('L1RCTChannelMaskRcd'),
00034             tag = cms.string('L1RCTChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTChannelMask ]),
00035             type = cms.string('L1RCTChannelMask'),
00036             key = cms.string(L1RCTChannelMaskRcdKey)
00037             ), 
00038             cms.PSet(
00039             record = cms.string('L1RCTNoisyChannelMaskRcd'),
00040             tag = cms.string('L1RCTNoisyChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTNoisyChannelMask ]),
00041             type = cms.string('L1RCTNoisyChannelMask'),
00042             key = cms.string(L1RCTNoisyChannelMaskRcdKey)
00043             ), 
00044             cms.PSet(
00045             record = cms.string('L1GctChannelMaskRcd'),
00046             tag = cms.string('L1GctChannelMask_' + tagBaseVec[ L1CondEnum.L1GctChannelMask ]),
00047             type = cms.string('L1GctChannelMask'),
00048             key = cms.string(L1GctChannelMaskRcdKey)
00049             ), 
00050             cms.PSet(
00051             record = cms.string('L1GtPrescaleFactorsAlgoTrigRcd'),
00052             tag = cms.string('L1GtPrescaleFactorsAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsAlgoTrig ]),
00053             type = cms.string('L1GtPrescaleFactors'),
00054             key = cms.string(L1GtPrescaleFactorsAlgoTrigRcdKey)
00055             ), 
00056             cms.PSet(
00057             record = cms.string('L1GtPrescaleFactorsTechTrigRcd'),
00058             tag = cms.string('L1GtPrescaleFactorsTechTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsTechTrig ]),
00059             type = cms.string('L1GtPrescaleFactors'),
00060             key = cms.string(L1GtPrescaleFactorsTechTrigRcdKey)
00061             ), 
00062             cms.PSet(
00063             record = cms.string('L1GtTriggerMaskAlgoTrigRcd'),
00064             tag = cms.string('L1GtTriggerMaskAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskAlgoTrig ]),
00065             type = cms.string('L1GtTriggerMask'),
00066             key = cms.string(L1GtTriggerMaskAlgoTrigRcdKey)
00067             ), 
00068             cms.PSet(
00069             record = cms.string('L1GtTriggerMaskTechTrigRcd'),
00070             tag = cms.string('L1GtTriggerMaskTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskTechTrig ]),
00071             type = cms.string('L1GtTriggerMask'),
00072             key = cms.string(L1GtTriggerMaskTechTrigRcdKey)
00073             ), 
00074             cms.PSet(
00075             record = cms.string('L1GtTriggerMaskVetoTechTrigRcd'),
00076             tag = cms.string('L1GtTriggerMaskVetoTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoTechTrig ]),
00077             type = cms.string('L1GtTriggerMask'),
00078             key = cms.string(L1GtTriggerMaskVetoTechTrigRcdKey)
00079             ))
00080             )
00081     else:
00082         initL1RSSubsystems.params = cms.PSet(
00083             recordInfo = cms.VPSet(
00084             cms.PSet(
00085             record = cms.string('L1MuDTTFMasksRcd'),
00086             tag = cms.string('L1MuDTTFMasks_' + tagBaseVec[ L1CondEnum.L1MuDTTFMasks ]),
00087             type = cms.string('L1MuDTTFMasks'),
00088             key = cms.string(L1MuDTTFMasksRcdKey)
00089             ), 
00090             cms.PSet(
00091             record = cms.string('L1MuGMTChannelMaskRcd'),
00092             tag = cms.string('L1MuGMTChannelMask_' + tagBaseVec[ L1CondEnum.L1MuGMTChannelMask ]),
00093             type = cms.string('L1MuGMTChannelMask'),
00094             key = cms.string(L1MuGMTChannelMaskRcdKey)
00095             ), 
00096             cms.PSet(
00097             record = cms.string('L1RCTChannelMaskRcd'),
00098             tag = cms.string('L1RCTChannelMask_' + tagBaseVec[ L1CondEnum.L1RCTChannelMask ]),
00099             type = cms.string('L1RCTChannelMask'),
00100             key = cms.string(L1RCTChannelMaskRcdKey)
00101             ), 
00102             cms.PSet(
00103             record = cms.string('L1GctChannelMaskRcd'),
00104             tag = cms.string('L1GctChannelMask_' + tagBaseVec[ L1CondEnum.L1GctChannelMask ]),
00105             type = cms.string('L1GctChannelMask'),
00106             key = cms.string(L1GctChannelMaskRcdKey)
00107             ), 
00108             cms.PSet(
00109             record = cms.string('L1GtPrescaleFactorsAlgoTrigRcd'),
00110             tag = cms.string('L1GtPrescaleFactorsAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsAlgoTrig ]),
00111             type = cms.string('L1GtPrescaleFactors'),
00112             key = cms.string(L1GtPrescaleFactorsAlgoTrigRcdKey)
00113             ), 
00114             cms.PSet(
00115             record = cms.string('L1GtPrescaleFactorsTechTrigRcd'),
00116             tag = cms.string('L1GtPrescaleFactorsTechTrig_' + tagBaseVec[ L1CondEnum.L1GtPrescaleFactorsTechTrig ]),
00117             type = cms.string('L1GtPrescaleFactors'),
00118             key = cms.string(L1GtPrescaleFactorsTechTrigRcdKey)
00119             ), 
00120             cms.PSet(
00121             record = cms.string('L1GtTriggerMaskAlgoTrigRcd'),
00122             tag = cms.string('L1GtTriggerMaskAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskAlgoTrig ]),
00123             type = cms.string('L1GtTriggerMask'),
00124             key = cms.string(L1GtTriggerMaskAlgoTrigRcdKey)
00125             ), 
00126             cms.PSet(
00127             record = cms.string('L1GtTriggerMaskTechTrigRcd'),
00128             tag = cms.string('L1GtTriggerMaskTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskTechTrig ]),
00129             type = cms.string('L1GtTriggerMask'),
00130             key = cms.string(L1GtTriggerMaskTechTrigRcdKey)
00131             ), 
00132             cms.PSet(
00133             record = cms.string('L1GtTriggerMaskVetoTechTrigRcd'),
00134             tag = cms.string('L1GtTriggerMaskVetoTechTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoTechTrig ]),
00135             type = cms.string('L1GtTriggerMask'),
00136             key = cms.string(L1GtTriggerMaskVetoTechTrigRcdKey)
00137             ))
00138             )