CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration 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 DTVDriftSegmentCalibration.py.

Constructor & Destructor Documentation

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

Definition at line 7 of file DTVDriftSegmentCalibration.py.

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

Definition at line 68 of file DTVDriftSegmentCalibration.py.

References tools.addCrabInputFile(), DTValidSummary.DTValidSummary.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTTTrigProd.DTTTrigProd.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.config, DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.config, DTDQMValidation.DTDQMValidation.config, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.config, DTResidualCalibration.DTResidualCalibration.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, DTTTrigValid.DTTTrigValid.config, DTDQMHarvesting.DTDQMHarvesting.config, DTNoiseCalibration.DTNoiseCalibration.config, DTT0DBValidation.DTT0DBValidation.config, geometry.Alignables.config, preexistingValidation.PreexistingValidation.config, DTCalibrationWorker.DTCalibrationWorker.config, plottingOptions.BasePlottingOptions.config, genericValidation.GenericValidation.config, CrabTask.CrabTask.crab_cfg, DTTTrigProd.DTTTrigProd.crab_cfg, DTAnalysisResiduals.DTAnalysisResiduals.crab_cfg, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.crab_cfg, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.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, DTResidualCalibration.DTResidualCalibration.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.outputfile, DTTTrigValid.DTTTrigValid.outputfile, DTTTrigProd.DTTTrigProd.pset_name, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTTTrigValid.DTTTrigValid.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name, DTValidSummary.DTValidSummary.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDqm.DTDqm.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 DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess (   self)

Definition at line 23 of file DTVDriftSegmentCalibration.py.

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

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

Definition at line 85 of file DTVDriftSegmentCalibration.py.

References CmsswTask.CmsswTask.dir, DTDqm.DTDqm.dir, DTDQMMerge.DTDQMMerge.dir, DTValidSummary.DTValidSummary.dir, DTDQMHarvesting.DTDQMHarvesting.dir, DTT0DBValidation.DTT0DBValidation.dir, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.dir, CrabTask.CrabTask.dir, DTTTrigProd.DTTTrigProd.dir, DTTTrigResidualCorr.DTTTrigResidualCorr.dir, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.dir, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.dir, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.dir, DTAnalysisResiduals.DTAnalysisResiduals.dir, DTDQMValidation.DTDQMValidation.dir, DTResidualCalibration.DTResidualCalibration.dir, DTTTrigValid.DTTTrigValid.dir, DTNoiseCalibration.DTNoiseCalibration.dir, DTTTrigCorrFirst.DTTTrigCorrFirst.dir, DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, DTValidSummary.DTValidSummary.process, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.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, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, DTTTrigResidualCorr.DTTTrigResidualCorr.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, DTTTrigProd.DTTTrigProd.pset_name, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTTTrigValid.DTTTrigValid.pset_name, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name, DTValidSummary.DTValidSummary.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

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.config
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.crab_cfg
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.dir
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.outputfile
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.project

Definition at line 90 of file DTVDriftSegmentCalibration.py.

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_template
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.task

Definition at line 21 of file DTVDriftSegmentCalibration.py.