CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DTResidualCalibration.DTResidualCalibration Class Reference

Public Member Functions

def __init__ (self, run, dir, input_db, config)
 
def initCrab (self)
 
def initProcess (self)
 
def run (self)
 
def writeCfg (self)
 

Public Attributes

 config
 
 crab_cfg
 
 dir
 
 inputdb
 
 outputfile
 
 process
 
 project
 
 pset_name
 
 pset_template
 
 task
 

Detailed Description

Definition at line 6 of file DTResidualCalibration.py.

Constructor & Destructor Documentation

def DTResidualCalibration.DTResidualCalibration.__init__ (   self,
  run,
  dir,
  input_db,
  config 
)

Definition at line 7 of file DTResidualCalibration.py.

7  def __init__(self, run, dir, input_db, config):
8  self.pset_name = 'dtResidualCalibration_cfg.py'
9  self.outputfile = 'residuals.root'
10  self.config = config
11  self.dir = dir
12  self.inputdb = input_db
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)
23 
def __init__(self, run, dir, input_db, config)

Member Function Documentation

def DTResidualCalibration.DTResidualCalibration.initCrab (   self)

Definition at line 67 of file DTResidualCalibration.py.

References tools.addCrabInputFile(), DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTAnalysisResiduals.DTAnalysisResiduals.config, DTDQMValidation.DTDQMValidation.config, DTResidualCalibration.DTResidualCalibration.config, DTDQMHarvesting.DTDQMHarvesting.config, DTNoiseCalibration.DTNoiseCalibration.config, geometry.Alignables.config, preexistingValidation.PreexistingValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, plottingOptions.BasePlottingOptions.config, genericValidation.GenericValidation.config, CrabTask.CrabTask.crab_cfg, DTAnalysisResiduals.DTAnalysisResiduals.crab_cfg, DTResidualCalibration.DTResidualCalibration.crab_cfg, DTNoiseCalibration.DTNoiseCalibration.crab_cfg, DTDQMValidation.DTDQMValidation.crab_cfg, DTResidualCalibration.DTResidualCalibration.inputdb, tools.loadCrabCfg(), tools.loadCrabDefault(), DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDqm.DTDqm.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, DTDQMValidation.DTDQMValidation.pset_name, and CrabTask.CrabTask.pset_name.

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 
76  if hasattr(self.config,'inputVDriftDB') and self.config.inputVDriftDB:
77  addCrabInputFile(crab_cfg_parser,self.config.inputVDriftDB)
78 
79  if hasattr(self.config,'inputT0DB') and self.config.inputT0DB:
80  addCrabInputFile(crab_cfg_parser,self.config.inputT0DB)
81 
82  self.crab_cfg = crab_cfg_parser
83 
def loadCrabCfg(cfgName=None)
Definition: tools.py:178
def loadCrabDefault(crabCfg, config)
Definition: tools.py:195
def addCrabInputFile(crabCfg, inputFile)
Definition: tools.py:183
def DTResidualCalibration.DTResidualCalibration.initProcess (   self)

Definition at line 24 of file DTResidualCalibration.py.

References DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTResidualCalibration.DTResidualCalibration.config, DTDQMHarvesting.DTDQMHarvesting.config, DTNoiseCalibration.DTNoiseCalibration.config, geometry.Alignables.config, preexistingValidation.PreexistingValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, plottingOptions.BasePlottingOptions.config, genericValidation.GenericValidation.config, reco.if(), DTResidualCalibration.DTResidualCalibration.inputdb, tools.loadCmsProcess(), DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, tools.prependPaths(), DTDQMMerge.DTDQMMerge.process, DTDqm.DTDqm.process, DTDQMHarvesting.DTDQMHarvesting.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTResidualCalibration.DTResidualCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTDQMValidation.DTDQMValidation.process, DTAnalysisResiduals.DTAnalysisResiduals.pset_template, DTNoiseCalibration.DTNoiseCalibration.pset_template, DTDqm.DTDqm.pset_template, DTResidualCalibration.DTResidualCalibration.pset_template, DTDQMMerge.DTDQMMerge.pset_template, DTDQMValidation.DTDQMValidation.pset_template, and DTDQMHarvesting.DTDQMHarvesting.pset_template.

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

Definition at line 84 of file DTResidualCalibration.py.

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

Member Data Documentation

DTResidualCalibration.DTResidualCalibration.process

Definition at line 18 of file DTResidualCalibration.py.

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

DTResidualCalibration.DTResidualCalibration.project

Definition at line 89 of file DTResidualCalibration.py.

DTResidualCalibration.DTResidualCalibration.task

Definition at line 22 of file DTResidualCalibration.py.