1 from tools
import loadCmsProcess,writeCfg
2 from addPoolDBESSource
import addPoolDBESSource
3 from CmsswTask
import CmsswTask
7 def __init__(self, run, dir, input_file, output_dir, config):
14 self.
configs = [
'dtVDriftMeanTimerWriter_cfg.py',
15 'dumpDBToFile_vdrift_cfg.py']
18 self.
pset_templates[
'dtVDriftMeanTimerWriter_cfg.py'] =
'CalibMuon.DTCalibration.dtVDriftMeanTimerWriter_cfg'
19 self.
pset_templates[
'dumpDBToFile_vdrift_cfg.py'] =
'CalibMuon.DTCalibration.dumpDBToFile_vdrift_cfg'
26 vDrift_meantimer_db = os.path.abspath(vDrift_meantimer +
'.db')
27 vDrift_meantimer_txt = os.path.abspath(vDrift_meantimer +
'.txt')
32 self.
process[
'dtVDriftMeanTimerWriter_cfg.py'].source.firstRun = self.
runnumber
33 self.
process[
'dtVDriftMeanTimerWriter_cfg.py'].GlobalTag.globaltag = self.config.globaltag
36 if hasattr(self.
config,
'inputVDriftDB')
and self.config.inputVDriftDB:
38 moduleName =
'vDriftDB',record =
'DTMtimeRcd',tag =
'vDrift',
39 connect =
'sqlite_file:%s' % self.config.inputVDriftDB)
41 self.
process[
'dtVDriftMeanTimerWriter_cfg.py'].PoolDBOutputService.connect =
'sqlite_file:%s' % vDrift_meantimer_db
42 self.
process[
'dtVDriftMeanTimerWriter_cfg.py'].dtVDriftMeanTimerWriter.vDriftAlgoConfig.rootFileName = self.
input_file
46 self.
process[
'dumpDBToFile_vdrift_cfg.py'].calibDB.connect =
'sqlite_file:%s' % vDrift_meantimer_db
47 self.
process[
'dumpDBToFile_vdrift_cfg.py'].dumpToFile.outputFileName = vDrift_meantimer_txt