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
DTVDriftSegmentWriter.DTVDriftSegmentWriter 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 DTVDriftSegmentWriter.py.

Constructor & Destructor Documentation

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

Definition at line 7 of file DTVDriftSegmentWriter.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 = ['dtVDriftSegmentWriter_cfg.py',
16  'dumpDBToFile_vdrift_cfg.py']
17 
18  self.pset_templates = {}
19  self.pset_templates['dtVDriftSegmentWriter_cfg.py'] = 'CalibMuon.DTCalibration.dtVDriftSegmentWriter_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 DTVDriftSegmentWriter.DTVDriftSegmentWriter.initProcess (   self)

Definition at line 24 of file DTVDriftSegmentWriter.py.

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

24 
25  def initProcess(self):
26  vDrift_segment = self.output_dir + '/' + 'vDrift_segment_' + str(self.runnumber)
27  vDrift_segment_db = os.path.abspath(vDrift_segment + '.db')
28  vDrift_segment_txt = os.path.abspath(vDrift_segment + '.txt')
29 
30  self.process = {}
31  # dtVDriftSegmentWriter
32  self.process['dtVDriftSegmentWriter_cfg.py'] = loadCmsProcess(self.pset_templates['dtVDriftSegmentWriter_cfg.py'])
33  self.process['dtVDriftSegmentWriter_cfg.py'].source.firstRun = self.runnumber
34  self.process['dtVDriftSegmentWriter_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['dtVDriftSegmentWriter_cfg.py'],
39  moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift',
40  connect = 'sqlite_file:%s' % self.config.inputVDriftDB)
41 
42  self.process['dtVDriftSegmentWriter_cfg.py'].PoolDBOutputService.connect = 'sqlite_file:%s' % vDrift_segment_db
43  self.process['dtVDriftSegmentWriter_cfg.py'].dtVDriftSegmentWriter.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_segment_db
48  self.process['dumpDBToFile_vdrift_cfg.py'].dumpToFile.outputFileName = vDrift_segment_txt
def loadCmsProcess
Definition: tools.py:144
def DTVDriftSegmentWriter.DTVDriftSegmentWriter.run (   self)

Definition at line 54 of file DTVDriftSegmentWriter.py.

Referenced by Types.LuminosityBlockID.cppID().

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

Definition at line 49 of file DTVDriftSegmentWriter.py.

References CmsswTask.CmsswTask.configs, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.configs, DTVDriftSegmentWriter.DTVDriftSegmentWriter.configs, DTTTrigCorrFirst.DTTTrigCorrFirst.configs, DTTTrigResidualCorr.DTTTrigResidualCorr.configs, DTT0DBValidation.DTT0DBValidation.configs, DTValidSummary.DTValidSummary.configs, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.configs, pos::PixelConfigList.configs, CmsswTask.CmsswTask.dir, DTDQMMerge.DTDQMMerge.dir, DTDqm.DTDqm.dir, DTDQMHarvesting.DTDQMHarvesting.dir, DTT0DBValidation.DTT0DBValidation.dir, DTValidSummary.DTValidSummary.dir, DTTTrigProd.DTTTrigProd.dir, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.dir, DTTTrigResidualCorr.DTTTrigResidualCorr.dir, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.dir, DTVDriftSegmentWriter.DTVDriftSegmentWriter.dir, CrabTask.CrabTask.dir, DTDQMValidation.DTDQMValidation.dir, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.dir, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.dir, DTResidualCalibration.DTResidualCalibration.dir, DTAnalysisResiduals.DTAnalysisResiduals.dir, DTNoiseCalibration.DTNoiseCalibration.dir, DTTTrigValid.DTTTrigValid.dir, DTTTrigCorrFirst.DTTTrigCorrFirst.dir, DTTTrigProd.DTTTrigProd.process, DTValidSummary.DTValidSummary.process, DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTDQMValidation.DTDQMValidation.process, DTTTrigValid.DTTTrigValid.process, DTT0DBValidation.DTT0DBValidation.process, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, DTVDriftSegmentWriter.DTVDriftSegmentWriter.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

DTVDriftSegmentWriter.DTVDriftSegmentWriter.config

Definition at line 9 of file DTVDriftSegmentWriter.py.

DTVDriftSegmentWriter.DTVDriftSegmentWriter.configs

Definition at line 14 of file DTVDriftSegmentWriter.py.

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

DTVDriftSegmentWriter.DTVDriftSegmentWriter.dir

Definition at line 10 of file DTVDriftSegmentWriter.py.

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

DTVDriftSegmentWriter.DTVDriftSegmentWriter.input_file

Definition at line 11 of file DTVDriftSegmentWriter.py.

DTVDriftSegmentWriter.DTVDriftSegmentWriter.output_dir

Definition at line 12 of file DTVDriftSegmentWriter.py.

Referenced by DTVDriftSegmentWriter.DTVDriftSegmentWriter.initProcess().

DTVDriftSegmentWriter.DTVDriftSegmentWriter.process

Definition at line 29 of file DTVDriftSegmentWriter.py.

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

DTVDriftSegmentWriter.DTVDriftSegmentWriter.pset_templates

Definition at line 17 of file DTVDriftSegmentWriter.py.

DTVDriftSegmentWriter.DTVDriftSegmentWriter.runnumber

Definition at line 8 of file DTVDriftSegmentWriter.py.

Referenced by DTVDriftSegmentWriter.DTVDriftSegmentWriter.initProcess().

DTVDriftSegmentWriter.DTVDriftSegmentWriter.task

Definition at line 22 of file DTVDriftSegmentWriter.py.