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
CmsswTask.CmsswTask Class Reference

Public Member Functions

def __init__
 
def initTask
 
def run
 

Public Attributes

 configs
 
 dir
 
 psets
 

Detailed Description

Definition at line 3 of file CmsswTask.py.

Constructor & Destructor Documentation

def CmsswTask.CmsswTask.__init__ (   self,
  dir,
  configs,
  psets = None 
)

Definition at line 4 of file CmsswTask.py.

4 
5  def __init__(self, dir, configs, psets=None):
6  self.dir = dir
7  self.configs = configs
8  self.psets = psets
9  self.initTask()

Member Function Documentation

def CmsswTask.CmsswTask.initTask (   self)

Definition at line 10 of file CmsswTask.py.

References CmsswTask.CmsswTask.configs, pos::PixelConfigList.configs, CmsswTask.CmsswTask.dir, CmsswTask.CmsswTask.psets, and TablePrint.write.

10 
11  def initTask(self):
12  if self.psets:
13  if not os.path.exists(self.dir): os.makedirs(self.dir)
14  for pset_name in self.configs:
15  pset = self.psets[pset_name]
16  open(self.dir + '/' + pset_name,'w').write(pset)
def CmsswTask.CmsswTask.run (   self)

Definition at line 17 of file CmsswTask.py.

References CmsswTask.CmsswTask.configs, pos::PixelConfigList.configs, and CmsswTask.CmsswTask.dir.

Referenced by Types.LuminosityBlockID.cppID().

17 
18  def run(self):
19  if not os.path.exists(self.dir): os.makedirs(self.dir)
20  cwd = os.getcwd()
21  for pset in self.configs:
22  os.chdir(self.dir)
23  if not os.path.exists(pset): raise RuntimeError,'%s not found in dir %s' % (pset,os.getcwd())
24 
25  cmd = 'cmsRun %s' % pset
26  print "Running", cmd, "in dir", self.dir
27  os.system(cmd)
28  os.chdir(cwd)

Member Data Documentation

CmsswTask.CmsswTask.configs

Definition at line 6 of file CmsswTask.py.

Referenced by python.rootplot.core.Options.arguments(), CmsswTask.CmsswTask.initTask(), python.rootplot.core.Options.process_configs(), CmsswTask.CmsswTask.run(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), and DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg().

CmsswTask.CmsswTask.dir

Definition at line 5 of file CmsswTask.py.

Referenced by CmsswTask.CmsswTask.initTask(), CmsswTask.CmsswTask.run(), CrabTask.CrabTask.run(), DTValidSummary.DTValidSummary.writeCfg(), DTDqm.DTDqm.writeCfg(), DTDQMMerge.DTDQMMerge.writeCfg(), DTVDriftMeanTimerWriter.DTVDriftMeanTimerWriter.writeCfg(), DTVDriftSegmentWriter.DTVDriftSegmentWriter.writeCfg(), DTTTrigCorrFirst.DTTTrigCorrFirst.writeCfg(), DTTTrigProd.DTTTrigProd.writeCfg(), DTDQMHarvesting.DTDQMHarvesting.writeCfg(), DTNoiseCalibration.DTNoiseCalibration.writeCfg(), DTTTrigTimeBoxesWriter.DTTTrigTimeBoxesWriter.writeCfg(), DTTTrigResidualCorr.DTTTrigResidualCorr.writeCfg(), DTResidualCalibration.DTResidualCalibration.writeCfg(), DTVDriftMeanTimerCalibration.DTVDriftMeanTimerCalibration.writeCfg(), DTTTrigValid.DTTTrigValid.writeCfg(), DTVDriftSegmentCalibration.DTVDriftSegmentCalibration.writeCfg(), and DTDQMValidation.DTDQMValidation.writeCfg().

CmsswTask.CmsswTask.psets

Definition at line 7 of file CmsswTask.py.

Referenced by Config.Process.dumpPython(), and CmsswTask.CmsswTask.initTask().