test
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
DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter Class Reference

Public Member Functions

def __init__
 
def initProcess
 
def run
 
def writeCfg
 

Public Attributes

 config
 
 configs
 
 dir
 
 input_file
 
 output_dir
 
 process
 
 pset_templates
 
 runnumber
 
 task
 

Detailed Description

Definition at line 6 of file DTVDriftMeanTimerWriter.py.

Constructor & Destructor Documentation

def DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.__init__ (   self,
  run,
  dir,
  input_file,
  output_dir,
  config 
)

Definition at line 7 of file DTVDriftMeanTimerWriter.py.

7 
8  def __init__(self, run, dir, input_file, output_dir, config):
9  self.runnumber = int(run)
10  self.config = config
11  self.dir = dir
12  self.input_file = input_file
13  self.output_dir = output_dir
14 
15  self.configs = ['dtVDriftMeanTimerWriter_cfg.py',
16  'dumpDBToFile_vdrift_cfg.py']
17 
18  self.pset_templates = {}
19  self.pset_templates['dtVDriftMeanTimerWriter_cfg.py'] = 'CalibMuon.DTCalibration.dtVDriftMeanTimerWriter_cfg'
20  self.pset_templates['dumpDBToFile_vdrift_cfg.py'] = 'CalibMuon.DTCalibration.dumpDBToFile_vdrift_cfg'
21 
22  self.initProcess()
23  self.task = CmsswTask(self.dir,self.configs)

Member Function Documentation

def DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.initProcess (   self)

Definition at line 24 of file DTVDriftMeanTimerWriter.py.

References DTT0DBValidation.DTT0DBValidation.output_dir, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.output_dir, DTCalibrationWorker.DTCalibrationWorker.output_dir, DTDqm.DTDqm.runnumber, DTValidSummary.DTValidSummary.runnumber, DTDQMMerge.DTDQMMerge.runnumber, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.runnumber, DTTTrigResidualCorr.DTTTrigResidualCorr.runnumber, DTT0DBValidation.DTT0DBValidation.runnumber, DTDQMHarvesting.DTDQMHarvesting.runnumber, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.runnumber, DTTTrigCorrFirst.DTTTrigCorrFirst.runnumber, and RawDataConverter.runnumber.

24 
25  def initProcess(self):
26  vDrift_meantimer = self.output_dir + '/' + 'vDrift_meantimer_' + str(self.runnumber)
27  vDrift_meantimer_db = os.path.abspath(vDrift_meantimer + '.db')
28  vDrift_meantimer_txt = os.path.abspath(vDrift_meantimer + '.txt')
29 
30  self.process = {}
31  # dtVDriftMeanTimerWriter
32  self.process['dtVDriftMeanTimerWriter_cfg.py'] = loadCmsProcess(self.pset_templates['dtVDriftMeanTimerWriter_cfg.py'])
33  self.process['dtVDriftMeanTimerWriter_cfg.py'].source.firstRun = self.runnumber
34  self.process['dtVDriftMeanTimerWriter_cfg.py'].GlobalTag.globaltag = self.config.globaltag
35 
36  # Input vDrift db
37  if hasattr(self.config,'inputVDriftDB') and self.config.inputVDriftDB:
38  addPoolDBESSource(process = self.process['dtVDriftMeanTimerWriter_cfg.py'],
39  moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift',
40  connect = 'sqlite_file:%s' % self.config.inputVDriftDB)
41 
42  self.process['dtVDriftMeanTimerWriter_cfg.py'].PoolDBOutputService.connect = 'sqlite_file:%s' % vDrift_meantimer_db
43  self.process['dtVDriftMeanTimerWriter_cfg.py'].dtVDriftMeanTimerWriter.vDriftAlgoConfig.rootFileName = self.input_file
44 
45  # dumpDBToFile
46  self.process['dumpDBToFile_vdrift_cfg.py'] = loadCmsProcess(self.pset_templates['dumpDBToFile_vdrift_cfg.py'])
47  self.process['dumpDBToFile_vdrift_cfg.py'].calibDB.connect = 'sqlite_file:%s' % vDrift_meantimer_db
48  self.process['dumpDBToFile_vdrift_cfg.py'].dumpToFile.outputFileName = vDrift_meantimer_txt
def loadCmsProcess
Definition: tools.py:144
def DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.run (   self)

Definition at line 54 of file DTVDriftMeanTimerWriter.py.

Referenced by Types.EventID.cppID(), and Types.LuminosityBlockID.cppID().

54 
55  def run(self):
56  self.task.run()
57  return
def DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg (   self)

Definition at line 49 of file DTVDriftMeanTimerWriter.py.

References CmsswTask.CmsswTask.configs, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.configs, DTTTrigCorrFirst.DTTTrigCorrFirst.configs, DTTTrigResidualCorr.DTTTrigResidualCorr.configs, DTT0DBValidation.DTT0DBValidation.configs, DTValidSummary.DTValidSummary.configs, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.configs, pos::PixelConfigList.configs, CmsswTask.CmsswTask.dir, DTDqm.DTDqm.dir, DTDQMMerge.DTDQMMerge.dir, DTT0DBValidation.DTT0DBValidation.dir, DTValidSummary.DTValidSummary.dir, DTDQMHarvesting.DTDQMHarvesting.dir, DTTTrigProd.DTTTrigProd.dir, DTTTrigResidualCorr.DTTTrigResidualCorr.dir, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.dir, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.dir, CrabTask.CrabTask.dir, DTResidualCalibration.DTResidualCalibration.dir, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.dir, DTAnalysisResiduals.DTAnalysisResiduals.dir, DTDQMValidation.DTDQMValidation.dir, DTNoiseCalibration.DTNoiseCalibration.dir, DTTTrigCorrFirst.DTTTrigCorrFirst.dir, DTTTrigValid.DTTTrigValid.dir, DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTValidSummary.DTValidSummary.process, DTDQMMerge.DTDQMMerge.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTTTrigValid.DTTTrigValid.process, DTDQMValidation.DTDQMValidation.process, DTT0DBValidation.DTT0DBValidation.process, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, DTTTrigResidualCorr.DTTTrigResidualCorr.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, and DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process.

49 
50  def writeCfg(self):
51  for cfg in self.configs:
52  writeCfg(self.process[cfg],self.dir,cfg)
53  #writeCfgPkl(self.process[cfg],self.dir,cfg)

Member Data Documentation

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.config

Definition at line 9 of file DTVDriftMeanTimerWriter.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess().

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.configs

Definition at line 14 of file DTVDriftMeanTimerWriter.py.

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

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.dir

Definition at line 10 of file DTVDriftMeanTimerWriter.py.

Referenced by Inspector.Inspector.GetListObjects(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.input_file

Definition at line 11 of file DTVDriftMeanTimerWriter.py.

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.output_dir

Definition at line 12 of file DTVDriftMeanTimerWriter.py.

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

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process

Definition at line 29 of file DTVDriftMeanTimerWriter.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.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(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.pset_templates

Definition at line 17 of file DTVDriftMeanTimerWriter.py.

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.runnumber

Definition at line 8 of file DTVDriftMeanTimerWriter.py.

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

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.task

Definition at line 22 of file DTVDriftMeanTimerWriter.py.