CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DTT0DBValidation.DTT0DBValidation Class Reference

Public Member Functions

def __init__ (self, run, dir, input_files, output_dir, config=None)
 
def initProcess (self)
 
def run (self)
 

Public Attributes

 config
 
 configs
 
 dir
 
 input_files
 
 output_dir
 
 process
 
 pset_template
 
 runnumber
 
 task
 

Detailed Description

Definition at line 6 of file DTT0DBValidation.py.

Constructor & Destructor Documentation

def DTT0DBValidation.DTT0DBValidation.__init__ (   self,
  run,
  dir,
  input_files,
  output_dir,
  config = None 
)

Definition at line 7 of file DTT0DBValidation.py.

7  def __init__(self, run, dir, input_files, output_dir, config=None):
8  self.runnumber = int(run)
9  self.dir = dir
10  self.output_dir = output_dir
11  self.config = config
12  self.input_files = input_files
13 
14  self.pset_template = 'DQMOffline.CalibMuon.dtT0DBValidation_cfg'
15 
16  self.configs = []
17  self.initProcess()
18  self.task = CmsswTask(self.dir,self.configs)
19 
def __init__(self, run, dir, input_files, output_dir, config=None)

Member Function Documentation

def DTT0DBValidation.DTT0DBValidation.initProcess (   self)

Definition at line 20 of file DTT0DBValidation.py.

References DTAnalysisResiduals.DTAnalysisResiduals.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTDqm.DTDqm.config, DTResidualCalibration.DTResidualCalibration.config, DTT0DBValidation.DTT0DBValidation.config, DTDQMHarvesting.DTDQMHarvesting.config, DTNoiseCalibration.DTNoiseCalibration.config, preexistingValidation.PreexistingValidation.config, geometry.Alignables.config, DTCalibrationWorker.DTCalibrationWorker.config, plottingOptions.BasePlottingOptions.config, genericValidation.GenericValidation.config, and DTT0DBValidation.DTT0DBValidation.input_files.

20  def initProcess(self):
21  refDBTag = ''
22  if hasattr(self.config,'refDBTag') and self.config.refDBTag: refDBTag = self.config.refDBTag
23  connect = ''
24  if hasattr(self.config,'config.connectStrRefDBTag') and self.config.config.connectStrRefDBTag: connect = self.config.config.connectStrRefDBTag
25  runNumbersToFiles = []
26  if hasattr(self.config,'dbValidRuns') and self.config.dbValidRuns and len(self.config.dbValidRuns) == len(self.input_files): runNumbersToFiles = self.config.dbValidRuns
27 
28  self.process = {}
29  idx_file = 0
30  for inputFile in self.input_files:
31  file = os.path.abspath(inputFile)
32  fileLabel = os.path.basename(file).split('.')[0]
33  pset_name = 'dtT0DBValidation_%s_Run%d_cfg.py' % (fileLabel,self.runnumber)
34  self.process[pset_name] = loadCmsProcess(self.pset_template)
35  self.process[pset_name].source.firstRun = self.runnumber
36 
37  self.process[pset_name].tzeroRef.toGet = cms.VPSet(
38  cms.PSet(
39  record = cms.string('DTT0Rcd'),
40  tag = cms.string(refDBTag),
41  label = cms.untracked.string('tzeroRef')
42  ),
43  cms.PSet(
44  record = cms.string('DTT0Rcd'),
45  tag = cms.string('t0'),
46  connect = cms.untracked.string('sqlite_file:%s' % file),
47  label = cms.untracked.string('tzeroToValidate')
48  )
49  )
50  self.process[pset_name].tzeroRef.connect = connect
51 
52  if self.config:
53  label = 'dtT0DBValidation'
54  if hasattr(self.config,'label') and self.config.label: label = self.config.label
55  workflowName = dqmWorkflowName(self.config.datasetpath,label,self.config.trial)
56  self.process[pset_name].dqmSaver.workflow = workflowName
57 
58  if runNumbersToFiles: self.process[pset_name].dqmSaver.forceRunNumber = runNumbersToFiles[idx_file]
59  self.process[pset_name].dqmSaver.dirName = os.path.abspath(self.output_dir)
60 
61  self.configs.append(pset_name)
62  writeCfg(self.process[pset_name],self.dir,pset_name)
63  idx_file += 1
64 
def writeCfg(process, dir, psetName)
Definition: tools.py:158
def loadCmsProcess(psetPath)
Definition: tools.py:144
double split
Definition: MVATrainer.cc:139
def dqmWorkflowName(datasetpath, type, rev=1)
Definition: tools.py:23
def DTT0DBValidation.DTT0DBValidation.run (   self)

Definition at line 72 of file DTT0DBValidation.py.

Referenced by Types.EventID.cppID(), Types.LuminosityBlockID.cppID(), and o2olib.O2OTool.execute().

72  def run(self):
73  self.task.run()
74  return

Member Data Documentation

DTT0DBValidation.DTT0DBValidation.input_files

Definition at line 12 of file DTT0DBValidation.py.

Referenced by DTT0DBValidation.DTT0DBValidation.initProcess().

DTT0DBValidation.DTT0DBValidation.output_dir
DTT0DBValidation.DTT0DBValidation.process

Definition at line 28 of file DTT0DBValidation.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), DTValidSummary.DTValidSummary.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTTTrigValid.DTTTrigValid.initProcess(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_ALCA(), ConfigBuilder.ConfigBuilder.prepare_DQM(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.renameInputTagsInSequence(), ConfigBuilder.ConfigBuilder.scheduleSequence(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProperty(), DTValidSummary.DTValidSummary.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg().

DTT0DBValidation.DTT0DBValidation.task

Definition at line 18 of file DTT0DBValidation.py.