CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration 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
 
 outputfile
 
 process
 
 project
 
 pset_name
 
 pset_template
 
 task
 

Detailed Description

Definition at line 6 of file DTVDriftMeanTimerCalibration.py.

Constructor & Destructor Documentation

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

Definition at line 7 of file DTVDriftMeanTimerCalibration.py.

7  def __init__(self, run, dir, config):
8  self.pset_name = 'dtVDriftMeanTimerCalibration_cfg.py'
9  self.outputfile = 'DTTMaxHistos.root'
10  self.config = config
11  self.dir = dir
12 
13  self.pset_template = 'CalibMuon.DTCalibration.dtVDriftMeanTimerCalibration_cfg'
14  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
15  self.pset_template = 'CalibMuon.DTCalibration.dtVDriftMeanTimerCalibration_cosmics_cfg'
16 
17  self.process = None
18  self.crab_cfg = None
19  self.initProcess()
20  self.initCrab()
21  self.task = CrabTask(self.dir,self.crab_cfg)
22 

Member Function Documentation

def DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab (   self)

Definition at line 68 of file DTVDriftMeanTimerCalibration.py.

References tools.addCrabInputFile(), DTValidSummary.DTValidSummary.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTTTrigProd.DTTTrigProd.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.config, DTDQMValidation.DTDQMValidation.config, DTResidualCalibration.DTResidualCalibration.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, DTTTrigValid.DTTTrigValid.config, DTDQMHarvesting.DTDQMHarvesting.config, DTNoiseCalibration.DTNoiseCalibration.config, DTT0DBValidation.DTT0DBValidation.config, plottingOptions.BasePlottingOptions.config, preexistingValidation.PreexistingValidation.config, geometry.Alignables.config, DTCalibrationWorker.DTCalibrationWorker.config, genericValidation.GenericValidation.config, CrabTask.CrabTask.crab_cfg, DTTTrigProd.DTTTrigProd.crab_cfg, DTAnalysisResiduals.DTAnalysisResiduals.crab_cfg, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.crab_cfg, DTResidualCalibration.DTResidualCalibration.crab_cfg, DTNoiseCalibration.DTNoiseCalibration.crab_cfg, DTDQMValidation.DTDQMValidation.crab_cfg, DTTTrigValid.DTTTrigValid.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTTTrigProd.DTTTrigProd.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.outputfile, DTTTrigValid.DTTTrigValid.outputfile, DTTTrigProd.DTTTrigProd.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTTTrigValid.DTTTrigValid.pset_name, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDqm.DTDqm.pset_name, DTValidSummary.DTValidSummary.pset_name, DTDQMValidation.DTDQMValidation.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, and CrabTask.CrabTask.pset_name.

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  if hasattr(self.config,'inputTTrigDB') and self.config.inputTTrigDB:
75  addCrabInputFile(crab_cfg_parser,self.config.inputTTrigDB)
76 
77  if hasattr(self.config,'inputVDriftDB') and self.config.inputVDriftDB:
78  addCrabInputFile(crab_cfg_parser,self.config.inputVDriftDB)
79 
80  if hasattr(self.config,'inputT0DB') and self.config.inputT0DB:
81  addCrabInputFile(crab_cfg_parser,self.config.inputT0DB)
82 
83  self.crab_cfg = crab_cfg_parser
84 
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 DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess (   self)

Definition at line 23 of file DTVDriftMeanTimerCalibration.py.

References DTValidSummary.DTValidSummary.config, DTTTrigProd.DTTTrigProd.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTResidualCalibration.DTResidualCalibration.config, DTAnalysisResiduals.DTAnalysisResiduals.config, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.config, DTDQMHarvesting.DTDQMHarvesting.config, DTNoiseCalibration.DTNoiseCalibration.config, DTT0DBValidation.DTT0DBValidation.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, DTTTrigValid.DTTTrigValid.config, plottingOptions.BasePlottingOptions.config, preexistingValidation.PreexistingValidation.config, geometry.Alignables.config, genericValidation.GenericValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, tools.loadCmsProcess(), DTTTrigProd.DTTTrigProd.outputfile, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTTTrigValid.DTTTrigValid.outputfile, tools.prependPaths(), DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, DTValidSummary.DTValidSummary.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTDQMValidation.DTDQMValidation.process, DTTTrigValid.DTTTrigValid.process, DTT0DBValidation.DTT0DBValidation.process, DTTTrigResidualCorr.DTTTrigResidualCorr.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, DTTTrigProd.DTTTrigProd.pset_template, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_template, DTAnalysisResiduals.DTAnalysisResiduals.pset_template, DTResidualCalibration.DTResidualCalibration.pset_template, DTDQMMerge.DTDQMMerge.pset_template, DTT0DBValidation.DTT0DBValidation.pset_template, DTValidSummary.DTValidSummary.pset_template, DTDqm.DTDqm.pset_template, DTNoiseCalibration.DTNoiseCalibration.pset_template, DTDQMHarvesting.DTDQMHarvesting.pset_template, DTTTrigValid.DTTTrigValid.pset_template, and DTDQMValidation.DTDQMValidation.pset_template.

23  def initProcess(self):
25  self.process.GlobalTag.globaltag = self.config.globaltag
26  self.process.dtVDriftMeanTimerCalibration.rootFileName = self.outputfile
27  # Update Event Setup
def loadCmsProcess(psetPath)
Definition: tools.py:144
def DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.run (   self)
def DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg (   self)

Definition at line 85 of file DTVDriftMeanTimerCalibration.py.

References CmsswTask.CmsswTask.dir, DTDqm.DTDqm.dir, DTDQMMerge.DTDQMMerge.dir, DTDQMHarvesting.DTDQMHarvesting.dir, DTT0DBValidation.DTT0DBValidation.dir, DTValidSummary.DTValidSummary.dir, CrabTask.CrabTask.dir, DTTTrigProd.DTTTrigProd.dir, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.dir, DTTTrigResidualCorr.DTTTrigResidualCorr.dir, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.dir, DTAnalysisResiduals.DTAnalysisResiduals.dir, DTDQMValidation.DTDQMValidation.dir, DTResidualCalibration.DTResidualCalibration.dir, DTNoiseCalibration.DTNoiseCalibration.dir, DTTTrigCorrFirst.DTTTrigCorrFirst.dir, DTTTrigValid.DTTTrigValid.dir, DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, DTValidSummary.DTValidSummary.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTDQMValidation.DTDQMValidation.process, DTTTrigValid.DTTTrigValid.process, DTT0DBValidation.DTT0DBValidation.process, DTTTrigResidualCorr.DTTTrigResidualCorr.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, DTTTrigProd.DTTTrigProd.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTTTrigValid.DTTTrigValid.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_name, DTDqm.DTDqm.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTValidSummary.DTValidSummary.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, DTDQMValidation.DTDQMValidation.pset_name, and CrabTask.CrabTask.pset_name.

Member Data Documentation

DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.crab_cfg
DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process

Definition at line 17 of file DTVDriftMeanTimerCalibration.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.completeInputCommand(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.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(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.project

Definition at line 90 of file DTVDriftMeanTimerCalibration.py.

DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_template
DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.task

Definition at line 21 of file DTVDriftMeanTimerCalibration.py.