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,
'inputDBTag')
and self.config.inputDBTag:
28 tag = self.config.inputDBTag
29 record = self.config.inputDBRcd
30 connect = self.config.connectStrDBTag
31 moduleName =
'customDB%s' % record
33 moduleName = moduleName,record = record,tag = tag,
36 if hasattr(self.
config,
'inputTTrigDB')
and self.config.inputTTrigDB:
38 if hasattr(self.
config,
'runOnCosmics')
and self.config.runOnCosmics: label =
'cosmics' 40 moduleName =
'tTrigDB',record =
'DTTtrigRcd',tag =
'ttrig',label = label,
41 connect =
'sqlite_file:%s' % os.path.abspath(self.config.inputTTrigDB))
43 if hasattr(self.
config,
'inputVDriftDB')
and self.config.inputVDriftDB:
45 moduleName =
'vDriftDB',record =
'DTMtimeRcd',tag =
'vDrift',
46 connect =
'sqlite_file:%s' % os.path.abspath(self.config.inputVDriftDB))
48 if hasattr(self.
config,
'inputT0DB')
and self.config.inputT0DB:
50 moduleName =
't0DB',record =
'DTT0Rcd',tag =
't0',
51 connect =
'sqlite_file:%s' % os.path.basename(self.config.inputT0DB))
53 self.process.source.fileNames = self.
dqm_files 54 self.process.dqmSaver.dirName = os.path.abspath(self.
result_dir)
56 label =
'dtDQMValidation' 57 if hasattr(self.
config,
'label')
and self.config.label: label = self.config.label
58 workflowName =
dqmWorkflowName(self.config.datasetpath,label,self.config.trial)
59 self.process.dqmSaver.workflow = workflowName
60 if self.process.DQMStore.collateHistograms ==
True: self.process.dqmSaver.forceRunNumber = self.
runnumber
def __init__(self, run, dir, dqm_files, result_dir, config=None)
def runDQM(run, dqmFile, result_dir)