CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
DTT0DBValidation.DTT0DBValidation Class Reference

Public Member Functions

def __init__
 
def initProcess
 
def run
 

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 
)

Member Function Documentation

def DTT0DBValidation.DTT0DBValidation.initProcess (   self)

Definition at line 20 of file DTT0DBValidation.py.

References DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTResidualCalibration.DTResidualCalibration.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTT0DBValidation.DTT0DBValidation.config, DTNoiseCalibration.DTNoiseCalibration.config, DTDQMHarvesting.DTDQMHarvesting.config, genericValidation.GenericValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, and DTT0DBValidation.DTT0DBValidation.input_files.

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

Definition at line 72 of file DTT0DBValidation.py.

Referenced by Types.LuminosityBlockID.cppID().

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

Member Data Documentation

DTT0DBValidation.DTT0DBValidation.config

Definition at line 11 of file DTT0DBValidation.py.

Referenced by DTTTrigProd.DTTTrigProd.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTT0DBValidation.DTT0DBValidation.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().

DTT0DBValidation.DTT0DBValidation.configs

Definition at line 16 of file DTT0DBValidation.py.

Referenced by python.rootplot.core.Options.arguments(), python.rootplot.core.Options.process_configs(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), and DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg().

DTT0DBValidation.DTT0DBValidation.dir

Definition at line 9 of file DTT0DBValidation.py.

Referenced by Inspector.Inspector.GetListObjects(), 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.input_files

Definition at line 12 of file DTT0DBValidation.py.

Referenced by DTT0DBValidation.DTT0DBValidation.initProcess().

DTT0DBValidation.DTT0DBValidation.output_dir

Definition at line 10 of file DTT0DBValidation.py.

Referenced by DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.initProcess(), and DTVDriftSegmentWriter.DTVDriftSegmentWriter.initProcess().

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_FASTSIM(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), 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(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.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.pset_template

Definition at line 14 of file DTT0DBValidation.py.

Referenced by DTValidSummary.DTValidSummary.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().

DTT0DBValidation.DTT0DBValidation.runnumber

Definition at line 8 of file DTT0DBValidation.py.

Referenced by DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.initProcess(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.initProcess(), DTTTrigResidualCorr.DTTTrigResidualCorr.initProcess(), DTTTrigCorrFirst.DTTTrigCorrFirst.initProcess(), and DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.initProcess().

DTT0DBValidation.DTT0DBValidation.task

Definition at line 18 of file DTT0DBValidation.py.