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 = [
'dtVDriftSegmentWriter_cfg.py',
15 'dumpDBToFile_vdrift_cfg.py']
18 self.
pset_templates[
'dtVDriftSegmentWriter_cfg.py'] =
'CalibMuon.DTCalibration.dtVDriftSegmentWriter_cfg' 19 self.
pset_templates[
'dumpDBToFile_vdrift_cfg.py'] =
'CalibMuon.DTCalibration.dumpDBToFile_vdrift_cfg' 26 vDrift_segment_db = os.path.abspath(vDrift_segment +
'.db')
27 vDrift_segment_txt = os.path.abspath(vDrift_segment +
'.txt')
32 self.
process[
'dtVDriftSegmentWriter_cfg.py'].source.firstRun = self.
runnumber 33 self.
process[
'dtVDriftSegmentWriter_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[
'dtVDriftSegmentWriter_cfg.py'].PoolDBOutputService.connect =
'sqlite_file:%s' % vDrift_segment_db
42 self.
process[
'dtVDriftSegmentWriter_cfg.py'].dtVDriftSegmentWriter.vDriftAlgoConfig.rootFileName = self.
input_file 46 self.
process[
'dumpDBToFile_vdrift_cfg.py'].calibDB.connect =
'sqlite_file:%s' % vDrift_segment_db
47 self.
process[
'dumpDBToFile_vdrift_cfg.py'].dumpToFile.outputFileName = vDrift_segment_txt
def __init__(self, run, dir, input_file, output_dir, config)