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
DTAnalysisResiduals.DTAnalysisResiduals 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 connect = 'sqlite_file:%s'
 
string label = ''
 
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 DTAnalysisResiduals.py.

Constructor & Destructor Documentation

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

Definition at line 7 of file DTAnalysisResiduals.py.

7 
8  def __init__(self, run, dir, config):
9  self.pset_name = 'dtAnalysisResiduals_cfg.py'
10  self.outputfile = 'residuals.root'
11  self.config = config
12  self.dir = dir
13 
14  self.pset_template = 'CalibMuon.DTCalibration.dtResidualCalibration_cfg'
15  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
16  self.pset_template = 'CalibMuon.DTCalibration.dtResidualCalibration_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 DTAnalysisResiduals.DTAnalysisResiduals.initCrab (   self)

Definition at line 67 of file DTAnalysisResiduals.py.

References tools.addCrabInputFile(), DTAnalysisResiduals.DTAnalysisResiduals.config, genericValidation.GenericValidation.config, CrabTask.CrabTask.crab_cfg, DTAnalysisResiduals.DTAnalysisResiduals.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, and CrabTask.CrabTask.pset_name.

67 
68  def initCrab(self):
69  crab_cfg_parser = loadCrabCfg()
70  loadCrabDefault(crab_cfg_parser,self.config)
71  crab_cfg_parser.set('CMSSW','pset',self.pset_name)
72  crab_cfg_parser.set('CMSSW','output_file',self.outputfile)
73  crab_cfg_parser.remove_option('USER','additional_input_files')
74 
75  if hasattr(self.config,'inputTTrigDB') and self.config.inputTTrigDB:
76  addCrabInputFile(crab_cfg_parser,self.config.inputTTrigDB)
77 
78  if hasattr(self.config,'inputVDriftDB') and self.config.inputVDriftDB:
79  addCrabInputFile(crab_cfg_parser,self.config.inputVDriftDB)
80 
81  if hasattr(self.config,'inputT0DB') and self.config.inputT0DB:
82  addCrabInputFile(crab_cfg_parser,self.config.inputT0DB)
83 
84  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 DTAnalysisResiduals.DTAnalysisResiduals.initProcess (   self)

Definition at line 23 of file DTAnalysisResiduals.py.

References DTAnalysisResiduals.DTAnalysisResiduals.config, genericValidation.GenericValidation.config, tools.loadCmsProcess(), DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.process, and DTAnalysisResiduals.DTAnalysisResiduals.pset_template.

23 
24  def initProcess(self):
26  self.process.GlobalTag.globaltag = self.config.globaltag
27  self.process.dtResidualCalibration.rootFileName = self.outputfile
28  self.process.dtResidualCalibration.detailedAnalysis = True
# Update Event Setup
def loadCmsProcess
Definition: tools.py:144
def DTAnalysisResiduals.DTAnalysisResiduals.run (   self)

Definition at line 89 of file DTAnalysisResiduals.py.

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

def DTAnalysisResiduals.DTAnalysisResiduals.writeCfg (   self)

Definition at line 85 of file DTAnalysisResiduals.py.

References CmsswTask.CmsswTask.dir, CrabTask.CrabTask.dir, DTAnalysisResiduals.DTAnalysisResiduals.dir, DTAnalysisResiduals.DTAnalysisResiduals.process, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, and CrabTask.CrabTask.pset_name.

85 
86  def writeCfg(self):
87  writeCfg(self.process,self.dir,self.pset_name)
88  #writeCfgPkl(self.process,self.dir,self.pset_name)

Member Data Documentation

DTAnalysisResiduals.DTAnalysisResiduals.config

Definition at line 10 of file DTAnalysisResiduals.py.

Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initCrab(), DTDQMValidation.DTDQMValidation.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTAnalysisResiduals.DTAnalysisResiduals.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTT0DBValidation.DTT0DBValidation.initProcess(), DTDqm.DTDqm.initProcess(), DTDQMMerge.DTDQMMerge.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTAnalysisResiduals.DTAnalysisResiduals.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTDQMHarvesting.DTDQMHarvesting.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), DTDQMValidation.DTDQMValidation.initProcess(), DTTTrigValid.DTTTrigValid.initProcess(), and DTCalibrationWorker.DTCalibrationWorker.run().

string DTAnalysisResiduals.DTAnalysisResiduals.connect = self.config.connectStrDBTag
static

Definition at line 32 of file DTAnalysisResiduals.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(), confdbOfflineConverter.OfflineConverter.query(), 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().

string DTAnalysisResiduals.DTAnalysisResiduals.connect = 'sqlite_file:%s'
static

Definition at line 43 of file DTAnalysisResiduals.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(), confdbOfflineConverter.OfflineConverter.query(), 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().

