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 | Static Public Attributes
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration Class Reference

Public Member Functions

def __init__
 
def initCrab
 
def initProcess
 
def run
 
def writeCfg
 

Public Attributes

 config
 
 crab_cfg
 
 dir
 
 outputfile
 
 process
 
 project
 
 pset_name
 
 pset_template
 
 task
 

Static Public Attributes

 connect = self.config.connectStrDBTag
 
string moduleName = 'customDB%s'
 
 moduleName = tag,
 
tuple pathsequence = self.config.preselection.split(':')
 
 record = self.config.inputDBRcd
 
tuple seqname = self.config.preselection.split(':')
 
 tag = self.config.inputDBTag
 

Detailed Description

Definition at line 6 of file DTVDriftSegmentCalibration.py.

Constructor & Destructor Documentation

def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.__init__ (   self,
  run,
  dir,
  config 
)

Definition at line 7 of file DTVDriftSegmentCalibration.py.

7 
8  def __init__(self, run, dir, config):
9  self.pset_name = 'dtVDriftSegmentCalibration_cfg.py'
10  self.outputfile = 'DTVDriftHistos.root'
11  self.config = config
12  self.dir = dir
13 
14  self.pset_template = 'CalibMuon.DTCalibration.dtVDriftSegmentCalibration_cfg'
15  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
16  self.pset_template = 'CalibMuon.DTCalibration.dtVDriftSegmentCalibration_cosmics_cfg'
17 
18  self.process = None
19  self.crab_cfg = None
20  self.initProcess()
21  self.initCrab()
22  self.task = CrabTask(self.dir,self.crab_cfg)

Member Function Documentation

def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab (   self)

Definition at line 62 of file DTVDriftSegmentCalibration.py.

References tools.addCrabInputFile(), DTValidSummary.DTValidSummary.config, DTTTrigProd.DTTTrigProd.config, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTDQMValidation.DTDQMValidation.config, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.config, DTResidualCalibration.DTResidualCalibration.config, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.config, DTDQMMerge.DTDQMMerge.config, DTDqm.DTDqm.config, DTNoiseCalibration.DTNoiseCalibration.config, DTTTrigValid.DTTTrigValid.config, DTT0DBValidation.DTT0DBValidation.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, DTDQMHarvesting.DTDQMHarvesting.config, genericValidation.GenericValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, CrabTask.CrabTask.crab_cfg, DTTTrigProd.DTTTrigProd.crab_cfg, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.crab_cfg, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.crab_cfg, DTNoiseCalibration.DTNoiseCalibration.crab_cfg, DTResidualCalibration.DTResidualCalibration.crab_cfg, DTTTrigValid.DTTTrigValid.crab_cfg, DTDQMValidation.DTDQMValidation.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTTTrigProd.DTTTrigProd.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.outputfile, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.outputfile, DTTTrigValid.DTTTrigValid.outputfile, DTTTrigProd.DTTTrigProd.pset_name, DTTTrigValid.DTTTrigValid.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_name, DTValidSummary.DTValidSummary.pset_name, DTDqm.DTDqm.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDQMValidation.DTDQMValidation.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, and CrabTask.CrabTask.pset_name.

62 
63  def initCrab(self):
64  crab_cfg_parser = loadCrabCfg()
65  loadCrabDefault(crab_cfg_parser,self.config)
66  crab_cfg_parser.set('CMSSW','pset',self.pset_name)
67  crab_cfg_parser.set('CMSSW','output_file',self.outputfile)
68  crab_cfg_parser.remove_option('USER','additional_input_files')
69  if hasattr(self.config,'inputTTrigDB') and self.config.inputTTrigDB:
70  addCrabInputFile(crab_cfg_parser,self.config.inputTTrigDB)
71 
72  if hasattr(self.config,'inputVDriftDB') and self.config.inputVDriftDB:
73  addCrabInputFile(crab_cfg_parser,self.config.inputVDriftDB)
74 
75  self.crab_cfg = crab_cfg_parser
def addCrabInputFile
Definition: tools.py:183
def loadCrabDefault
Definition: tools.py:195
def loadCrabCfg
Definition: tools.py:178
def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess (   self)

