Esempio n. 1
0
def initCondDBSource( process,
                      inputDBConnect = 'frontier://FrontierProd/CMS_COND_31X_L1T',
                      inputDBAuth = '.',
                      tagBase = "",
                      tagBaseVec = [],
                      includeAllTags = False,
                      includeRSTags = False,
                      use30XTagList = False,
                      applyESPrefer = True ):
    import FWCore.ParameterSet.Config as cms
    from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
    from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum

    if len( tagBaseVec ) == 0:
        if len( tagBase ) != 0:
            from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
            initL1UniformTags( tagBase )
            tagBaseVec = initL1UniformTags.tagBaseVec
        else:
            from CondTools.L1Trigger.L1O2OTags_cfi import initL1O2OTags
            initL1O2OTags()
            tagBaseVec = initL1O2OTags.tagBaseVec
                                
    process.l1conddb = cms.ESSource("PoolDBESSource",
                            CondDBSetup,
                            connect = cms.string(inputDBConnect),
                            toGet = cms.VPSet(cms.PSet(
        record = cms.string('L1TriggerKeyListRcd'),
        tag = cms.string('L1TriggerKeyList_' + tagBaseVec[ L1CondEnum.L1TriggerKeyList ])
        ),
                                              cms.PSet(
        record = cms.string('L1TriggerKeyRcd'),
        tag = cms.string('L1TriggerKey_' + tagBaseVec[ L1CondEnum.L1TriggerKey ])
        ))
                                    )
    process.l1conddb.DBParameters.authenticationPath = inputDBAuth

    # The more records, the longer it takes PoolDBESSource to initialize, so be
    # selective if possible.

    if includeAllTags == True:
        if use30XTagList == True:
            from CondTools.L1Trigger.L1SubsystemParams30X_cfi import initL1Subsystems
        else:
            from CondTools.L1Trigger.L1SubsystemParams_cfi import initL1Subsystems
        initL1Subsystems( tagBaseVec = tagBaseVec )
        process.l1conddb.toGet.extend(initL1Subsystems.params.recordInfo)
    elif includeRSTags == True:
        from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
        initL1RSSubsystems( tagBaseVec = tagBaseVec )
        process.l1conddb.toGet.extend(initL1RSSubsystems.params.recordInfo)

    if applyESPrefer == True:
        process.es_prefer_l1conddb = cms.ESPrefer("PoolDBESSource","l1conddb")
Esempio n. 2
0
def initCondDBSource(process,
                     inputDBConnect='frontier://FrontierProd/CMS_COND_31X_L1T',
                     inputDBAuth='.',
                     tagBase="",
                     tagBaseVec=[],
                     includeAllTags=False,
                     includeRSTags=False,
                     use30XTagList=False,
                     applyESPrefer=True):
    import FWCore.ParameterSet.Config as cms
    from CondCore.DBCommon.CondDBSetup_cfi import CondDBSetup
    from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum

    if len(tagBaseVec) == 0:
        if len(tagBase) != 0:
            from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
            initL1UniformTags(tagBase)
            tagBaseVec = initL1UniformTags.tagBaseVec
        else:
            from CondTools.L1Trigger.L1O2OTags_cfi import initL1O2OTags
            initL1O2OTags()
            tagBaseVec = initL1O2OTags.tagBaseVec

    process.l1conddb = cms.ESSource(
        "PoolDBESSource",
        CondDBSetup,
        connect=cms.string(inputDBConnect),
        toGet=cms.VPSet(
            cms.PSet(record=cms.string('L1TriggerKeyListRcd'),
                     tag=cms.string('L1TriggerKeyList_' +
                                    tagBaseVec[L1CondEnum.L1TriggerKeyList])),
            cms.PSet(record=cms.string('L1TriggerKeyRcd'),
                     tag=cms.string('L1TriggerKey_' +
                                    tagBaseVec[L1CondEnum.L1TriggerKey]))))
    process.l1conddb.DBParameters.authenticationPath = inputDBAuth

    # The more records, the longer it takes PoolDBESSource to initialize, so be
    # selective if possible.

    if includeAllTags == True:
        if use30XTagList == True:
            from CondTools.L1Trigger.L1SubsystemParams30X_cfi import initL1Subsystems
        else:
            from CondTools.L1Trigger.L1SubsystemParams_cfi import initL1Subsystems
        initL1Subsystems(tagBaseVec=tagBaseVec)
        process.l1conddb.toGet.extend(initL1Subsystems.params.recordInfo)
    elif includeRSTags == True:
        from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
        initL1RSSubsystems(tagBaseVec=tagBaseVec)
        process.l1conddb.toGet.extend(initL1RSSubsystems.params.recordInfo)

    if applyESPrefer == True:
        process.es_prefer_l1conddb = cms.ESPrefer("PoolDBESSource", "l1conddb")
