CMS 3D CMS Logo

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

Constructor & Destructor Documentation

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

Definition at line 6 of file DTTTrigProd.py.

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

Member Function Documentation

def DTTTrigProd.DTTTrigProd.initCrab (   self)

Definition at line 49 of file DTTTrigProd.py.

References DTTTrigProd.DTTTrigProd.config, DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTResidualCalibration.DTResidualCalibration.config, DTTTrigCorrFirst.DTTTrigCorrFirst.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, DTTTrigProd.DTTTrigProd.crab_cfg, CrabTask.CrabTask.crab_cfg, DTAnalysisResiduals.DTAnalysisResiduals.crab_cfg, DTNoiseCalibration.DTNoiseCalibration.crab_cfg, DTResidualCalibration.DTResidualCalibration.crab_cfg, DTDQMValidation.DTDQMValidation.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTTTrigProd.DTTTrigProd.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTTTrigProd.DTTTrigProd.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDqm.DTDqm.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  crab_cfg_parser = loadCrabDefault(crab_cfg_parser,self.config)
52  crab_cfg_parser.set('CMSSW','pset',self.pset_name)
53  crab_cfg_parser.set('CMSSW','output_file',self.outputfile)
54  self.crab_cfg = crab_cfg_parser
55 
def loadCrabCfg(cfgName=None)
Definition: tools.py:178
def loadCrabDefault(crabCfg, config)
Definition: tools.py:195
def DTTTrigProd.DTTTrigProd.initProcess (   self)

Definition at line 23 of file DTTTrigProd.py.

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

23  def initProcess(self):
25  self.process.GlobalTag.globaltag = self.config.globaltag
26  self.process.dtTTrigCalibration.rootFileName = self.outputfile
27  self.process.dtTTrigCalibration.digiLabel = self.config.digilabel
28 
def loadCmsProcess(psetPath)
Definition: tools.py:144
def DTTTrigProd.DTTTrigProd.run (   self)

Definition at line 60 of file DTTTrigProd.py.

Referenced by Types.EventID.cppID(), Types.LuminosityBlockID.cppID(), and o2olib.O2OTool.execute().

60  def run(self):
61  self.project = self.task.run()
62  return self.project
def DTTTrigProd.DTTTrigProd.writeCfg (   self)

Definition at line 56 of file DTTTrigProd.py.

References CmsswTask.CmsswTask.dir, DTDQMMerge.DTDQMMerge.dir, DTDqm.DTDqm.dir, DTT0DBValidation.DTT0DBValidation.dir, DTDQMHarvesting.DTDQMHarvesting.dir, DTTTrigProd.DTTTrigProd.dir, CrabTask.CrabTask.dir, DTDQMValidation.DTDQMValidation.dir, DTResidualCalibration.DTResidualCalibration.dir, DTAnalysisResiduals.DTAnalysisResiduals.dir, DTNoiseCalibration.DTNoiseCalibration.dir, DTTTrigCorrFirst.DTTTrigCorrFirst.dir, DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTDQMValidation.DTDQMValidation.process, DTT0DBValidation.DTT0DBValidation.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigProd.DTTTrigProd.pset_name, DTNoiseCalibration.DTNoiseCalibration.pset_name, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTDQMMerge.DTDQMMerge.pset_name, DTDqm.DTDqm.pset_name, DTDQMValidation.DTDQMValidation.pset_name, DTDQMHarvesting.DTDQMHarvesting.pset_name, and CrabTask.CrabTask.pset_name.

56  def writeCfg(self):
57  writeCfg(self.process,self.dir,self.pset_name)
58  #writeCfgPkl(self.process,self.dir,self.pset_name)
59 

Member Data Documentation

DTTTrigProd.DTTTrigProd.process

Definition at line 12 of file DTTTrigProd.py.

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

DTTTrigProd.DTTTrigProd.project

Definition at line 61 of file DTTTrigProd.py.

DTTTrigProd.DTTTrigProd.task

Definition at line 21 of file DTTTrigProd.py.