Definition at line 23 of file DTVDriftSegmentCalibration.py.

References DTValidSummary.DTValidSummary.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTTTrigProd.DTTTrigProd.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.config, DTDqm.DTDqm.config, DTResidualCalibration.DTResidualCalibration.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.config, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.config, DTDQMHarvesting.DTDQMHarvesting.config, DTNoiseCalibration.DTNoiseCalibration.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, DTT0DBValidation.DTT0DBValidation.config, DTTTrigValid.DTTTrigValid.config, genericValidation.GenericValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, tools.loadCmsProcess(), DTTTrigProd.DTTTrigProd.outputfile, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.outputfile, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTTTrigValid.DTTTrigValid.outputfile, DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTValidSummary.DTValidSummary.process, DTDQMMerge.DTDQMMerge.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, DTTTrigResidualCorr.DTTTrigResidualCorr.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, DTTTrigProd.DTTTrigProd.pset_template, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_template, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_template, DTNoiseCalibration.DTNoiseCalibration.pset_template, DTT0DBValidation.DTT0DBValidation.pset_template, DTResidualCalibration.DTResidualCalibration.pset_template, DTValidSummary.DTValidSummary.pset_template, DTDQMMerge.DTDQMMerge.pset_template, DTDqm.DTDqm.pset_template, DTDQMHarvesting.DTDQMHarvesting.pset_template, DTDQMValidation.DTDQMValidation.pset_template, and DTTTrigValid.DTTTrigValid.pset_template.

23 
24  def initProcess(self):
26  self.process.GlobalTag.globaltag = self.config.globaltag
27  self.process.dtVDriftSegmentCalibration.rootFileName = self.outputfile
28  # Add tTrig and vDrift DB's, if requested
29  if hasattr(self.config,'inputTTrigDB') and self.config.inputTTrigDB:
30  label = ''
31  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics: label = 'cosmics'
32  addPoolDBESSource(process = self.process,
33  moduleName = 'tTrigDB',record = 'DTTtrigRcd',tag = 'ttrig',label = label,
34  connect = 'sqlite_file:%s' % os.path.basename(self.config.inputTTrigDB))
35 
36  if hasattr(self.config,'inputVDriftDB') and self.config.inputVDriftDB:
37  addPoolDBESSource(process = self.process,
38  moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift',
39  connect = 'sqlite_file:%s' % os.path.basename(self.config.inputVDriftDB))
def loadCmsProcess
Definition: tools.py:144
def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.run (   self)

Definition at line 80 of file DTVDriftSegmentCalibration.py.

Referenced by Types.LuminosityBlockID.cppID().

def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg (   self)

Definition at line 76 of file DTVDriftSegmentCalibration.py.

References CmsswTask.CmsswTask.dir, DTDqm.DTDqm.dir, DTDQMMerge.DTDQMMerge.dir, DTDQMHarvesting.DTDQMHarvesting.dir, DTT0DBValidation.DTT0DBValidation.dir, DTValidSummary.DTValidSummary.dir, CrabTask.CrabTask.dir, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.dir, DTTTrigProd.DTTTrigProd.dir, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.dir, DTTTrigResidualCorr.DTTTrigResidualCorr.dir, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.dir, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.dir, DTDQMValidation.DTDQMValidation.dir, DTResidualCalibration.DTResidualCalibration.dir, DTNoiseCalibration.DTNoiseCalibration.dir, DTTTrigCorrFirst.DTTTrigCorrFirst.dir, DTTTrigValid.DTTTrigValid.dir, DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, DTValidSummary.DTValidSummary.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, DTTTrigResidualCorr.DTTTrigResidualCorr.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, DTTTrigProd.DTTTrigProd.pset_name, DTTTrigValid.DTTTrigValid.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_name, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDqm.DTDqm.pset_name, DTValidSummary.DTValidSummary.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, DTDQMValidation.DTDQMValidation.pset_name, and CrabTask.CrabTask.pset_name.

