CMS 3D CMS Logo

List of all members | Public Member Functions | Public Attributes
validateAlignments.ParallelMergeJob Class Reference

— Classes —############################ More...

Public Member Functions

def __init__ (self, _name, _path, _dependency)
 
def addDependency (self, dependency)
 
def runJob (self, config)
 

Public Attributes

 dependencies
 
 name
 
 path
 

Detailed Description

— Classes —############################

Definition at line 44 of file validateAlignments.py.

Constructor & Destructor Documentation

def validateAlignments.ParallelMergeJob.__init__ (   self,
  _name,
  _path,
  _dependency 
)

Definition at line 46 of file validateAlignments.py.

46  def __init__(self, _name, _path, _dependency):
47  self.name=_name
48  self.path=_path
49  self.dependencies=_dependency
def __init__(self, _name, _path, _dependency)

Member Function Documentation

def validateAlignments.ParallelMergeJob.addDependency (   self,
  dependency 
)

Definition at line 50 of file validateAlignments.py.

50  def addDependency(self,dependency):
51  if isinstance(dependency,list):
52  self.dependencies.extend(dependency)
53  else:
54  self.dependencies.append(dependency)
def validateAlignments.ParallelMergeJob.runJob (   self,
  config 
)

Definition at line 55 of file validateAlignments.py.

References validateAlignments.ParallelMergeJob.dependencies, helperFunctions.getCommandOutput2(), join(), AlignableObjectId::entry.name, preexistingValidation.PreexistingValidation.name, alignment.Alignment.name, validateAlignments.ParallelMergeJob.name, genericValidation.GenericValidation.name, TrackerSectorStruct.name, classes.MonitorData.name, MuonGeometrySanityCheckPoint.name, classes.OutputData.name, geometry.Structure.name, plotscripts.SawTeethFunction.name, presentation.ValidationPlots.path, validateAlignments.ParallelMergeJob.path, and split.

55  def runJob(self, config):
56  repMap = {
57  "commands": config.getGeneral()["jobmode"].split(",")[1],
58  "jobName": self.name,
59  "logDir": config.getGeneral()["logdir"],
60  "script": self.path,
61  "bsub": "/afs/cern.ch/cms/caf/scripts/cmsbsub",
62  "conditions": '"' + " && ".join(["ended(" + jobId + ")" for jobId in self.dependencies]) + '"'
63  }
64  return getCommandOutput2("%(bsub)s %(commands)s "
65  "-J %(jobName)s "
66  "-o %(logDir)s/%(jobName)s.stdout "
67  "-e %(logDir)s/%(jobName)s.stderr "
68  "-w %(conditions)s "
69  "%(script)s"%repMap)
70 
def getCommandOutput2(command)
static std::string join(char **cmd)
Definition: RemoteFile.cc:18
double split
Definition: MVATrainer.cc:139

Member Data Documentation

validateAlignments.ParallelMergeJob.dependencies
validateAlignments.ParallelMergeJob.name

Definition at line 47 of file validateAlignments.py.

Referenced by ElectronMVAID.ElectronMVAID.__call__(), dirstructure.Directory.__create_pie_image(), DisplayManager.DisplayManager.__del__(), dqm_interfaces.DirID.__eq__(), BeautifulSoup.Tag.__eq__(), dirstructure.Directory.__get_full_path(), dirstructure.Comparison.__get_img_name(), dataset.Dataset.__getDataType(), dataset.Dataset.__getFileInfoList(), dirstructure.Comparison.__make_image(), core.autovars.NTupleVariable.__repr__(), core.autovars.NTupleObjectType.__repr__(), core.autovars.NTupleObject.__repr__(), core.autovars.NTupleCollection.__repr__(), dirstructure.Directory.__repr__(), dqm_interfaces.DirID.__repr__(), dirstructure.Comparison.__repr__(), config.Service.__setattr__(), config.CFG.__str__(), counter.Counter.__str__(), average.Average.__str__(), BeautifulSoup.Tag.__str__(), BeautifulSoup.SoupStrainer.__str__(), core.autovars.NTupleObjectType.addSubObjects(), core.autovars.NTupleObjectType.addVariables(), core.autovars.NTupleObjectType.allVars(), dirstructure.Directory.calcStats(), validation.Sample.digest(), python.rootplot.utilities.Hist.divide(), python.rootplot.utilities.Hist.divide_wilson(), DisplayManager.DisplayManager.Draw(), TreeCrawler.Package.dump(), core.autovars.NTupleVariable.fillBranch(), core.autovars.NTupleObject.fillBranches(), core.autovars.NTupleCollection.fillBranchesScalar(), core.autovars.NTupleCollection.fillBranchesVector(), core.autovars.NTupleCollection.get_cpp_declaration(), core.autovars.NTupleCollection.get_cpp_wrapper_class(), core.autovars.NTupleCollection.get_py_wrapper_class(), utils.StatisticalTest.get_status(), production_tasks.Task.getname(), dataset.CMSDataset.getPrimaryDatasetEntries(), dataset.PrivateDataset.getPrimaryDatasetEntries(), VIDSelectorBase.VIDSelectorBase.initialize(), personalPlayback.Applet.log(), core.autovars.NTupleVariable.makeBranch(), core.autovars.NTupleObject.makeBranches(), core.autovars.NTupleCollection.makeBranchesScalar(), core.autovars.NTupleCollection.makeBranchesVector(), dirstructure.Directory.print_report(), dataset.BaseDataset.printInfo(), dataset.Dataset.printInfo(), production_tasks.MonitorJobs.run(), validateAlignments.ParallelMergeJob.runJob(), BeautifulSoup.SoupStrainer.searchTag(), python.rootplot.utilities.Hist.TGraph(), python.rootplot.utilities.Hist.TH1F(), Vispa.Views.PropertyView.Property.valueChanged(), counter.Counter.write(), and average.Average.write().

validateAlignments.ParallelMergeJob.path