Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:52:19

0001 from L1TriggerConfig.L1TConfigProducers.L1TUtmTriggerMenuObjectKeysOnline_cfi import *
0002 from L1TriggerConfig.L1TConfigProducers.L1TMuonBarrelObjectKeysOnline_cfi import *
0003 from L1TriggerConfig.L1TConfigProducers.L1TMuonGlobalObjectKeysOnline_cfi import *
0004 from L1TriggerConfig.L1TConfigProducers.L1TMuonOverlapObjectKeysOnline_cfi import *
0005 from L1TriggerConfig.L1TConfigProducers.L1TMuonEndCapObjectKeysOnline_cfi import *
0006 from L1TriggerConfig.L1TConfigProducers.L1TCaloParamsObjectKeysOnline_cfi import *
0007 from L1TriggerConfig.L1TConfigProducers.L1TGlobalPrescalesVetosObjectKeysOnline_cfi import *
0008 
0009 def setTSCKeysDB(process, DBConnect, DBAuth):
0010 
0011     process.L1TCaloParamsObjectKeysOnline.onlineDB           = cms.string( DBConnect )
0012     process.L1TGlobalPrescalesVetosObjectKeysOnline.onlineDB = cms.string( DBConnect )
0013     process.L1TMuonBarrelObjectKeysOnline.onlineDB           = cms.string( DBConnect )
0014     process.L1TMuonEndCapObjectKeysOnline.onlineDB           = cms.string( DBConnect )
0015     process.L1TMuonGlobalObjectKeysOnline.onlineDB           = cms.string( DBConnect )
0016     process.L1TMuonOverlapObjectKeysOnline.onlineDB          = cms.string( DBConnect )
0017     process.L1TUtmTriggerMenuObjectKeysOnline.onlineDB       = cms.string( DBConnect )
0018 
0019     process.L1TCaloParamsObjectKeysOnline.onlineAuthentication           = cms.string( DBAuth )
0020     process.L1TGlobalPrescalesVetosObjectKeysOnline.onlineAuthentication = cms.string( DBAuth )
0021     process.L1TMuonBarrelObjectKeysOnline.onlineAuthentication           = cms.string( DBAuth )
0022     process.L1TMuonEndCapObjectKeysOnline.onlineAuthentication           = cms.string( DBAuth )
0023     process.L1TMuonGlobalObjectKeysOnline.onlineAuthentication           = cms.string( DBAuth )
0024     process.L1TMuonOverlapObjectKeysOnline.onlineAuthentication          = cms.string( DBAuth )
0025     process.L1TUtmTriggerMenuObjectKeysOnline.onlineAuthentication       = cms.string( DBAuth )
0026 
0027 
0028 def liftKeySafetyFor(process, systems):
0029     if 'CALO' in systems:
0030         process.L1TCaloParamsObjectKeysOnline.transactionSafe           = cms.bool(False)
0031 
0032     if 'uGTrs' in systems:
0033         process.L1TGlobalPrescalesVetosObjectKeysOnline.transactionSafe = cms.bool(False)
0034 
0035     if 'BMTF' in systems:
0036         process.L1TMuonBarrelObjectKeysOnline.transactionSafe           = cms.bool(False)
0037 
0038     if 'EMTF' in systems:
0039         process.L1TMuonEndCapObjectKeysOnline.transactionSafe           = cms.bool(False)
0040 
0041     if 'uGMT' in systems:
0042         process.L1TMuonGlobalObjectKeysOnline.transactionSafe           = cms.bool(False)
0043 
0044     if 'OMTF' in systems:
0045         process.L1TMuonOverlapObjectKeysOnline.transactionSafe          = cms.bool(False)