Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 12:47:47

0001 import FWCore.ParameterSet.Config as cms
0002 
0003 class config: pass
0004 #config.runNumber = 186323
0005 config.runNumber = 186760
0006 #config.runNumber = 186744
0007 #config.refTag = 'DT_t0_cosmic2009_V01_express'
0008 config.refTag = 't0Fake_20X_Sept15_mc'
0009 #config.connect_ref = 'oracle://cms_orcoff_prod/CMS_COND_31X_DT'
0010 config.connect_ref = 'oracle://cms_orcoff_prod/CMS_COND_31X_FROM21X'
0011 
0012 #config.t0DB = 'dtT0WireCalibration-Run186323-v4/res/t0_1_1_s1L.db'
0013 #config.t0DB = 'dtT0WireCalibration-Run186760-v1/res/t0_1_1_gPo.db'
0014 #config.t0DB = 'dtT0WireCalibration-Run186744-v2/res/t0_1_1_WKl.db'
0015 #config.t0DB = 'Run186323-dtT0WireCalibration-Run186323-v4/Results/t0_correction_chamber_Wh2_MB2_Sec12_t0-MiniDaq-Run173264_186323.db'
0016 #config.t0DB = 'Run186323-dtT0WireCalibration-Run186323-v4/Results/t0_correction_Ch_Wh2_MB2_Sec12-FillMissing-MiniDaq-Run173264_t0_186323.db'
0017 #config.t0DB = 'Run186323-dtT0WireCalibration-Run186323-v4/Results/t0_correction_Ch_Wh2_MB2_Sec12-FillMissing-MiniDaq_Run2011A_Run173264_t0_186323.db'
0018 #config.t0DB = 'Run186323-dtT0WireCalibration-Run186323-v4/Results/t0_correction_Ch_Wh-2_MB2_Sec12_Wh2_MB3_Sec12_Wh-1_MB4_Sec1-FillMissing-MiniDaq_Run2011A_Run173264_t0_186323.db'
0019 #config.t0DB = 'dtT0WireCalibration-ReferenceWireInLayer-Run186323-v1/res/t0_1_1_YZD.db'
0020 #config.t0DB = 'dtT0WireCalibration-ReferenceWireInLayer-Run186760-v1/res/t0_1_1_RA4.db'
0021 #config.t0DB = 'Run186323-dtT0WireCalibration-AbsoluteT0-Run186323-v1/Results/t0_correction_absolute_reference_All_186323.db'
0022 config.t0DB = 'Run186760-dtT0WireCalibration-AbsoluteT0-Run186760-v1/Results/t0_correction_absolute_reference_All_186760.db'
0023 
0024 config.dataset = '/MiniDaq/Commissioning12-v1/RAW'
0025 #config.desc = 'dtT0DBValidation'
0026 #config.desc = 'dtT0DBValidation-NewThreshold'
0027 #config.desc = 'dtT0DBValidation-T0Corr'
0028 #config.desc = 'dtT0DBValidation-T0Corr_Ch_Wh2_MB2_Sec12'
0029 #config.desc = 'dtT0DBValidation-T0Corr_Ch_Wh2_MB2_Sec12_FillMissing'
0030 #config.desc = 'dtT0DBValidation-T0Corr_Ch_Wh2_MB2_Sec12_FillMissing_MiniDaq_Run2011A_Run173264'
0031 #config.desc = 'dtT0DBValidation-T0Corr_Ch_Wh-2_MB2_Sec12_Wh2_MB3_Sec12_Wh-1_MB4_Sec1_FillMissing_MiniDaq_Run2011A_Run173264'
0032 #config.desc = 'dtT0DBValidation_t0Fake_20X_Sept15_mc'
0033 config.desc = 'dtT0DBValidation-AbsoluteReference_t0Fake_20X_Sept15_mc'
0034 config.outputdir = '.'
0035 config.trial = 1
0036 
0037 # Further config.
0038 dataset_vec = config.dataset.split('/')
0039 config.workflowName = '/%s/%s-%s-rev%d/%s' % (dataset_vec[1],
0040                                               dataset_vec[2],
0041                                               config.desc,
0042                                               config.trial,
0043                                               dataset_vec[3])
0044 
0045 from DQMOffline.CalibMuon.dtT0DBValidation_cfg import process
0046 process.source.firstRun = config.runNumber
0047 process.tzeroRef.toGet = cms.VPSet(
0048     cms.PSet(
0049         record = cms.string('DTT0Rcd'),
0050         tag = cms.string(config.refTag),
0051         connect = cms.untracked.string( config.connect_ref ),
0052         label = cms.untracked.string('tzeroRef')
0053     ),
0054     cms.PSet(
0055         record = cms.string('DTT0Rcd'),
0056         tag = cms.string('t0'),
0057         connect = cms.untracked.string('sqlite_file:%s' % config.t0DB),
0058         label = cms.untracked.string('tzeroToValidate')
0059     )
0060 )
0061 process.dqmSaver.workflow = config.workflowName
0062 process.dqmSaver.dirName = config.outputdir
0063 
0064 process.qTester.qtList = 'DQMOffline/CalibMuon/data/QualityTests.xml'
0065 #process.qTester.qtList = 'DQMOffline/CalibMuon/data/QualityTests_new.xml'