Esempio n. 3
0
from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
from CondTools.L1Trigger.L1O2OTags_cfi import initL1O2OTags
initL1O2OTags()

if options.keysFromDB == 1:
    process.load("CondTools.L1Trigger.L1ConfigRSKeys_cff")
else:
    process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
    from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
    initL1RSSubsystems(
        tagBaseVec=initL1O2OTags.tagBaseVec,
        L1MuDTTFMasksRcdKey=options.L1MuDTTFMasksRcdKey,
        L1MuGMTChannelMaskRcdKey=options.L1MuGMTChannelMaskRcdKey,
        L1RCTChannelMaskRcdKey=options.L1RCTChannelMaskRcdKey,
        L1GctChannelMaskRcdKey=options.L1GctChannelMaskRcdKey,
        L1GtPrescaleFactorsAlgoTrigRcdKey=options.
        L1GtPrescaleFactorsAlgoTrigRcdKey,
        L1GtPrescaleFactorsTechTrigRcdKey=options.
        L1GtPrescaleFactorsTechTrigRcdKey,
        L1GtTriggerMaskAlgoTrigRcdKey=options.L1GtTriggerMaskAlgoTrigRcdKey,
        L1GtTriggerMaskTechTrigRcdKey=options.L1GtTriggerMaskTechTrigRcdKey,
        L1GtTriggerMaskVetoTechTrigRcdKey=options.
        L1GtTriggerMaskVetoTechTrigRcdKey)
    process.L1TriggerKeyDummy.objectKeys = initL1RSSubsystems.params.recordInfo