DTAnalysisResiduals.DTAnalysisResiduals.crab_cfg

Definition at line 18 of file DTAnalysisResiduals.py.

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

DTAnalysisResiduals.DTAnalysisResiduals.dir

Definition at line 11 of file DTAnalysisResiduals.py.

Referenced by Inspector.Inspector.GetListObjects(), DTValidSummary.DTValidSummary.writeCfg(), DTDqm.DTDqm.writeCfg(), DTDQMMerge.DTDQMMerge.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTDQMHarvesting.DTDQMHarvesting.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTAnalysisResiduals.DTAnalysisResiduals.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), DTDQMValidation.DTDQMValidation.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

string DTAnalysisResiduals.DTAnalysisResiduals.label = ''
static

Definition at line 39 of file DTAnalysisResiduals.py.

Referenced by Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor._sort_list(), python.rootplot.root2matplotlib.Hist.bar(), python.rootplot.root2matplotlib.Hist.barh(), python.rootplot.root2matplotlib.Hist.errorbar(), python.rootplot.root2matplotlib.Hist.errorbarh(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.foundIn(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.fullFilename(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.inputEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.properties(), Vispa.Plugins.EdmBrowser.EdmDataAccessor.EdmDataAccessor.properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.properties(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.readConnections(), core.AutoHandle.AutoHandle.ReallyLoad(), Vispa.Plugins.ConfigEditor.ToolDataAccessor.ToolDataAccessor.updateProcess(), MatrixInjector.MatrixInjector.uploadConf(), and Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.usedBy().

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

Definition at line 33 of file DTAnalysisResiduals.py.

DTAnalysisResiduals.DTAnalysisResiduals.moduleName = tag,
static

Definition at line 35 of file DTAnalysisResiduals.py.

DTAnalysisResiduals.DTAnalysisResiduals.outputfile

Definition at line 9 of file DTAnalysisResiduals.py.

Referenced by DTTTrigProd.DTTTrigProd.initCrab(), DTDQMValidation.DTDQMValidation.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTAnalysisResiduals.DTAnalysisResiduals.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTAnalysisResiduals.DTAnalysisResiduals.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), and DTResidualCalibration.DTResidualCalibration.initProcess().

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

Definition at line 62 of file DTAnalysisResiduals.py.

DTAnalysisResiduals.DTAnalysisResiduals.process

Definition at line 17 of file DTAnalysisResiduals.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(), DTDqm.DTDqm.initProcess(), DTDQMMerge.DTDQMMerge.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTDQMHarvesting.DTDQMHarvesting.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTAnalysisResiduals.DTAnalysisResiduals.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), DTDQMValidation.DTDQMValidation.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_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(), DTDqm.DTDqm.writeCfg(), DTDQMMerge.DTDQMMerge.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTDQMHarvesting.DTDQMHarvesting.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTDQMValidation.DTDQMValidation.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), and DTAnalysisResiduals.DTAnalysisResiduals.writeCfg().

DTAnalysisResiduals.DTAnalysisResiduals.project

Definition at line 90 of file DTAnalysisResiduals.py.

DTAnalysisResiduals.DTAnalysisResiduals.pset_name

Definition at line 8 of file DTAnalysisResiduals.py.

Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initCrab(), DTDQMValidation.DTDQMValidation.initCrab(), DTResidualCalibration.DTResidualCalibration.initCrab(), DTAnalysisResiduals.DTAnalysisResiduals.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTValidSummary.DTValidSummary.writeCfg(), DTDqm.DTDqm.writeCfg(), DTDQMMerge.DTDQMMerge.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTDQMHarvesting.DTDQMHarvesting.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), DTDQMValidation.DTDQMValidation.writeCfg(), DTAnalysisResiduals.DTAnalysisResiduals.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTAnalysisResiduals.DTAnalysisResiduals.pset_template

Definition at line 13 of file DTAnalysisResiduals.py.

Referenced by DTValidSummary.DTValidSummary.initProcess(), DTDqm.DTDqm.initProcess(), DTDQMMerge.DTDQMMerge.initProcess(), DTAnalysisResiduals.DTAnalysisResiduals.initProcess(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTDQMHarvesting.DTDQMHarvesting.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), DTDQMValidation.DTDQMValidation.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().

DTAnalysisResiduals.DTAnalysisResiduals.record = self.config.inputDBRcd
static

Definition at line 31 of file DTAnalysisResiduals.py.

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

Definition at line 63 of file DTAnalysisResiduals.py.

DTAnalysisResiduals.DTAnalysisResiduals.tag = self.config.inputDBTag
static

Definition at line 30 of file DTAnalysisResiduals.py.

Referenced by Inspector.Inspector.SetTag().

DTAnalysisResiduals.DTAnalysisResiduals.task

Definition at line 21 of file DTAnalysisResiduals.py.