CMS 3D CMS Logo

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

Constructor & Destructor Documentation

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

Definition at line 7 of file DTTTrigValid.py.

7  def __init__(self, run, dir, input_db, config):
8  self.pset_name = 'dtCalibValidation_cfg.py'
9  #self.outputfile = 'residuals.root,DQM.root'
10  self.outputfile = 'DQM.root'
11  self.config = config
12  self.dir = dir
13  self.inputdb = input_db
14 
15  self.pset_template = 'CalibMuon.DTCalibration.dtCalibValidation_cfg'
16  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
17  self.pset_template = 'CalibMuon.DTCalibration.dtCalibValidation_cosmics_cfg'
18 
19  self.process = None
20  self.crab_cfg = None
21  self.initProcess()
22  self.initCrab()
23  self.task = CrabTask(self.dir,self.crab_cfg)
24 
def __init__(self, run, dir, input_db, config)
Definition: DTTTrigValid.py:7

Member Function Documentation

def DTTTrigValid.DTTTrigValid.initCrab (   self)

Definition at line 67 of file DTTTrigValid.py.

References tools.addCrabInputFile(), DTTTrigProd.DTTTrigProd.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.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, DTResidualCalibration.DTResidualCalibration.crab_cfg, DTNoiseCalibration.DTNoiseCalibration.crab_cfg, DTDQMValidation.DTDQMValidation.crab_cfg, DTTTrigValid.DTTTrigValid.crab_cfg, DTTTrigResidualCorr.DTTTrigResidualCorr.inputdb, DTResidualCalibration.DTResidualCalibration.inputdb, DTTTrigValid.DTTTrigValid.inputdb, tools.loadCrabCfg(), tools.loadCrabDefault(), DTTTrigProd.DTTTrigProd.outputfile, DTAnalysisResiduals.DTAnalysisResiduals.outputfile, DTDQMValidation.DTDQMValidation.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTTTrigValid.DTTTrigValid.outputfile, DTTTrigProd.DTTTrigProd.pset_name, DTAnalysisResiduals.DTAnalysisResiduals.pset_name, DTTTrigValid.DTTTrigValid.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.

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 DTTTrigValid.DTTTrigValid.initProcess (   self)

Definition at line 25 of file DTTTrigValid.py.

References DTTTrigProd.DTTTrigProd.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTDQMMerge.DTDQMMerge.config, DTDQMValidation.DTDQMValidation.config, DTResidualCalibration.DTResidualCalibration.config, DTAnalysisResiduals.DTAnalysisResiduals.config, DTDqm.DTDqm.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, reco.if(), DTTTrigResidualCorr.DTTTrigResidualCorr.inputdb, DTResidualCalibration.DTResidualCalibration.inputdb, DTTTrigValid.DTTTrigValid.inputdb, tools.loadCmsProcess(), tools.prependPaths(), DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTDQMMerge.DTDQMMerge.process, DTAnalysisResiduals.DTAnalysisResiduals.process, DTDQMHarvesting.DTDQMHarvesting.process, DTNoiseCalibration.DTNoiseCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTTTrigValid.DTTTrigValid.process, DTDQMValidation.DTDQMValidation.process, DTT0DBValidation.DTT0DBValidation.process, DTTTrigResidualCorr.DTTTrigResidualCorr.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.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, DTTTrigValid.DTTTrigValid.pset_template, and DTDQMHarvesting.DTDQMHarvesting.pset_template.

25  def initProcess(self):
27  self.process.GlobalTag.globaltag = self.config.globaltag
28  #self.process.dtCalibValidation.OutputMEsInRootFile = True
29 
def loadCmsProcess(psetPath)
Definition: tools.py:144
def DTTTrigValid.DTTTrigValid.run (   self)

Definition at line 88 of file DTTTrigValid.py.

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

88  def run(self):
89  self.project = self.task.run()
90  return self.project
def DTTTrigValid.DTTTrigValid.writeCfg (   self)

Definition at line 84 of file DTTTrigValid.py.

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

84  def writeCfg(self):
85  writeCfg(self.process,self.dir,self.pset_name)
86  #writeCfgPkl(self.process,self.dir,self.pset_name)
87 

Member Data Documentation

DTTTrigValid.DTTTrigValid.inputdb
DTTTrigValid.DTTTrigValid.process

Definition at line 19 of file DTTTrigValid.py.

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

DTTTrigValid.DTTTrigValid.project

Definition at line 89 of file DTTTrigValid.py.

DTTTrigValid.DTTTrigValid.task

Definition at line 23 of file DTTTrigValid.py.