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
DTDQMValidation.DTDQMValidation 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 DTDQMValidation.py.

Constructor & Destructor Documentation

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

Definition at line 8 of file DTDQMValidation.py.

8 
9  def __init__(self, run, dir, config):
10  self.outputfile = 'DQM.root'
11  self.config = config
12  self.dir = dir
13  #self.inputdb = input_db
14 
15  self.pset_name = 'dtDQM_cfg.py'
16  self.pset_template = 'CalibMuon.DTCalibration.dtDQMAlca_cfg'
17  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
18  self.pset_template = 'CalibMuon.DTCalibration.dtDQMAlca_cosmics_cfg'
19 
20  self.process = None
21  self.crab_cfg = None
22  self.initProcess()
23  self.initCrab()
24  self.task = CrabTask(self.dir,self.crab_cfg)

Member Function Documentation

def DTDQMValidation.DTDQMValidation.initCrab (   self)

Definition at line 66 of file DTDQMValidation.py.

References tools.addCrabInputFile(), DTAnalysisResiduals.DTAnalysisResiduals.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTDqm.DTDqm.config, DTDQMHarvesting.DTDQMHarvesting.config, preexistingValidation.PreexistingValidation.config, genericValidation.GenericValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, CrabTask.CrabTask.crab_cfg, DTAnalysisResiduals.DTAnalysisResiduals.crab_cfg, DTDQMValidation.DTDQMValidation.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTDQMValidation.DTDQMValidation.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTDqm.DTDqm.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, DTDQMValidation.DTDQMValidation.pset_name, and CrabTask.CrabTask.pset_name.

66 
67  def initCrab(self):
68  crab_cfg_parser = loadCrabCfg()
69  loadCrabDefault(crab_cfg_parser,self.config)
70  crab_cfg_parser.set('CMSSW','pset',self.pset_name)
71  crab_cfg_parser.set('CMSSW','output_file',self.outputfile)
72  crab_cfg_parser.remove_option('USER','additional_input_files')
73  #if self.inputdb:
74  # addCrabInputFile(crab_cfg_parser,self.inputdb)
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 DTDQMValidation.DTDQMValidation.initProcess (   self)

Definition at line 25 of file DTDQMValidation.py.

References DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTDQMHarvesting.DTDQMHarvesting.config, preexistingValidation.PreexistingValidation.config, genericValidation.GenericValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, tools.loadCmsProcess(), DTDQMMerge.DTDQMMerge.process, DTDqm.DTDqm.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTDQMValidation.DTDQMValidation.process, DTAnalysisResiduals.DTAnalysisResiduals.pset_template, DTDqm.DTDqm.pset_template, DTDQMMerge.DTDQMMerge.pset_template, DTDQMValidation.DTDQMValidation.pset_template, and DTDQMHarvesting.DTDQMHarvesting.pset_template.

25 
26  def initProcess(self):
28  self.process.GlobalTag.globaltag = self.config.globaltag
def loadCmsProcess
Definition: tools.py:144
def DTDQMValidation.DTDQMValidation.run (   self)

Definition at line 89 of file DTDQMValidation.py.

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

89 
90  def run(self):
91  self.project = self.task.run()
92  return self.project
def DTDQMValidation.DTDQMValidation.writeCfg (   self)

Definition at line 85 of file DTDQMValidation.py.

References CmsswTask.CmsswTask.dir, DTDqm.DTDqm.dir, DTDQMMerge.DTDQMMerge.dir, DTDQMHarvesting.DTDQMHarvesting.dir, CrabTask.CrabTask.dir, DTAnalysisResiduals.DTAnalysisResiduals.dir, DTDQMValidation.DTDQMValidation.dir, DTDQMMerge.DTDQMMerge.process, DTDqm.DTDqm.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTDQMValidation.DTDQMValidation.process, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTDqm.DTDqm.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDQMValidation.DTDQMValidation.pset_name, DTDQMHarvesting.DTDQMHarvesting.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

DTDQMValidation.DTDQMValidation.config

Definition at line 10 of file DTDQMValidation.py.

Referenced by DTNoiseCalibration.DTNoiseCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initCrab(), DTDQMValidation.DTDQMValidation.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTResidualCalibration.DTResidualCalibration.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(), DTDQMValidation.DTDQMValidation.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().

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

Definition at line 32 of file DTDQMValidation.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 DTDQMValidation.DTDQMValidation.connect = 'sqlite_file:%s'
static

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

DTDQMValidation.DTDQMValidation.crab_cfg

Definition at line 20 of file DTDQMValidation.py.

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

DTDQMValidation.DTDQMValidation.dir

Definition at line 11 of file DTDQMValidation.py.

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

string DTDQMValidation.DTDQMValidation.label = ''
static

Definition at line 39 of file DTDQMValidation.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 DTDQMValidation.DTDQMValidation.moduleName = 'customDB%s'
static

Definition at line 33 of file DTDQMValidation.py.

DTDQMValidation.DTDQMValidation.moduleName = tag,
static

Definition at line 35 of file DTDQMValidation.py.

DTDQMValidation.DTDQMValidation.outputfile

Definition at line 9 of file DTDQMValidation.py.

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

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

Definition at line 61 of file DTDQMValidation.py.

DTDQMValidation.DTDQMValidation.process

Definition at line 19 of file DTDQMValidation.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(), DTTTrigProd.DTTTrigProd.initProcess(), DTResidualCalibration.DTResidualCalibration.initProcess(), DTNoiseCalibration.DTNoiseCalibration.initProcess(), DTTTrigValid.DTTTrigValid.initProcess(), DTDQMValidation.DTDQMValidation.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(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), and DTDQMValidation.DTDQMValidation.writeCfg().

DTDQMValidation.DTDQMValidation.project

Definition at line 90 of file DTDQMValidation.py.

DTDQMValidation.DTDQMValidation.pset_name

Definition at line 14 of file DTDQMValidation.py.

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

DTDQMValidation.DTDQMValidation.pset_template

Definition at line 15 of file DTDQMValidation.py.

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

DTDQMValidation.DTDQMValidation.record = self.config.inputDBRcd
static

Definition at line 31 of file DTDQMValidation.py.

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

Definition at line 62 of file DTDQMValidation.py.

DTDQMValidation.DTDQMValidation.tag = self.config.inputDBTag
static

Definition at line 30 of file DTDQMValidation.py.

Referenced by Inspector.Inspector.SetTag().

DTDQMValidation.DTDQMValidation.task

Definition at line 23 of file DTDQMValidation.py.