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
DTVDriftSegmentCalibration.DTVDriftSegmentCalibration 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 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 
8  def __init__(self, run, dir, config):
9  self.pset_name = 'dtVDriftSegmentCalibration_cfg.py'
10  self.outputfile = 'DTVDriftHistos.root'
11  self.config = config
12  self.dir = dir
13 
14  self.pset_template = 'CalibMuon.DTCalibration.dtVDriftSegmentCalibration_cfg'
15  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics:
16  self.pset_template = 'CalibMuon.DTCalibration.dtVDriftSegmentCalibration_cosmics_cfg'
17 
18  self.process = None
19  self.crab_cfg = None
20  self.initProcess()
21  self.initCrab()
22  self.task = CrabTask(self.dir,self.crab_cfg)

Member Function Documentation

def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab (   self)

Definition at line 51 of file DTVDriftSegmentCalibration.py.

References tools.addCrabInputFile(), DTValidSummary.DTValidSummary.config, DTTTrigProd.DTTTrigProd.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.config, DTResidualCalibration.DTResidualCalibration.config, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.config, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.config, DTDqm.DTDqm.config, DTTTrigValid.DTTTrigValid.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, CrabTask.CrabTask.crab_cfg, DTTTrigProd.DTTTrigProd.crab_cfg, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.crab_cfg, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.crab_cfg, DTResidualCalibration.DTResidualCalibration.crab_cfg, DTTTrigValid.DTTTrigValid.crab_cfg, tools.loadCrabCfg(), tools.loadCrabDefault(), DTTTrigProd.DTTTrigProd.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.outputfile, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.outputfile, DTTTrigValid.DTTTrigValid.outputfile, DTTTrigProd.DTTTrigProd.pset_name, DTTTrigValid.DTTTrigValid.pset_name, DTResidualCalibration.DTResidualCalibration.pset_name, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_name, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name, DTValidSummary.DTValidSummary.pset_name, DTDqm.DTDqm.pset_name, and CrabTask.CrabTask.pset_name.

51 
52  def initCrab(self):
53  crab_cfg_parser = loadCrabCfg()
54  loadCrabDefault(crab_cfg_parser,self.config)
55  crab_cfg_parser.set('CMSSW','pset',self.pset_name)
56  crab_cfg_parser.set('CMSSW','output_file',self.outputfile)
57  crab_cfg_parser.remove_option('USER','additional_input_files')
58  if hasattr(self.config,'inputTTrigDB') and self.config.inputTTrigDB:
59  addCrabInputFile(crab_cfg_parser,self.config.inputTTrigDB)
60 
61  if hasattr(self.config,'inputVdriftDB') and self.config.inputVdriftDB:
62  addCrabInputFile(crab_cfg_parser,self.config.inputVdriftDB)
63 
64  self.crab_cfg = crab_cfg_parser
def addCrabInputFile
Definition: tools.py:147
def loadCrabDefault
Definition: tools.py:159
def loadCrabCfg
Definition: tools.py:142
def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess (   self)

Definition at line 23 of file DTVDriftSegmentCalibration.py.

References DTValidSummary.DTValidSummary.config, DTTTrigProd.DTTTrigProd.config, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.config, DTTTrigResidualCorr.DTTTrigResidualCorr.config, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.config, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.config, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.config, DTResidualCalibration.DTResidualCalibration.config, DTDqm.DTDqm.config, DTTTrigCorrFirst.DTTTrigCorrFirst.config, DTTTrigValid.DTTTrigValid.config, tools.loadCmsProcess(), DTTTrigProd.DTTTrigProd.outputfile, DTResidualCalibration.DTResidualCalibration.outputfile, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.outputfile, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.outputfile, DTTTrigValid.DTTTrigValid.outputfile, tools.prependPaths(), DTTTrigProd.DTTTrigProd.process, DTValidSummary.DTValidSummary.process, DTDqm.DTDqm.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTTTrigValid.DTTTrigValid.process, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.process, DTTTrigResidualCorr.DTTTrigResidualCorr.process, DTTTrigCorrFirst.DTTTrigCorrFirst.process, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.process, DTTTrigProd.DTTTrigProd.pset_template, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.pset_template, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_template, DTValidSummary.DTValidSummary.pset_template, DTResidualCalibration.DTResidualCalibration.pset_template, DTDqm.DTDqm.pset_template, and DTTTrigValid.DTTTrigValid.pset_template.

