CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, run, dir, input_file, output_dir, config)
 
def initProcess (self)
 
def run (self)
 
def writeCfg (self)
 

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

Member Function Documentation

def DTVDriftSegmentWriter.DTVDriftSegmentWriter.initProcess (   self)

Definition at line 24 of file DTVDriftSegmentWriter.py.

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

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

Definition at line 54 of file DTVDriftSegmentWriter.py.

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

54  def run(self):
55  self.task.run()
56  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.

Member Data Documentation

DTVDriftSegmentWriter.DTVDriftSegmentWriter.config

Definition at line 9 of file DTVDriftSegmentWriter.py.

DTVDriftSegmentWriter.DTVDriftSegmentWriter.dir
DTVDriftSegmentWriter.DTVDriftSegmentWriter.input_file

Definition at line 11 of file DTVDriftSegmentWriter.py.

DTVDriftSegmentWriter.DTVDriftSegmentWriter.output_dir
DTVDriftSegmentWriter.DTVDriftSegmentWriter.pset_templates

Definition at line 17 of file DTVDriftSegmentWriter.py.

DTVDriftSegmentWriter.DTVDriftSegmentWriter.runnumber
DTVDriftSegmentWriter.DTVDriftSegmentWriter.task

Definition at line 22 of file DTVDriftSegmentWriter.py.