CMS 3D CMS Logo

Functions | Variables
sysUtil Namespace Reference

Functions

def processRunning (processid)
 
def runCmmd (cmmdline, shell=False)
 

Variables

 pid
 
 shell
 

Function Documentation

def sysUtil.processRunning (   processid)
check if a process is still running

Definition at line 14 of file sysUtil.py.

References harvestTrackValidationPlots.str.

14 def processRunning(processid):
15  """
16  check if a process is still running
17  """
18  return os.path.exists(os.path.join('/proc',str(processid)))
19 
def processRunning(processid)
Definition: sysUtil.py:14
def sysUtil.runCmmd (   cmmdline,
  shell = False 
)
runsubprocess return processid

Definition at line 5 of file sysUtil.py.

5 def runCmmd(cmmdline,shell=False):
6  """runsubprocess return processid
7  """
8  args=[]
9  proc=Popen(cmmdline,shell=shell,stdout=PIPE,stdin=PIPE,stderr=STDOUT)
10  stdout_value,stderr_value=proc.communicate()
11  print repr(stdout_value)
12  return proc.pid
13 
def runCmmd(cmmdline, shell=False)
Definition: sysUtil.py:5

Variable Documentation

sysUtil.pid

Definition at line 22 of file sysUtil.py.

Referenced by TestPythiaDecays.analyze(), SiPixelErrorEstimation.analyze(), SiPixelTrackingRecHitsValid.analyze(), FastTimerService::PlotsPerJob.book(), edm::service.cmssw_stacktrace_fork(), TauValidation.countParticles(), fastsim::Decayer.decay(), fastsim::Decayer.Decayer(), CalibrationTask.directory(), CalibrationScanTask.directory(), SiStripCommissioningSource.directory(), ChargeDividerFP420.divide(), fwlite::ChainEvent.event(), ExternalLHEProducer.executeScript(), FastTimerService::PlotsPerJob.fill(), TriggerSummaryProducerAOD.fillFilterObjectMembers(), dqm::DQMFileSaverPB.fillJson(), DQMFileSaver.fillJson(), TriggerSummaryProducerAOD.fillTriggerObjectCollections(), PartonShowerBsHepMCFilter.filter(), PythiaFilterGammaJet.filter(), PythiaFilterGammaJetIsoPi0.filter(), PythiaFilterGammaJetWithBg.filter(), PythiaFilterGammaJetWithOutBg.filter(), PythiaFilterEMJetHeep.filter(), HighMultiplicityGenFilter.filter(), gen::BaseHadronizer.generateLHE(), RemoteFile.get(), fwlite::EventBase.getByLabelImpl(), HLTDoubletDZ< T1, T2 >.getCollections(), jsoncollector::FastMonitor.getHostAndPID(), fwlite::Event.getTFile(), TrackClassifier.hadronFlavor(), HLTDoublet< T1, T2 >.hltFilter(), Generator.isExoticNonDetectable(), TauValidation.leadingPionP4(), evf::EvFDaqDirector.make_flock(), dqm::DQMFileSaverOnline.makeSnapshot(), edm::ModuleDescription.ModuleDescription(), PythiaDecays.particleDaughters(), VertexHistoryAnalyzer.particleString(), TrackHistoryAnalyzer.particleString(), FastTimerService.postEvent(), FastTimerService.postPathEvent(), ProcessCallGraph.preBeginJob(), FastTimerService.prePathEvent(), Phase2TrackerDigitizerAlgorithm.primary_ionization(), SiPixelDigitizerAlgorithm.primary_ionization(), HepMCFileReader.printEvent(), ProcessCallGraph.processDescription(), L3MuonCandidateProducerFromMuons.produce(), L2MuonCandidateProducer.produce(), L3MuonCandidateProducer.produce(), CTPPSSimHitProducer.produce(), ME0MuonConverter.produce(), MuonSimHitProducer.produce(), edm::EventPrincipal.productProvenanceRetrieverPtr(), fwlite::BranchMapReader.productToBranchID(), CSCCathodeLCTProcessor.ptnFinding(), edm::ProductResolverBase.putOrMergeProduct(), PythiaDecays.PythiaDecays(), FastTimerService.querySourceTime(), CaloMeanResponse.readResponse(), CalorimetryManager.reconstructHCAL(), CalorimetryManager.reconstructTrack(), edm::DataManagingProductResolver.resolvedModuleLabel_(), edm::AliasProductResolver.resolvedModuleLabel_(), edm::ParentProcessProductResolver.resolvedModuleLabel_(), edm::NoProcessProductResolver.resolvedModuleLabel_(), edm::SingleChoiceNoProcessProductResolver.resolvedModuleLabel_(), HGCalTriggerBackend::HGCalTriggerSimCluster< FECODEC, DATA >.run(), run_script(), fwlite::MultiChainEvent.secondary(), TrackInformation.setCastorHitPID(), edm::StableProvenance.setProductID(), TauValidation.spinEffectsZH(), TestPythiaDecays.TestPythiaDecays(), HcalTB04Analysis.update(), edm::service::CondorStatusService.updateChirpImpl(), fwlite::internal::Strategy.updateMap(), ValidHitPairFilter.ValidHitPairFilter(), VertexHistoryAnalyzer.vertexString(), TrackHistoryAnalyzer.vertexString(), TauValidation.visibleTauEnergy(), and TestPythiaDecays.~TestPythiaDecays().

sysUtil.shell

Definition at line 22 of file sysUtil.py.

Referenced by SiPixelHitEfficiencySource.analyze(), and do_work().