CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter 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 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  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 = ['dtVDriftMeanTimerWriter_cfg.py',
15  'dumpDBToFile_vdrift_cfg.py']
16 
17  self.pset_templates = {}
18  self.pset_templates['dtVDriftMeanTimerWriter_cfg.py'] = 'CalibMuon.DTCalibration.dtVDriftMeanTimerWriter_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 DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.initProcess (   self)

Definition at line 24 of file DTVDriftMeanTimerWriter.py.

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

24  def initProcess(self):
25  vDrift_meantimer = self.output_dir + '/' + 'vDrift_meantimer_' + str(self.runnumber)
26  vDrift_meantimer_db = os.path.abspath(vDrift_meantimer + '.db')
27  vDrift_meantimer_txt = os.path.abspath(vDrift_meantimer + '.txt')
28 
29  self.process = {}
30  # dtVDriftMeanTimerWriter
31  self.process['dtVDriftMeanTimerWriter_cfg.py'] = loadCmsProcess(self.pset_templates['dtVDriftMeanTimerWriter_cfg.py'])
32  self.process['dtVDriftMeanTimerWriter_cfg.py'].source.firstRun = self.runnumber
33  self.process['dtVDriftMeanTimerWriter_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['dtVDriftMeanTimerWriter_cfg.py'],
38  moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift',
39  connect = 'sqlite_file:%s' % self.config.inputVDriftDB)
40 
41  self.process['dtVDriftMeanTimerWriter_cfg.py'].PoolDBOutputService.connect = 'sqlite_file:%s' % vDrift_meantimer_db
42  self.process['dtVDriftMeanTimerWriter_cfg.py'].dtVDriftMeanTimerWriter.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_meantimer_db
47  self.process['dumpDBToFile_vdrift_cfg.py'].dumpToFile.outputFileName = vDrift_meantimer_txt
48 
def loadCmsProcess(psetPath)
Definition: tools.py:144
def DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.run (   self)

Definition at line 54 of file DTVDriftMeanTimerWriter.py.

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

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

Member Data Documentation

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.config
DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.input_file

Definition at line 11 of file DTVDriftMeanTimerWriter.py.

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.output_dir
DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process
DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.pset_templates

Definition at line 17 of file DTVDriftMeanTimerWriter.py.

DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.runnumber
DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.task

Definition at line 22 of file DTVDriftMeanTimerWriter.py.