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

Public Member Functions

def __init__
 
def initCrab
 
def initProcess
 
def run
 
def writeCfg
 

Public Attributes

 config
 
 crab_cfg
 
 dir
 
 outputDB
 
 outputROOT
 
 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 DTNoiseCalibration.py.

Constructor & Destructor Documentation

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

Definition at line 7 of file DTNoiseCalibration.py.

7 
8  def __init__(self, run, dir, config):
9  self.pset_name = 'dtNoiseCalibration_cfg.py'
10  self.outputROOT = 'dtNoiseCalib.root'
11  self.outputDB = 'noise.db'
12  self.config = config
13  self.dir = dir
14 
15  self.pset_template = 'CalibMuon.DTCalibration.dtNoiseCalibration_cfg'
16  #if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
17  # self.pset_template = 'CalibMuon.DTCalibration.dtNoiseCalibration_cosmics_cfg'
18 
19  self.process = None
20  self.crab_cfg = None
21  self.initProcess()
22  self.initCrab()
23  self.task = CrabTask(self.dir,self.crab_cfg)

Member Function Documentation

def DTNoiseCalibration.DTNoiseCalibration.initCrab (   self)

Definition at line 49 of file DTNoiseCalibration.py.

References DTDqm.DTDqm.config, DTDQMValidation.DTDQMValidation.config, DTDQMMerge.DTDQMMerge.config, DTNoiseCalibration.DTNoiseCalibration.config, DTDQMHarvesting.DTDQMHarvesting.config, genericValidation.GenericValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, CrabTask.CrabTask.crab_cfg, DTNoiseCalibration.DTNoiseCalibration.crab_cfg, DTDQMValidation.DTDQMValidation.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTNoiseCalibration.DTNoiseCalibration.outputDB, DTNoiseCalibration.DTNoiseCalibration.outputROOT, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDqm.DTDqm.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, DTDQMValidation.DTDQMValidation.pset_name, and CrabTask.CrabTask.pset_name.

49 
50  def initCrab(self):
51  crab_cfg_parser = loadCrabCfg()
52  loadCrabDefault(crab_cfg_parser,self.config)
53  crab_cfg_parser.set('CMSSW','pset',self.pset_name)
54  crab_cfg_parser.set('CMSSW','output_file','%s,%s' % (self.outputDB,self.outputROOT))
55  crab_cfg_parser.remove_option('USER','additional_input_files')
56 
57  self.crab_cfg = crab_cfg_parser
def loadCrabDefault
Definition: tools.py:195
def loadCrabCfg
Definition: tools.py:178
def DTNoiseCalibration.DTNoiseCalibration.initProcess (   self)

Definition at line 24 of file DTNoiseCalibration.py.

References DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTNoiseCalibration.DTNoiseCalibration.config, DTDQMHarvesting.DTDQMHarvesting.config, genericValidation.GenericValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, tools.loadCmsProcess(), DTNoiseCalibration.DTNoiseCalibration.outputROOT, DTDQMMerge.DTDQMMerge.process, DTDqm.DTDqm.process, DTDQMHarvesting.DTDQMHarvesting.process, DTNoiseCalibration.DTNoiseCalibration.process, DTDQMValidation.DTDQMValidation.process, DTDqm.DTDqm.pset_template, DTDQMMerge.DTDQMMerge.pset_template, DTNoiseCalibration.DTNoiseCalibration.pset_template, DTDQMHarvesting.DTDQMHarvesting.pset_template, and DTDQMValidation.DTDQMValidation.pset_template.

24 
25  def initProcess(self):
27  self.process.GlobalTag.globaltag = self.config.globaltag
28  self.process.dtNoiseCalibration.rootFileName = self.outputROOT
def loadCmsProcess
Definition: tools.py:144
def DTNoiseCalibration.DTNoiseCalibration.run (   self)

Definition at line 62 of file DTNoiseCalibration.py.

Referenced by Types.LuminosityBlockID.cppID().

def DTNoiseCalibration.DTNoiseCalibration.writeCfg (   self)

Definition at line 58 of file DTNoiseCalibration.py.

References CmsswTask.CmsswTask.dir, DTDqm.DTDqm.dir, DTDQMMerge.DTDQMMerge.dir, DTDQMHarvesting.DTDQMHarvesting.dir, CrabTask.CrabTask.dir, DTDQMValidation.DTDQMValidation.dir, DTNoiseCalibration.DTNoiseCalibration.dir, DTDQMMerge.DTDQMMerge.process, DTDqm.DTDqm.process, DTDQMHarvesting.DTDQMHarvesting.process, DTNoiseCalibration.DTNoiseCalibration.process, DTDQMValidation.DTDQMValidation.process, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTDqm.DTDqm.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDQMValidation.DTDQMValidation.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, and CrabTask.CrabTask.pset_name.

58 
59  def writeCfg(self):
60  writeCfg(self.process,self.dir,self.pset_name)
61  #writeCfgPkl(self.process,self.dir,self.pset_name)

Member Data Documentation

DTNoiseCalibration.DTNoiseCalibration.config

Definition at line 11 of file DTNoiseCalibration.py.

Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTT0DBValidation.DTT0DBValidation.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().

DTNoiseCalibration.DTNoiseCalibration.connect = self.config.connectStrDBTag
static

Definition at line 32 of file DTNoiseCalibration.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().

DTNoiseCalibration.DTNoiseCalibration.crab_cfg

Definition at line 19 of file DTNoiseCalibration.py.

Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab().

DTNoiseCalibration.DTNoiseCalibration.dir

Definition at line 12 of file DTNoiseCalibration.py.

Referenced by DTValidSummary.DTValidSummary.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

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

Definition at line 33 of file DTNoiseCalibration.py.

DTNoiseCalibration.DTNoiseCalibration.moduleName = tag,
static

Definition at line 35 of file DTNoiseCalibration.py.

DTNoiseCalibration.DTNoiseCalibration.outputDB

Definition at line 10 of file DTNoiseCalibration.py.

Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab().

DTNoiseCalibration.DTNoiseCalibration.outputROOT

Definition at line 9 of file DTNoiseCalibration.py.

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

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

Definition at line 44 of file DTNoiseCalibration.py.

DTNoiseCalibration.DTNoiseCalibration.process

Definition at line 18 of file DTNoiseCalibration.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), DTValidSummary.DTValidSummary.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), DTTTrigValid.DTTTrigValid.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(), DTValidSummary.DTValidSummary.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg().

DTNoiseCalibration.DTNoiseCalibration.project

Definition at line 63 of file DTNoiseCalibration.py.

DTNoiseCalibration.DTNoiseCalibration.pset_name

Definition at line 8 of file DTNoiseCalibration.py.

Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTValidSummary.DTValidSummary.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), and DTTTrigValid.DTTTrigValid.writeCfg().

DTNoiseCalibration.DTNoiseCalibration.pset_template

Definition at line 14 of file DTNoiseCalibration.py.

Referenced by DTValidSummary.DTValidSummary.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().

DTNoiseCalibration.DTNoiseCalibration.record = self.config.inputDBRcd
static

Definition at line 31 of file DTNoiseCalibration.py.

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

Definition at line 45 of file DTNoiseCalibration.py.

DTNoiseCalibration.DTNoiseCalibration.tag = self.config.inputDBTag
static

Definition at line 30 of file DTNoiseCalibration.py.

DTNoiseCalibration.DTNoiseCalibration.task

Definition at line 22 of file DTNoiseCalibration.py.