1 from tools
import loadCmsProcess,writeCfg
2 from addPoolDBESSource
import addPoolDBESSource
3 from CmsswTask
import CmsswTask
7 def __init__(self, run, dir, result_dir, config):
14 self.configs = ['dtTTrigWriter_cfg.py', 15 'dumpDBToFile_first_cfg.py', 16 'dtTTrigCorrection_cfg.py', 17 'dumpDBToFile_second_cfg.py'] 19 self.pset_templates = {'dtTTrigWriter_cfg.py':'CalibMuon.DTCalibration.dtTTrigWriter_cfg', 20 'dumpDBToFile_first_cfg.py':'CalibMuon.DTCalibration.dumpDBToFile_ttrig_cfg', 21 'dtTTrigCorrection_cfg.py':'CalibMuon.DTCalibration.dtTTrigCorrection_cfg', 22 'dumpDBToFile_second_cfg.py':'CalibMuon.DTCalibration.dumpDBToFile_ttrig_cfg'} 25 'dtTTrigCorrection_cfg.py',
26 'dumpDBToFile_ttrig_cfg.py']
28 self.
pset_templates = {
'dtTTrigWriter_cfg.py':
'CalibMuon.DTCalibration.dtTTrigWriter_cfg',
29 'dtTTrigCorrection_cfg.py':
'CalibMuon.DTCalibration.dtTTrigCorrection_cfg',
30 'dumpDBToFile_ttrig_cfg.py':
'CalibMuon.DTCalibration.dumpDBToFile_ttrig_cfg'}
38 ttrig_uncorrected_db = os.path.abspath( self.
result_dir +
'/' +
'ttrig_uncorrected_' +
str(self.
runnumber) +
'.db' )
39 ttrig_timeboxes_db = os.path.abspath( self.
result_dir +
'/' +
'ttrig_timeboxes_' +
str(self.
runnumber) +
'.db' )
40 ttrig_timeboxes_txt = os.path.abspath( self.
result_dir +
'/' +
'ttrig_timeboxes_' +
str(self.
runnumber) +
'.txt' )
45 self.
process[
'dtTTrigWriter_cfg.py'].dtTTrigWriter.rootFileName = timeBoxes
46 self.
process[
'dtTTrigWriter_cfg.py'].PoolDBOutputService.connect =
'sqlite_file:%s' % ttrig_uncorrected_db
50 self.
process[
'dtTTrigCorrection_cfg.py'].GlobalTag.globaltag = self.config.globaltag
53 moduleName =
'calibDB',record =
'DTTtrigRcd',tag =
'ttrig',
54 connect =
'sqlite_file:%s' % ttrig_uncorrected_db)
56 self.
process[
'dtTTrigCorrection_cfg.py'].PoolDBOutputService.connect =
'sqlite_file:%s' % ttrig_timeboxes_db
60 self.
process[
'dumpDBToFile_ttrig_cfg.py'].calibDB.connect =
'sqlite_file:%s' % ttrig_timeboxes_db
61 self.
process[
'dumpDBToFile_ttrig_cfg.py'].dumpToFile.outputFileName = ttrig_timeboxes_txt
def __init__(self, run, dir, result_dir, config)