23 
24  def initProcess(self):
26  self.process.GlobalTag.globaltag = self.config.globaltag
27  self.process.dtVDriftSegmentCalibration.rootFileName = self.outputfile
28  # Add tTrig and vDrift DB's, if requested
29  if hasattr(self.config,'inputTTrigDB') and self.config.inputTTrigDB:
30  label = ''
31  if hasattr(self.config,'runOnCosmics') and self.config.runOnCosmics: label = 'cosmics'
32  addPoolDBESSource(process = self.process,
33  moduleName = 'tTrigDB',record = 'DTTtrigRcd',tag = 'ttrig',label = label,
34  connect = 'sqlite_file:%s' % os.path.basename(self.config.inputTTrigDB))
35 
36  if hasattr(self.config,'inputVdriftDB') and self.config.inputVdriftDB:
37  addPoolDBESSource(process = self.process,
38  moduleName = 'vDriftDB',record = 'DTMtimeRcd',tag = 'vDrift',
39  connect = 'sqlite_file:%s' % os.path.basename(self.config.inputVdriftDB))
40 
41  # Prepend paths with unpacker if running on RAW
42  if hasattr(self.config,'runOnRAW') and self.config.runOnRAW:
43  prependPaths(self.process,self.config.digilabel)
44 
45  # Prepend paths with custom selection sequence
46  if hasattr(self.config,'preselection') and self.config.preselection:
47  pathsequence = self.config.preselection.split(':')[0]
48  seqname = self.config.preselection.split(':')[1]
49  self.process.load(pathsequence)
50  prependPaths(self.process,seqname)
def loadCmsProcess
Definition: tools.py:110
def prependPaths
Definition: tools.py:118
def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.run (   self)

Definition at line 69 of file DTVDriftSegmentCalibration.py.

Referenced by Types.LuminosityBlockID.cppID().

def DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg (   self)

Definition at line 65 of file DTVDriftSegmentCalibration.py.

References CmsswTask.CmsswTask.dir, DTDqm.DTDqm.dir, DTValidSummary.DTValidSummary.dir, DTTTrigResidualCorr.DTTTrigResidualCorr.dir, DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.dir, DTTTrigProd.DTTTrigProd.dir, DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.dir, CrabTask.CrabTask.dir, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.dir, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.dir, DTResidualCalibration.DTResidualCalibration.dir, DTTTrigCorrFirst.DTTTrigCorrFirst.dir, DTTTrigValid.DTTTrigValid.dir, DTTTrigProd.DTTTrigProd.process, DTDqm.DTDqm.process, DTValidSummary.DTValidSummary.process, DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.process, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process, DTResidualCalibration.DTResidualCalibration.process, DTTTrigValid.DTTTrigValid.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, DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name, DTValidSummary.DTValidSummary.pset_name, DTDqm.DTDqm.pset_name, and CrabTask.CrabTask.pset_name.

65 
66  def writeCfg(self):
67  writeCfg(self.process,self.dir,self.pset_name)
68  #writeCfgPkl(self.process,self.dir,self.pset_name)

Member Data Documentation

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.config

Definition at line 10 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.crab_cfg

Definition at line 18 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.dir

Definition at line 11 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.outputfile

Definition at line 9 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.process

Definition at line 17 of file DTVDriftSegmentCalibration.py.

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

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.project

Definition at line 70 of file DTVDriftSegmentCalibration.py.

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_name

Definition at line 8 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initCrab(), and DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.pset_template

Definition at line 13 of file DTVDriftSegmentCalibration.py.

Referenced by DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.initProcess().

DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.task

Definition at line 21 of file DTVDriftSegmentCalibration.py.