def customise_csc_cond_ungangedME11A_mc(process): """ Pick up upgrade condions data directly from DB tags using ESPrefer's. Might be useful when dealing with a global tag that doesn't include 'unganged' CSC conditions. """ myconds = [('CSCDBGainsRcd', 'CSCDBGains_ungangedME11A_mc'), ('CSCDBNoiseMatrixRcd', 'CSCDBNoiseMatrix_ungangedME11A_mc'), ('CSCDBCrosstalkRcd', 'CSCDBCrosstalk_ungangedME11A_mc'), ('CSCDBPedestalsRcd', 'CSCDBPedestals_ungangedME11A_mc'), ('CSCDBGasGainCorrectionRcd', 'CSCDBGasGainCorrection_ungangedME11A_mc'), ('CSCDBChipSpeedCorrectionRcd', 'CSCDBChipSpeedCorrection_ungangedME11A_mc')] from CalibMuon.Configuration.getCSCConditions_frontier_cff import cscConditions for (classname, tag) in myconds: print classname, tag sourcename = 'unganged_' + classname process.__setattr__(sourcename, cscConditions.clone()) process.__getattribute__(sourcename).toGet = cms.VPSet( cms.PSet(record=cms.string(classname), tag=cms.string(tag))) process.__getattribute__(sourcename).connect = cms.string( 'frontier://FrontierProd/CMS_COND_CSC_000') process.__setattr__('esp_' + classname, cms.ESPrefer("PoolDBESSource", sourcename)) del cscConditions return process
def customise_csc_cond_ungangedME11A_mc(process): """ Pick up upgrade condions data directly from DB tags using ESPrefer's. Might be useful when dealing with a global tag that doesn't include 'unganged' CSC conditions. """ myconds = [ ('CSCDBGainsRcd', 'CSCDBGains_ungangedME11A_mc'), ('CSCDBNoiseMatrixRcd', 'CSCDBNoiseMatrix_ungangedME11A_mc'), ('CSCDBCrosstalkRcd', 'CSCDBCrosstalk_ungangedME11A_mc'), ('CSCDBPedestalsRcd', 'CSCDBPedestals_ungangedME11A_mc'), ('CSCDBGasGainCorrectionRcd', 'CSCDBGasGainCorrection_ungangedME11A_mc'), ('CSCDBChipSpeedCorrectionRcd', 'CSCDBChipSpeedCorrection_ungangedME11A_mc') ] from CalibMuon.Configuration.getCSCConditions_frontier_cff import cscConditions for (classname, tag) in myconds: print classname, tag sourcename = 'unganged_' + classname process.__setattr__(sourcename, cscConditions.clone()) process.__getattribute__(sourcename).toGet = cms.VPSet( cms.PSet( record = cms.string(classname), tag = cms.string(tag)) ) process.__getattribute__(sourcename).connect = cms.string('frontier://FrontierProd/CMS_COND_CSC_000') process.__setattr__('esp_' + classname, cms.ESPrefer("PoolDBESSource", sourcename) ) del cscConditions return process
def customise_csc_cond_ungangedME11A_mc(process): myconds = [ ('CSCDBGainsRcd', 'CSCDBGains_ungangedME11A_mc'), ('CSCDBNoiseMatrixRcd', 'CSCDBNoiseMatrix_ungangedME11A_mc'), ('CSCDBCrosstalkRcd', 'CSCDBCrosstalk_ungangedME11A_mc'), ('CSCDBPedestalsRcd', 'CSCDBPedestals_ungangedME11A_mc'), ('CSCDBGasGainCorrectionRcd', 'CSCDBGasGainCorrection_ungangedME11A_mc'), ('CSCDBChipSpeedCorrectionRcd', 'CSCDBChipSpeedCorrection_ungangedME11A_mc') ] from CalibMuon.Configuration.getCSCConditions_frontier_cff import cscConditions for (classname, tag) in myconds: print classname, tag sourcename = 'unganged_' + classname process.__setattr__(sourcename, cscConditions.clone()) process.__getattribute__(sourcename).toGet = cms.VPSet( cms.PSet( record = cms.string(classname), tag = cms.string(tag)) ) process.__getattribute__(sourcename).connect = cms.string('frontier://FrontierProd/CMS_COND_CSC_000') process.__setattr__('esp_' + classname, cms.ESPrefer("PoolDBESSource", sourcename) ) del cscConditions return process
'unganged' CSC conditions. """ myconds = [('CSCDBGainsRcd', 'CSCDBGains_ungangedME11A_mc'), ('CSCDBNoiseMatrixRcd', 'CSCDBNoiseMatrix_ungangedME11A_mc'), ('CSCDBCrosstalkRcd', 'CSCDBCrosstalk_ungangedME11A_mc'), ('CSCDBPedestalsRcd', 'CSCDBPedestals_ungangedME11A_mc'), ('CSCDBGasGainCorrectionRcd', 'CSCDBGasGainCorrection_ungangedME11A_mc'), ('CSCDBChipSpeedCorrectionRcd', 'CSCDBChipSpeedCorrection_ungangedME11A_mc')] from CalibMuon.Configuration.getCSCConditions_frontier_cff import cscConditions for (classname, tag) in myconds: print(classname, tag) sourcename = 'unganged_' + classname process.__setattr__(sourcename, cscConditions.clone()) process.__getattribute__(sourcename).toGet = cms.VPSet( cms.PSet(record=cms.string(classname), tag=cms.string(tag))) process.__getattribute__(sourcename).connect = cms.string( 'frontier://FrontierProd/CMS_COND_CSC_000') process.__setattr__('esp_' + classname, cms.ESPrefer("PoolDBESSource", sourcename)) del cscConditions #-------------------------- # Web Service #-------------------------- #process.ModuleWebRegistry = cms.Service("ModuleWebRegistry") #process.AdaptorConfig = cms.Service("AdaptorConfig")
'unganged' CSC conditions. """ myconds = [ ('CSCDBGainsRcd', 'CSCDBGains_ungangedME11A_mc'), ('CSCDBNoiseMatrixRcd', 'CSCDBNoiseMatrix_ungangedME11A_mc'), ('CSCDBCrosstalkRcd', 'CSCDBCrosstalk_ungangedME11A_mc'), ('CSCDBPedestalsRcd', 'CSCDBPedestals_ungangedME11A_mc'), ('CSCDBGasGainCorrectionRcd', 'CSCDBGasGainCorrection_ungangedME11A_mc'), ('CSCDBChipSpeedCorrectionRcd', 'CSCDBChipSpeedCorrection_ungangedME11A_mc') ] from CalibMuon.Configuration.getCSCConditions_frontier_cff import cscConditions for (classname, tag) in myconds: print classname, tag sourcename = 'unganged_' + classname process.__setattr__(sourcename, cscConditions.clone()) process.__getattribute__(sourcename).toGet = cms.VPSet( cms.PSet( record = cms.string(classname), tag = cms.string(tag)) ) process.__getattribute__(sourcename).connect = cms.string('frontier://FrontierProd/CMS_COND_CSC_000') process.__setattr__('esp_' + classname, cms.ESPrefer("PoolDBESSource", sourcename) ) del cscConditions #-------------------------- # Web Service #-------------------------- #process.ModuleWebRegistry = cms.Service("ModuleWebRegistry") #process.AdaptorConfig = cms.Service("AdaptorConfig") #-------------------------- # Message Logger