1 from tools
import loadCmsProcess,writeCfg,dqmWorkflowName
2 from addPoolDBESSource
import addPoolDBESSource
3 from CmsswTask
import *
7 def __init__(self, run, dir, dqm_files, result_dir, config=None):
25 self.process.GlobalTag.globaltag = self.config.globaltag
27 if hasattr(self.
config,
'inputTTrigDB')
and self.config.inputTTrigDB:
29 if hasattr(self.
config,
'runOnCosmics')
and self.config.runOnCosmics: label =
'cosmics'
31 moduleName =
'tTrigDB',record =
'DTTtrigRcd',tag =
'ttrig',label = label,
32 connect =
'sqlite_file:%s' % os.path.abspath(self.config.inputTTrigDB))
34 if hasattr(self.
config,
'inputVDriftDB')
and self.config.inputVDriftDB:
36 moduleName =
'vDriftDB',record =
'DTMtimeRcd',tag =
'vDrift',
37 connect =
'sqlite_file:%s' % os.path.abspath(self.config.inputVDriftDB))
39 if hasattr(self.
config,
'inputDBTag')
and self.config.inputDBTag:
40 tag = self.config.inputDBTag
41 record = self.config.inputDBRcd
42 connect = self.config.connectStrDBTag
43 moduleName =
'customDB%s' % record
45 moduleName = moduleName,record = record,tag = tag,
48 self.process.source.fileNames = self.
dqm_files
49 self.process.dqmSaver.dirName = os.path.abspath(self.
result_dir)
51 label =
'dtDQMValidation'
52 if hasattr(self.
config,
'label')
and self.config.label: label = self.config.label
54 self.process.dqmSaver.workflow = workflowName
55 if self.process.DQMStore.collateHistograms ==
True: self.process.dqmSaver.forceRunNumber = self.
runnumber