76 
77  def writeCfg(self):
78  writeCfg(self.process,self.dir,self.pset_name)
79  #writeCfgPkl(self.process,self.dir,self.pset_name)

Member Data Documentation

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.config

Definition at line 10 of file DTVDriftSegmentCalibration.py.

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

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.connect = self.config.connectStrDBTag
static

Definition at line 43 of file DTVDriftSegmentCalibration.py.

Referenced by Vispa.Gui.ZoomableScrollArea.ZoomableScrollArea.__init__(), Vispa.Views.PropertyView.BooleanProperty.__init__(), Vispa.Gui.FindDialog.FindDialog._addScript(), Vispa.Gui.FindDialog.FindDialog._addStringProperty(), Vispa.Main.Application.Application._connectSignals(), Vispa.Plugins.ConfigEditor.CodeTableView.CodeTableView._createItem(), Vispa.Gui.BoxContentDialog.BoxContentDialog.addButton(), Vispa.Gui.ToolBoxContainer.ToolBoxContainer.addWidget(), Vispa.Views.PropertyView.PropertyView.append(), Vispa.Views.PropertyView.PropertyView.appendAddRow(), Vispa.Main.Application.Application.createAction(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createButton(), Vispa.Views.LineDecayView.LineDecayView.createLineDecayContainer(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createLineEdit(), Vispa.Views.LineDecayView.LineDecayContainer.createObject(), Vispa.Views.PropertyView.TextEditWithButtonProperty.createTextEdit(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.filterDialog(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.find(), Vispa.Gui.PortWidget.PortWidget.mouseMoveEvent(), Vispa.Views.PropertyView.BooleanProperty.setChecked(), Vispa.Main.SplitterTab.SplitterTab.setController(), Vispa.Plugins.Browser.BrowserTab.BrowserTab.setController(), Vispa.Views.PropertyView.BooleanProperty.setReadOnly(), Vispa.Views.PropertyView.DropDownProperty.setReadOnly(), Vispa.Views.PropertyView.TextEditWithButtonProperty.setReadOnly(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.setTab(), Vispa.Views.PropertyView.IntegerProperty.setValue(), Vispa.Plugins.Browser.BrowserTabController.BrowserTabController.switchCenterView(), Vispa.Plugins.EdmBrowser.EdmBrowserTabController.EdmBrowserTabController.updateViewMenu(), and Vispa.Plugins.ConfigEditor.ConfigEditorTabController.ConfigEditorTabController.updateViewMenu().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.crab_cfg

Definition at line 18 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.dir

Definition at line 11 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

string DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.moduleName = 'customDB%s'
static

Definition at line 44 of file DTVDriftSegmentCalibration.py.

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.moduleName = tag,
static

Definition at line 46 of file DTVDriftSegmentCalibration.py.

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.outputfile

Definition at line 9 of file DTVDriftSegmentCalibration.py.

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

tuple DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pathsequence = self.config.preselection.split(':')
static

Definition at line 57 of file DTVDriftSegmentCalibration.py.

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process

Definition at line 17 of file DTVDriftSegmentCalibration.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), ConfigBuilder.ConfigBuilder.PrintAllModules.leave(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), ConfigBuilder.ConfigBuilder.prepare_FASTSIM(), 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(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.project

Definition at line 81 of file DTVDriftSegmentCalibration.py.

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name

Definition at line 8 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_template

Definition at line 13 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.record = self.config.inputDBRcd
static

Definition at line 42 of file DTVDriftSegmentCalibration.py.

tuple DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.seqname = self.config.preselection.split(':')
static

Definition at line 58 of file DTVDriftSegmentCalibration.py.

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.tag = self.config.inputDBTag
static

Definition at line 41 of file DTVDriftSegmentCalibration.py.

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.task

Definition at line 21 of file DTVDriftSegmentCalibration.py.