CMS 3D CMS Logo

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

Public Member Functions

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

Public Attributes

 config
 
 crab_cfg
 
 dir
 
 outputDB
 
 outputROOT
 
 process
 
 project
 
 pset_name
 
 pset_template
 
 task
 

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  def __init__(self, run, dir, config):
8  self.pset_name = 'dtNoiseCalibration_cfg.py'
9  self.outputROOT = 'dtNoiseCalib.root'
10  self.outputDB = 'noise.db'
11  self.config = config
12  self.dir = dir
13 
14  self.pset_template = 'CalibMuon.DTCalibration.dtNoiseCalibration_cfg'
15  #if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
16  # self.pset_template = 'CalibMuon.DTCalibration.dtNoiseCalibration_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, config)

Member Function Documentation

def DTNoiseCalibration.DTNoiseCalibration.initCrab (   self)

Definition at line 49 of file DTNoiseCalibration.py.

References DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.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, DTNoiseCalibration.DTNoiseCalibration.crab_cfg, DTDQMValidation.DTDQMValidation.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTNoiseCalibration.DTNoiseCalibration.outputDB, DTNoiseCalibration.DTNoiseCalibration.outputROOT, DTNoiseCalibration.DTNoiseCalibration.pset_name, 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.

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

Definition at line 24 of file DTNoiseCalibration.py.

References DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTDQMHarvesting.DTDQMHarvesting.config, DTNoiseCalibration.DTNoiseCalibration.config, preexistingValidation.PreexistingValidation.config, geometry.Alignables.config, DTCalibrationWorker.DTCalibrationWorker.config, plottingOptions.BasePlottingOptions.config, genericValidation.GenericValidation.config, tools.loadCmsProcess(), DTNoiseCalibration.DTNoiseCalibration.outputROOT, tools.prependPaths(), DTDQMMerge.DTDQMMerge.process, DTDqm.DTDqm.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTNoiseCalibration.DTNoiseCalibration.process, DTDQMValidation.DTDQMValidation.process, DTAnalysisResiduals.DTAnalysisResiduals.pset_template, DTDQMMerge.DTDQMMerge.pset_template, DTNoiseCalibration.DTNoiseCalibration.pset_template, DTDqm.DTDqm.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.dtNoiseCalibration.rootFileName = self.outputROOT
28 
def loadCmsProcess(psetPath)
Definition: tools.py:144
def DTNoiseCalibration.DTNoiseCalibration.run (   self)

Member Data Documentation

DTNoiseCalibration.DTNoiseCalibration.outputDB
DTNoiseCalibration.DTNoiseCalibration.outputROOT
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(), 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(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTNoiseCalibration.DTNoiseCalibration.project

Definition at line 63 of file DTNoiseCalibration.py.

DTNoiseCalibration.DTNoiseCalibration.task

Definition at line 22 of file DTNoiseCalibration.py.