CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
List of all members | Public Member Functions | Public Attributes
DTTTrigProd.DTTTrigProd Class Reference

Public Member Functions

def __init__
 
def initCrab
 
def initProcess
 
def run
 
def writeCfg
 

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 
7  def __init__(self, run, dir, config):
8  self.pset_name = 'dtTTrigCalibration_cfg.py'
9  self.outputfile = 'DTTimeBoxes.root'
10  self.config = config
11  self.dir = dir
12  self.pset_template = 'CalibMuon.DTCalibration.dtTTrigCalibration_cfg'
13  self.process = None
14  self.crab_cfg = None
15 
16  self.initProcess()
17  self.initCrab()
18  self.task = CrabTask(self.dir,self.crab_cfg)

Member Function Documentation

def DTTTrigProd.DTTTrigProd.initCrab (   self)

Definition at line 36 of file DTTTrigProd.py.

References DTTTrigProd.DTTTrigProd.config, DTResidualCalibration.DTResidualCalibration.config, DTDqm.DTDqm.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, CrabTask.CrabTask.crab_cfg, DTTTrigProd.DTTTrigProd.crab_cfg, DTResidualCalibration.DTResidualCalibration.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTTTrigProd.DTTTrigProd.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTTTrigProd.DTTTrigProd.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTDqm.DTDqm.pset_name, and CrabTask.CrabTask.pset_name.

36 
37  def initCrab(self):
38  crab_cfg_parser = loadCrabCfg()
39  crab_cfg_parser = loadCrabDefault(crab_cfg_parser,self.config)
40  crab_cfg_parser.set('CMSSW','pset',self.pset_name)
41  crab_cfg_parser.set('CMSSW','output_file',self.outputfile)
42  self.crab_cfg = crab_cfg_parser
def loadCrabDefault
Definition: tools.py:159
def loadCrabCfg
Definition: tools.py:142
def DTTTrigProd.DTTTrigProd.initProcess (   self)

Definition at line 19 of file DTTTrigProd.py.

References DTTTrigProd.DTTTrigProd.config, DTDqm.DTDqm.config, DTResidualCalibration.DTResidualCalibration.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, tools.loadCmsProcess(), DTTTrigProd.DTTTrigProd.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, tools.prependPaths(), DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTResidualCalibration.DTResidualCalibration.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigProd.DTTTrigProd.pset_template, DTDqm.DTDqm.pset_template, and DTResidualCalibration.DTResidualCalibration.pset_template.

19 
20  def initProcess(self):
22  self.process.GlobalTag.globaltag = self.config.globaltag
23  self.process.dtTTrigCalibration.rootFileName = self.outputfile
24  self.process.dtTTrigCalibration.digiLabel = self.config.digilabel
25  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
26  self.process.load('RecoLocalMuon.Configuration.RecoLocalMuonCosmics_cff')
27 
28  if hasattr(self.config,'runOnRAW') and self.config.runOnRAW:
29  prependPaths(self.process,self.config.digilabel)
30 
31  if hasattr(self.config,'preselection') and self.config.preselection:
32  pathsequence = self.config.preselection.split(':')[0]
33  seqname = self.config.preselection.split(':')[1]
34  self.process.load(pathsequence)
35  prependPaths(self.process,seqname)
def loadCmsProcess
Definition: tools.py:110
def prependPaths
Definition: tools.py:118
def DTTTrigProd.DTTTrigProd.run (   self)

Definition at line 47 of file DTTTrigProd.py.

Referenced by Types.LuminosityBlockID.cppID().

47 
48  def run(self):
49  self.project = self.task.run()
50  return self.project
def DTTTrigProd.DTTTrigProd.writeCfg (   self)

Definition at line 43 of file DTTTrigProd.py.

References CmsswTask.CmsswTask.dir, DTDqm.DTDqm.dir, DTTTrigProd.DTTTrigProd.dir, CrabTask.CrabTask.dir, DTResidualCalibration.DTResidualCalibration.dir, DTTTrigCorrFirst.DTTTrigCorrFirst.dir, DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTResidualCalibration.DTResidualCalibration.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigProd.DTTTrigProd.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTDqm.DTDqm.pset_name, and CrabTask.CrabTask.pset_name.

43 
44  def writeCfg(self):
45  writeCfg(self.process,self.dir,self.pset_name)
46  #writeCfgPkl(self.process,self.dir,self.pset_name)

Member Data Documentation

DTTTrigProd.DTTTrigProd.config

Definition at line 9 of file DTTTrigProd.py.

Referenced by DTTTrigProd.DTTTrigProd.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().

DTTTrigProd.DTTTrigProd.crab_cfg

Definition at line 13 of file DTTTrigProd.py.

Referenced by DTTTrigProd.DTTTrigProd.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), and DTTTrigValid.DTTTrigValid.initCrab().

DTTTrigProd.DTTTrigProd.dir

Definition at line 10 of file DTTTrigProd.py.

Referenced by DTValidSummary.DTValidSummary.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTTTrigProd.DTTTrigProd.outputfile

Definition at line 8 of file DTTTrigProd.py.

Referenced by DTTTrigProd.DTTTrigProd.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTTTrigProd.DTTTrigProd.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess().

DTTTrigProd.DTTTrigProd.process

Definition at line 12 of file DTTTrigProd.py.

Referenced by ConfigBuilder.ConfigBuilder.addExtraStream(), ConfigBuilder.ConfigBuilder.doNotInlineEventContent(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.dumpPython(), DTTTrigProd.DTTTrigProd.initProcess(), DTValidSummary.DTValidSummary.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), DTTTrigValid.DTTTrigValid.initProcess(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.open(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.outputEventContent(), ConfigBuilder.ConfigBuilder.prepare_DQM(), ConfigBuilder.ConfigBuilder.prepare_FASTSIM(), ConfigBuilder.ConfigBuilder.prepare_VALIDATION(), ConfigBuilder.ConfigBuilder.renameHLTprocessInSequence(), ConfigBuilder.ConfigBuilder.scheduleSequence(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProcess(), python.Vispa.Plugins.ConfigEditor.ConfigDataAccessor.ConfigDataAccessor.setProperty(), DTValidSummary.DTValidSummary.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), and DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg().

DTTTrigProd.DTTTrigProd.project

Definition at line 48 of file DTTTrigProd.py.

DTTTrigProd.DTTTrigProd.pset_name

Definition at line 7 of file DTTTrigProd.py.

Referenced by DTTTrigProd.DTTTrigProd.initCrab(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), DTTTrigValid.DTTTrigValid.initCrab(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initCrab(), DTValidSummary.DTValidSummary.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), and DTTTrigValid.DTTTrigValid.writeCfg().

DTTTrigProd.DTTTrigProd.pset_template

Definition at line 11 of file DTTTrigProd.py.

Referenced by DTTTrigProd.DTTTrigProd.initProcess(), DTValidSummary.DTValidSummary.initProcess(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.initProcess(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess(), and DTTTrigValid.DTTTrigValid.initProcess().

DTTTrigProd.DTTTrigProd.task

Definition at line 17 of file DTTTrigProd.py.