Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-11-19 00:04:46

0001 from L1TriggerConfig.L1TConfigProducers.L1TUtmTriggerMenuOnline_cfi import *
0002 from L1TriggerConfig.L1TConfigProducers.L1TMuonBarrelParamsOnline_cfi import *
0003 from L1TriggerConfig.L1TConfigProducers.L1TMuonGlobalParamsOnline_cfi import *
0004 from L1TriggerConfig.L1TConfigProducers.L1TMuonOverlapParamsOnline_cfi import *
0005 from L1TriggerConfig.L1TConfigProducers.L1TMuonOverlapFwVersionOnline_cfi import *
0006 from L1TriggerConfig.L1TConfigProducers.L1TMuonEndCapParamsOnline_cfi import *
0007 from L1TriggerConfig.L1TConfigProducers.L1TMuonEndCapForestOnline_cfi import *
0008 from L1TriggerConfig.L1TConfigProducers.L1TCaloParamsOnline_cfi import *
0009 from L1TriggerConfig.L1TConfigProducers.L1TGlobalPrescalesVetosOnline_cfi import *
0010 
0011 def setTSCPayloadsDB(process, DBConnect, DBAuth, protoDBConnect, protoDBAuth):
0012 
0013     process.L1TCaloParamsOnlineProd.onlineDB           = cms.string( DBConnect )
0014     process.L1TGlobalPrescalesVetosOnlineProd.onlineDB = cms.string( DBConnect )
0015     process.L1TMuonBarrelParamsOnlineProd.onlineDB     = cms.string( DBConnect )
0016     process.L1TMuonEndCapParamsOnlineProd.onlineDB     = cms.string( DBConnect )
0017     process.L1TMuonEndCapForestOnlineProd.onlineDB     = cms.string( DBConnect )
0018     process.L1TMuonGlobalParamsOnlineProd.onlineDB     = cms.string( DBConnect )
0019     process.L1TMuonOverlapParamsOnlineProd.onlineDB    = cms.string( DBConnect )
0020     process.L1TMuonOverlapFwVersionOnlineProd.onlineDB = cms.string( DBConnect )
0021     process.L1TUtmTriggerMenuOnlineProd.onlineDB       = cms.string( DBConnect )
0022 
0023     process.L1TCaloParamsOnlineProd.onlineAuthentication           = cms.string( DBAuth )
0024     process.L1TGlobalPrescalesVetosOnlineProd.onlineAuthentication = cms.string( DBAuth )
0025     process.L1TMuonBarrelParamsOnlineProd.onlineAuthentication     = cms.string( DBAuth )
0026     process.L1TMuonEndCapParamsOnlineProd.onlineAuthentication     = cms.string( DBAuth )
0027     process.L1TMuonEndCapForestOnlineProd.onlineAuthentication     = cms.string( DBAuth )
0028     process.L1TMuonGlobalParamsOnlineProd.onlineAuthentication     = cms.string( DBAuth )
0029     process.L1TMuonOverlapParamsOnlineProd.onlineAuthentication    = cms.string( DBAuth )
0030     process.L1TMuonOverlapFwVersionOnlineProd.onlineAuthentication = cms.string( DBAuth )
0031     process.L1TUtmTriggerMenuOnlineProd.onlineAuthentication       = cms.string( DBAuth )
0032 
0033     process.l1caloparProtodb.connect                         = cms.string( protoDBConnect )
0034     process.l1bmtfparProtodb.connect                         = cms.string( protoDBConnect )
0035     process.l1emtfparProtodb.connect                         = cms.string( protoDBConnect )
0036 #    process.l1omtfparProtodb.connect                         = cms.string( protoDBConnect )
0037     process.l1gmtparProtodb.connect                          = cms.string( protoDBConnect )
0038     process.l1caloparProtodb.DBParameters.authenticationPath = cms.untracked.string( protoDBAuth )
0039     process.l1bmtfparProtodb.DBParameters.authenticationPath = cms.untracked.string( protoDBAuth )
0040     process.l1emtfparProtodb.DBParameters.authenticationPath = cms.untracked.string( protoDBAuth )
0041 #    process.l1omtfparProtodb.DBParameters.authenticationPath = cms.untracked.string( protoDBAuth )
0042     process.l1gmtparProtodb.DBParameters.authenticationPath  = cms.untracked.string( protoDBAuth )
0043 
0044 def liftPayloadSafetyFor(process, systems):
0045     if 'CALO' in systems:
0046         process.L1TCaloParamsOnlineProd.transactionSafe           = cms.bool(False)
0047 
0048     if 'uGTrs' in systems:
0049         process.L1TGlobalPrescalesVetosOnlineProd.transactionSafe = cms.bool(False)
0050 
0051     if 'BMTF' in systems:
0052         process.L1TMuonBarrelParamsOnlineProd.transactionSafe     = cms.bool(False)
0053 
0054     if 'EMTF' in systems:
0055         process.L1TMuonEndCapParamsOnlineProd.transactionSafe     = cms.bool(False)
0056         process.L1TMuonEndCapForestOnlineProd.transactionSafe     = cms.bool(False)
0057 
0058     if 'uGMT' in systems:
0059         process.L1TMuonGlobalParamsOnlineProd.transactionSafe     = cms.bool(False)
0060 
0061     if 'OMTF' in systems:
0062         process.L1TMuonOverlapParamsOnlineProd.transactionSafe    = cms.bool(False)
0063         process.L1TMuonOverlapFwVersionOnlineProd.transactionSafe = cms.bool(False)
0064