CMS 3D CMS Logo

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

Public Member Functions

def __init__ (self, run, dir, result_dir, config)
 
def initProcess (self)
 
def run (self)
 
def writeCfg (self)
 

Public Attributes

 config
 
 configs
 
 dir
 
 process
 
 pset_templates
 
 result_dir
 
 runnumber
 
 task
 

Detailed Description

Definition at line 6 of file DTTTrigTimeBoxesWriter.py.

Constructor & Destructor Documentation

def DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.__init__ (   self,
  run,
  dir,
  result_dir,
  config 
)

Definition at line 7 of file DTTTrigTimeBoxesWriter.py.

7  def __init__(self, run, dir, result_dir, config):
8  self.runnumber = int(run)
9  self.config = config
10  self.dir = dir
11  self.result_dir = result_dir
12 
13  """
14  self.configs = ['dtTTrigWriter_cfg.py',
15  'dumpDBToFile_first_cfg.py',
16  'dtTTrigCorrection_cfg.py',
17  'dumpDBToFile_second_cfg.py']
18 
19  self.pset_templates = {'dtTTrigWriter_cfg.py':'CalibMuon.DTCalibration.dtTTrigWriter_cfg',
20  'dumpDBToFile_first_cfg.py':'CalibMuon.DTCalibration.dumpDBToFile_ttrig_cfg',
21  'dtTTrigCorrection_cfg.py':'CalibMuon.DTCalibration.dtTTrigCorrection_cfg',
22  'dumpDBToFile_second_cfg.py':'CalibMuon.DTCalibration.dumpDBToFile_ttrig_cfg'}
23  """
24  self.configs = ['dtTTrigWriter_cfg.py',
25  'dtTTrigCorrection_cfg.py',
26  'dumpDBToFile_ttrig_cfg.py']
27 
28  self.pset_templates = {'dtTTrigWriter_cfg.py':'CalibMuon.DTCalibration.dtTTrigWriter_cfg',
29  'dtTTrigCorrection_cfg.py':'CalibMuon.DTCalibration.dtTTrigCorrection_cfg',
30  'dumpDBToFile_ttrig_cfg.py':'CalibMuon.DTCalibration.dumpDBToFile_ttrig_cfg'}
31 
32 
33  self.initProcess()
34  self.task = CmsswTask(self.dir,self.configs)
35 
def __init__(self, run, dir, result_dir, config)

Member Function Documentation

def DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.initProcess (   self)

Definition at line 36 of file DTTTrigTimeBoxesWriter.py.

References DTDqm.DTDqm.result_dir, DTDQMMerge.DTDQMMerge.result_dir, DTDQMHarvesting.DTDQMHarvesting.result_dir, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.result_dir, DTTTrigCorrFirst.DTTTrigCorrFirst.result_dir, DTTTrigResidualCorr.DTTTrigResidualCorr.result_dir, DTDqm.DTDqm.runnumber, DTDQMMerge.DTDQMMerge.runnumber, DTDQMHarvesting.DTDQMHarvesting.runnumber, DTTTrigResidualCorr.DTTTrigResidualCorr.runnumber, DTT0DBValidation.DTT0DBValidation.runnumber, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.runnumber, DTTTrigCorrFirst.DTTTrigCorrFirst.runnumber, RawDataConverter.runnumber, and harvestTrackValidationPlots.str.

36  def initProcess(self):
37  timeBoxes = os.path.abspath( self.result_dir + '/' + 'DTTimeBoxes_' + str(self.runnumber) + '.root' )
38  ttrig_uncorrected_db = os.path.abspath( self.result_dir + '/' + 'ttrig_uncorrected_' + str(self.runnumber) + '.db' )
39  ttrig_timeboxes_db = os.path.abspath( self.result_dir + '/' + 'ttrig_timeboxes_' + str(self.runnumber) + '.db' )
40  ttrig_timeboxes_txt = os.path.abspath( self.result_dir + '/' + 'ttrig_timeboxes_' + str(self.runnumber) + '.txt' )
41 
42  self.process = {}
43  # dtTTrigWriter_cfg.py
44  self.process['dtTTrigWriter_cfg.py'] = loadCmsProcess(self.pset_templates['dtTTrigWriter_cfg.py'])
45  self.process['dtTTrigWriter_cfg.py'].dtTTrigWriter.rootFileName = timeBoxes
46  self.process['dtTTrigWriter_cfg.py'].PoolDBOutputService.connect = 'sqlite_file:%s' % ttrig_uncorrected_db
47 
48  # dtTTrigCorrection_cfg.py
49  self.process['dtTTrigCorrection_cfg.py'] = loadCmsProcess(self.pset_templates['dtTTrigCorrection_cfg.py'])
50  self.process['dtTTrigCorrection_cfg.py'].GlobalTag.globaltag = self.config.globaltag
51  self.process['dtTTrigCorrection_cfg.py'].source.firstRun = self.runnumber
52  addPoolDBESSource(process = self.process['dtTTrigCorrection_cfg.py'],
53  moduleName = 'calibDB',record = 'DTTtrigRcd',tag = 'ttrig',
54  connect = 'sqlite_file:%s' % ttrig_uncorrected_db)
55 
56  self.process['dtTTrigCorrection_cfg.py'].PoolDBOutputService.connect = 'sqlite_file:%s' % ttrig_timeboxes_db
57 
58  # dumpDBToFile_ttrig_cfg.py
59  self.process['dumpDBToFile_ttrig_cfg.py'] = loadCmsProcess(self.pset_templates['dumpDBToFile_ttrig_cfg.py'])
60  self.process['dumpDBToFile_ttrig_cfg.py'].calibDB.connect = 'sqlite_file:%s' % ttrig_timeboxes_db
61  self.process['dumpDBToFile_ttrig_cfg.py'].dumpToFile.outputFileName = ttrig_timeboxes_txt
62 
def loadCmsProcess(psetPath)
Definition: tools.py:144
def DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.run (   self)

Definition at line 68 of file DTTTrigTimeBoxesWriter.py.

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

68  def run(self):
69  self.task.run()
70  return
def DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg (   self)

Definition at line 63 of file DTTTrigTimeBoxesWriter.py.

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

Member Data Documentation

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process

Definition at line 42 of file DTTTrigTimeBoxesWriter.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), DTValidSummary.DTValidSummary.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTTTrigValid.DTTTrigValid.initProcess(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), ConfigBuilder.ConfigBuilder.prepare(), ConfigBuilder.ConfigBuilder.prepare_ALCA(), ConfigBuilder.ConfigBuilder.prepare_DQM(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), runTauIdMVA.TauIDEmbedder.processDeepProducer(), 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(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg().

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.pset_templates

Definition at line 28 of file DTTTrigTimeBoxesWriter.py.

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.result_dir
DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.task

Definition at line 34 of file DTTTrigTimeBoxesWriter.py.