# Get L1TriggerKeyList from DB
process.load("CondCore.DBCommon.CondDBCommon_cfi")
process.outputDB = cms.ESSource(
    "PoolDBESSource",
    process.CondDBCommon,
    toGet=cms.VPSet(
        cms.PSet(record=cms.string('L1TriggerKeyListRcd'),
Esempio n. 4
0
                       CondDBSetup,
                       # BlobStreamerName = cms.untracked.string('TBufferBlobStreamingService'),
                       connect = cms.string(options.inputDBConnect),
                       toPut = cms.VPSet(cms.PSet(
    record = cms.string("L1TriggerKeyRcd"),
    tag = cms.string("L1TriggerKey_" + initL1O2OTags.tagBaseVec[ L1CondEnum.L1TriggerKey ])),
                                         cms.PSet(
    record = cms.string("L1TriggerKeyListRcd"),
    tag = cms.string("L1TriggerKeyList_" + initL1O2OTags.tagBaseVec[ L1CondEnum.L1TriggerKeyList ]))
                                         ))
outputDB.DBParameters.authenticationPath = options.inputDBAuth

# PoolDBOutputService for printing out ESRecords
if options.printRSKeys == 1:
    from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
    initL1RSSubsystems( tagBaseVec = initL1O2OTags.tagBaseVec )
    outputDB.toPut.extend(initL1RSSubsystems.params.recordInfo)

process.add_(outputDB)
    
# Source of events
process.maxEvents = cms.untracked.PSet(
    input = cms.untracked.int32(1)
)
process.source = cms.Source("EmptyIOVSource",
    timetype = cms.string('runnumber'),
    firstValue = cms.uint64(options.runNumber),
    lastValue = cms.uint64(options.runNumber),
    interval = cms.uint64(1)
)
Esempio n. 5
0
def initL1Subsystems( tagBaseVec = [],
                      objectKey = 'dummy' ):

    import FWCore.ParameterSet.Config as cms
    from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum

    if len( tagBaseVec ) == 0:
        from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
        initL1UniformTags()
        tagBaseVec = initL1UniformTags.tagBaseVec

    initL1Subsystems.params = cms.PSet(
        recordInfo = cms.VPSet(
        cms.PSet(
            record = cms.string('L1JetEtScaleRcd'),
            tag = cms.string('L1JetEtScale_' + tagBaseVec[ L1CondEnum.L1JetEtScale ]),
            type = cms.string('L1CaloEtScale'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1EmEtScaleRcd'),
            tag = cms.string('L1EmEtScale_' + tagBaseVec[ L1CondEnum.L1EmEtScale ]),
            type = cms.string('L1CaloEtScale'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1HtMissScaleRcd'),
            tag = cms.string('L1HtMissScale_' + tagBaseVec[ L1CondEnum.L1HtMissScale ]),
            type = cms.string('L1CaloEtScale'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1HfRingEtScaleRcd'),
            tag = cms.string('L1HfRingEtScale_' + tagBaseVec[ L1CondEnum.L1HfRingEtScale ]),
            type = cms.string('L1CaloEtScale'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuTriggerScalesRcd'),
            tag = cms.string('L1MuTriggerScales_' + tagBaseVec[ L1CondEnum.L1MuTriggerScales ]),
            type = cms.string('L1MuTriggerScales'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuTriggerPtScaleRcd'),
            tag = cms.string('L1MuTriggerPtScale_' + tagBaseVec[ L1CondEnum.L1MuTriggerPtScale ]),
            type = cms.string('L1MuTriggerPtScale'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuGMTScalesRcd'),
            tag = cms.string('L1MuGMTScales_' + tagBaseVec[ L1CondEnum.L1MuGMTScales ]),
            type = cms.string('L1MuGMTScales'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuCSCTFConfigurationRcd'),
            tag = cms.string('L1MuCSCTFConfiguration_' + tagBaseVec[ L1CondEnum.L1MuCSCTFConfiguration ]),
            type = cms.string('L1MuCSCTFConfiguration'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuCSCTFAlignmentRcd'),
            tag = cms.string('L1MuCSCTFAlignment_' + tagBaseVec[ L1CondEnum.L1MuCSCTFAlignment ]),
            type = cms.string('L1MuCSCTFAlignment'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuCSCPtLutRcd'),
            tag = cms.string('L1MuCSCPtLut_' + tagBaseVec[ L1CondEnum.L1MuCSCPtLut ]),
            type = cms.string('L1MuCSCPtLut'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuDTEtaPatternLutRcd'),
            tag = cms.string('L1MuDTEtaPatternLut_' + tagBaseVec[ L1CondEnum.L1MuDTEtaPatternLut ]),
            type = cms.string('L1MuDTEtaPatternLut'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuDTExtLutRcd'),
            tag = cms.string('L1MuDTExtLut_' + tagBaseVec[ L1CondEnum.L1MuDTExtLut ]),
            type = cms.string('L1MuDTExtLut'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuDTPhiLutRcd'),
            tag = cms.string('L1MuDTPhiLut_' + tagBaseVec[ L1CondEnum.L1MuDTPhiLut ]),
            type = cms.string('L1MuDTPhiLut'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuDTPtaLutRcd'),
            tag = cms.string('L1MuDTPtaLut_' + tagBaseVec[ L1CondEnum.L1MuDTPtaLut ]),
            type = cms.string('L1MuDTPtaLut'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuDTQualPatternLutRcd'),
            tag = cms.string('L1MuDTQualPatternLut_' + tagBaseVec[ L1CondEnum.L1MuDTQualPatternLut ]),
            type = cms.string('L1MuDTQualPatternLut'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1MuDTTFParametersRcd'),
            tag = cms.string('L1MuDTTFParameters_' + tagBaseVec[ L1CondEnum.L1MuDTTFParameters ]),
            type = cms.string('L1MuDTTFParameters'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1RPCConfigRcd'),
            tag = cms.string('L1RPCConfig_' + tagBaseVec[ L1CondEnum.L1RPCConfig ]),
            type = cms.string('L1RPCConfig'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1RPCConeDefinitionRcd'),
            tag = cms.string('L1RPCConeDefinition_' + tagBaseVec[ L1CondEnum.L1RPCConeDefinition ]),
            type = cms.string('L1RPCConeDefinition'),
            key = cms.string(objectKey)
        ),
        cms.PSet(
            record = cms.string('L1RPCHsbConfigRcd'),
            tag = cms.string('L1RPCHsbConfig_' + tagBaseVec[ L1CondEnum.L1RPCHsbConfig ]),
            type = cms.string('L1RPCHsbConfig'),
            key = cms.string(objectKey)
        ),
        cms.PSet(
            record = cms.string('L1RPCBxOrConfigRcd'),
            tag = cms.string('L1RPCBxOrConfig_' + tagBaseVec[ L1CondEnum.L1RPCBxOrConfig ]),
            type = cms.string('L1RPCBxOrConfig'),
            key = cms.string(objectKey)
        ),
        cms.PSet(
            record = cms.string('L1MuGMTParametersRcd'),
            tag = cms.string('L1MuGMTParameters_' + tagBaseVec[ L1CondEnum.L1MuGMTParameters ]),
            type = cms.string('L1MuGMTParameters'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1RCTParametersRcd'),
            tag = cms.string('L1RCTParameters_' + tagBaseVec[ L1CondEnum.L1RCTParameters ]),
            type = cms.string('L1RCTParameters'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1CaloEcalScaleRcd'),
            tag = cms.string('L1CaloEcalScale_' + tagBaseVec[ L1CondEnum.L1CaloEcalScale ]),
            type = cms.string('L1CaloEcalScale'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1CaloHcalScaleRcd'),
            tag = cms.string('L1CaloHcalScale_' + tagBaseVec[ L1CondEnum.L1CaloHcalScale ]),
            type = cms.string('L1CaloHcalScale'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1GctJetFinderParamsRcd'),
            tag = cms.string('L1GctJetFinderParams_' + tagBaseVec[ L1CondEnum.L1GctJetFinderParams ]),
            type = cms.string('L1GctJetFinderParams'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1GtBoardMapsRcd'),
            tag = cms.string('L1GtBoardMaps_' + tagBaseVec[ L1CondEnum.L1GtBoardMaps ]),
            type = cms.string('L1GtBoardMaps'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1GtParametersRcd'),
            tag = cms.string('L1GtParameters_' + tagBaseVec[ L1CondEnum.L1GtParameters ]),
            type = cms.string('L1GtParameters'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1GtStableParametersRcd'),
            tag = cms.string('L1GtStableParameters_' + tagBaseVec[ L1CondEnum.L1GtStableParameters ]),
            type = cms.string('L1GtStableParameters'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1GtTriggerMaskVetoAlgoTrigRcd'),
            tag = cms.string('L1GtTriggerMaskVetoAlgoTrig_' + tagBaseVec[ L1CondEnum.L1GtTriggerMaskVetoAlgoTrig ]),
            type = cms.string('L1GtTriggerMask'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1GtTriggerMenuRcd'),
            tag = cms.string('L1GtTriggerMenu_' + tagBaseVec[ L1CondEnum.L1GtTriggerMenu ]),
            type = cms.string('L1GtTriggerMenu'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1GtPsbSetupRcd'),
            tag = cms.string('L1GtPsbSetup_' + tagBaseVec[ L1CondEnum.L1GtPsbSetup ]),
            type = cms.string('L1GtPsbSetup'),
            key = cms.string(objectKey)
        ), 
        cms.PSet(
            record = cms.string('L1CaloGeometryRecord'),
            tag = cms.string('L1CaloGeometry_' + tagBaseVec[ L1CondEnum.L1CaloGeometry ]),
            type = cms.string('L1CaloGeometry'),
            key = cms.string(objectKey)
        ))
        )

    from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
    initL1RSSubsystems( tagBaseVec,
                        objectKey,
                        objectKey,
                        objectKey,
                        objectKey,
                        objectKey,
                        objectKey,
                        objectKey,
                        objectKey,
                        objectKey )
    initL1Subsystems.params.recordInfo.extend(initL1RSSubsystems.params.recordInfo)
Esempio n. 6
0
    connect=cms.string(options.inputDBConnect),
    toPut=cms.VPSet(
        cms.PSet(
            record=cms.string("L1TriggerKeyRcd"),
            tag=cms.string("L1TriggerKey_" +
                           initL1O2OTags.tagBaseVec[L1CondEnum.L1TriggerKey])),
        cms.PSet(record=cms.string("L1TriggerKeyListRcd"),
                 tag=cms.string(
                     "L1TriggerKeyList_" +
                     initL1O2OTags.tagBaseVec[L1CondEnum.L1TriggerKeyList]))))
outputDB.DBParameters.authenticationPath = options.inputDBAuth

# PoolDBOutputService for printing out ESRecords
if options.printRSKeys == 1:
    from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
    initL1RSSubsystems(tagBaseVec=initL1O2OTags.tagBaseVec)
    outputDB.toPut.extend(initL1RSSubsystems.params.recordInfo)

process.add_(outputDB)

# Source of events
process.maxEvents = cms.untracked.PSet(input=cms.untracked.int32(1))
process.source = cms.Source("EmptyIOVSource",
                            timetype=cms.string('runnumber'),
                            firstValue=cms.uint64(options.runNumber),
                            lastValue=cms.uint64(options.runNumber),
                            interval=cms.uint64(1))

# Validation modules
process.load('CondTools.L1Trigger.L1O2OTestAnalyzer_cfi')
process.L1O2OTestAnalyzer.printPayloadTokens = False
Esempio n. 7
0
def initL1Subsystems(tagBaseVec=[], objectKey='dummy'):

    import FWCore.ParameterSet.Config as cms
    from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum

    if len(tagBaseVec) == 0:
        from CondTools.L1Trigger.L1UniformTags_cfi import initL1UniformTags
        initL1UniformTags()
        tagBaseVec = initL1UniformTags.tagBaseVec

    initL1Subsystems.params = cms.PSet(recordInfo=cms.VPSet(
        cms.PSet(record=cms.string('L1JetEtScaleRcd'),
                 tag=cms.string('L1JetEtScale_' +
                                tagBaseVec[L1CondEnum.L1JetEtScale]),
                 type=cms.string('L1CaloEtScale'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1EmEtScaleRcd'),
                 tag=cms.string('L1EmEtScale_' +
                                tagBaseVec[L1CondEnum.L1EmEtScale]),
                 type=cms.string('L1CaloEtScale'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1HtMissScaleRcd'),
                 tag=cms.string('L1HtMissScale_' +
                                tagBaseVec[L1CondEnum.L1HtMissScale]),
                 type=cms.string('L1CaloEtScale'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1HfRingEtScaleRcd'),
                 tag=cms.string('L1HfRingEtScale_' +
                                tagBaseVec[L1CondEnum.L1HfRingEtScale]),
                 type=cms.string('L1CaloEtScale'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuTriggerScalesRcd'),
                 tag=cms.string('L1MuTriggerScales_' +
                                tagBaseVec[L1CondEnum.L1MuTriggerScales]),
                 type=cms.string('L1MuTriggerScales'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuTriggerPtScaleRcd'),
                 tag=cms.string('L1MuTriggerPtScale_' +
                                tagBaseVec[L1CondEnum.L1MuTriggerPtScale]),
                 type=cms.string('L1MuTriggerPtScale'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuGMTScalesRcd'),
                 tag=cms.string('L1MuGMTScales_' +
                                tagBaseVec[L1CondEnum.L1MuGMTScales]),
                 type=cms.string('L1MuGMTScales'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuCSCTFConfigurationRcd'),
                 tag=cms.string('L1MuCSCTFConfiguration_' +
                                tagBaseVec[L1CondEnum.L1MuCSCTFConfiguration]),
                 type=cms.string('L1MuCSCTFConfiguration'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuCSCTFAlignmentRcd'),
                 tag=cms.string('L1MuCSCTFAlignment_' +
                                tagBaseVec[L1CondEnum.L1MuCSCTFAlignment]),
                 type=cms.string('L1MuCSCTFAlignment'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuCSCPtLutRcd'),
                 tag=cms.string('L1MuCSCPtLut_' +
                                tagBaseVec[L1CondEnum.L1MuCSCPtLut]),
                 type=cms.string('L1MuCSCPtLut'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuDTEtaPatternLutRcd'),
                 tag=cms.string('L1MuDTEtaPatternLut_' +
                                tagBaseVec[L1CondEnum.L1MuDTEtaPatternLut]),
                 type=cms.string('L1MuDTEtaPatternLut'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuDTExtLutRcd'),
                 tag=cms.string('L1MuDTExtLut_' +
                                tagBaseVec[L1CondEnum.L1MuDTExtLut]),
                 type=cms.string('L1MuDTExtLut'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuDTPhiLutRcd'),
                 tag=cms.string('L1MuDTPhiLut_' +
                                tagBaseVec[L1CondEnum.L1MuDTPhiLut]),
                 type=cms.string('L1MuDTPhiLut'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuDTPtaLutRcd'),
                 tag=cms.string('L1MuDTPtaLut_' +
                                tagBaseVec[L1CondEnum.L1MuDTPtaLut]),
                 type=cms.string('L1MuDTPtaLut'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuDTQualPatternLutRcd'),
                 tag=cms.string('L1MuDTQualPatternLut_' +
                                tagBaseVec[L1CondEnum.L1MuDTQualPatternLut]),
                 type=cms.string('L1MuDTQualPatternLut'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuDTTFParametersRcd'),
                 tag=cms.string('L1MuDTTFParameters_' +
                                tagBaseVec[L1CondEnum.L1MuDTTFParameters]),
                 type=cms.string('L1MuDTTFParameters'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1RPCConfigRcd'),
                 tag=cms.string('L1RPCConfig_' +
                                tagBaseVec[L1CondEnum.L1RPCConfig]),
                 type=cms.string('L1RPCConfig'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1RPCConeDefinitionRcd'),
                 tag=cms.string('L1RPCConeDefinition_' +
                                tagBaseVec[L1CondEnum.L1RPCConeDefinition]),
                 type=cms.string('L1RPCConeDefinition'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1RPCHsbConfigRcd'),
                 tag=cms.string('L1RPCHsbConfig_' +
                                tagBaseVec[L1CondEnum.L1RPCHsbConfig]),
                 type=cms.string('L1RPCHsbConfig'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1RPCBxOrConfigRcd'),
                 tag=cms.string('L1RPCBxOrConfig_' +
                                tagBaseVec[L1CondEnum.L1RPCBxOrConfig]),
                 type=cms.string('L1RPCBxOrConfig'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1MuGMTParametersRcd'),
                 tag=cms.string('L1MuGMTParameters_' +
                                tagBaseVec[L1CondEnum.L1MuGMTParameters]),
                 type=cms.string('L1MuGMTParameters'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1RCTParametersRcd'),
                 tag=cms.string('L1RCTParameters_' +
                                tagBaseVec[L1CondEnum.L1RCTParameters]),
                 type=cms.string('L1RCTParameters'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1CaloEcalScaleRcd'),
                 tag=cms.string('L1CaloEcalScale_' +
                                tagBaseVec[L1CondEnum.L1CaloEcalScale]),
                 type=cms.string('L1CaloEcalScale'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1CaloHcalScaleRcd'),
                 tag=cms.string('L1CaloHcalScale_' +
                                tagBaseVec[L1CondEnum.L1CaloHcalScale]),
                 type=cms.string('L1CaloHcalScale'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1GctJetFinderParamsRcd'),
                 tag=cms.string('L1GctJetFinderParams_' +
                                tagBaseVec[L1CondEnum.L1GctJetFinderParams]),
                 type=cms.string('L1GctJetFinderParams'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1GtBoardMapsRcd'),
                 tag=cms.string('L1GtBoardMaps_' +
                                tagBaseVec[L1CondEnum.L1GtBoardMaps]),
                 type=cms.string('L1GtBoardMaps'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1GtParametersRcd'),
                 tag=cms.string('L1GtParameters_' +
                                tagBaseVec[L1CondEnum.L1GtParameters]),
                 type=cms.string('L1GtParameters'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1GtStableParametersRcd'),
                 tag=cms.string('L1GtStableParameters_' +
                                tagBaseVec[L1CondEnum.L1GtStableParameters]),
                 type=cms.string('L1GtStableParameters'),
                 key=cms.string(objectKey)),
        cms.PSet(
            record=cms.string('L1GtTriggerMaskVetoAlgoTrigRcd'),
            tag=cms.string('L1GtTriggerMaskVetoAlgoTrig_' +
                           tagBaseVec[L1CondEnum.L1GtTriggerMaskVetoAlgoTrig]),
            type=cms.string('L1GtTriggerMask'),
            key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1GtTriggerMenuRcd'),
                 tag=cms.string('L1GtTriggerMenu_' +
                                tagBaseVec[L1CondEnum.L1GtTriggerMenu]),
                 type=cms.string('L1GtTriggerMenu'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1GtPsbSetupRcd'),
                 tag=cms.string('L1GtPsbSetup_' +
                                tagBaseVec[L1CondEnum.L1GtPsbSetup]),
                 type=cms.string('L1GtPsbSetup'),
                 key=cms.string(objectKey)),
        cms.PSet(record=cms.string('L1CaloGeometryRecord'),
                 tag=cms.string('L1CaloGeometry_' +
                                tagBaseVec[L1CondEnum.L1CaloGeometry]),
                 type=cms.string('L1CaloGeometry'),
                 key=cms.string(objectKey))))

    from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
    initL1RSSubsystems(tagBaseVec, objectKey, objectKey, objectKey, objectKey,
                       objectKey, objectKey, objectKey, objectKey, objectKey)
    initL1Subsystems.params.recordInfo.extend(
        initL1RSSubsystems.params.recordInfo)
Esempio n. 8
0
# Define CondDB tags
from CondTools.L1Trigger.L1CondEnum_cfi import L1CondEnum
from CondTools.L1Trigger.L1O2OTags_cfi import initL1O2OTags
initL1O2OTags()

if options.keysFromDB == 1:
    process.load("CondTools.L1Trigger.L1ConfigRSKeys_cff")
else:
    process.load("CondTools.L1Trigger.L1TriggerKeyDummy_cff")
    from CondTools.L1Trigger.L1RSSubsystemParams_cfi import initL1RSSubsystems
    initL1RSSubsystems( tagBaseVec = initL1O2OTags.tagBaseVec,
                        L1MuDTTFMasksRcdKey = options.L1MuDTTFMasksRcdKey,
                        L1MuGMTChannelMaskRcdKey = options.L1MuGMTChannelMaskRcdKey,
                        L1RCTChannelMaskRcdKey = options.L1RCTChannelMaskRcdKey,
                        L1GctChannelMaskRcdKey = options.L1GctChannelMaskRcdKey,
                        L1GtPrescaleFactorsAlgoTrigRcdKey = options.L1GtPrescaleFactorsAlgoTrigRcdKey,
                        L1GtPrescaleFactorsTechTrigRcdKey = options.L1GtPrescaleFactorsTechTrigRcdKey,
                        L1GtTriggerMaskAlgoTrigRcdKey = options.L1GtTriggerMaskAlgoTrigRcdKey,
                        L1GtTriggerMaskTechTrigRcdKey = options.L1GtTriggerMaskTechTrigRcdKey,
                        L1GtTriggerMaskVetoTechTrigRcdKey = options.L1GtTriggerMaskVetoTechTrigRcdKey,
                        includeL1RCTNoisyChannelMask = False )
    process.L1TriggerKeyDummy.objectKeys = initL1RSSubsystems.params.recordInfo                        

# Get L1TriggerKeyList from DB
process.load("CondCore.DBCommon.CondDBCommon_cfi")
process.outputDB = cms.ESSource("PoolDBESSource",
                                process.CondDBCommon,
                                toGet = cms.VPSet(cms.PSet(
    record = cms.string('L1TriggerKeyListRcd'),
    tag = cms.string('L1TriggerKeyList_' + initL1O2OTags.tagBaseVec[ L1CondEnum.L1TriggerKeyList ] )
    )),