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
DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter Class Reference

Public Member Functions

def __init__
 
def initProcess
 
def run
 
def writeCfg
 

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

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, DTCalibrationWorker.DTCalibrationWorker.result_dir, DTDqm.DTDqm.runnumber, DTDQMMerge.DTDQMMerge.runnumber, DTTTrigResidualCorr.DTTTrigResidualCorr.runnumber, DTT0DBValidation.DTT0DBValidation.runnumber, DTDQMHarvesting.DTDQMHarvesting.runnumber, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.runnumber, DTTTrigCorrFirst.DTTTrigCorrFirst.runnumber, and RawDataConverter.runnumber.

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

Definition at line 68 of file DTTTrigTimeBoxesWriter.py.

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

68 
69  def run(self):
70  self.task.run()
71  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.

63 
64  def writeCfg(self):
65  for cfg in self.configs:
66  writeCfg(self.process[cfg],self.dir,cfg)
67  #writeCfgPkl(self.process[cfg],self.dir,cfg)

Member Data Documentation

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config

Definition at line 9 of file DTTTrigTimeBoxesWriter.py.

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

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.configs

Definition at line 24 of file DTTTrigTimeBoxesWriter.py.

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

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.dir

Definition at line 10 of file DTTTrigTimeBoxesWriter.py.

Referenced by Inspector.Inspector.GetListObjects(), DTValidSummary.DTValidSummary.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg().

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process

Definition at line 42 of file DTTTrigTimeBoxesWriter.py.

Referenced by ConfigBuilder.ConfigBuilder.__init__(), ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.anyOf(), 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_FASTSIM(), ConfigBuilder.ConfigBuilder.prepare_HARVESTING(), ConfigBuilder.ConfigBuilder.prepare_HLT(), ConfigBuilder.ConfigBuilder.prepare_LHE(), ConfigBuilder.ConfigBuilder.prepare_PATFILTER(), 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(), DTValidSummary.DTValidSummary.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.pset_templates

Definition at line 28 of file DTTTrigTimeBoxesWriter.py.

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.result_dir

Definition at line 11 of file DTTTrigTimeBoxesWriter.py.

Referenced by DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.initProcess().

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.runnumber

Definition at line 8 of file DTTTrigTimeBoxesWriter.py.

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

DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.task

Definition at line 34 of file DTTTrigTimeBoxesWriter.py.