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 15 of file sysUtil.py.

References edm.print(), and str.

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

Definition at line 6 of file sysUtil.py.

References edm.print().

6 def runCmmd(cmmdline,shell=False):
7  """runsubprocess return processid
8  """
9  args=[]
10  proc=Popen(cmmdline,shell=shell,stdout=PIPE,stdin=PIPE,stderr=STDOUT)
11  stdout_value,stderr_value=proc.communicate()
12  print(repr(stdout_value))
13  return proc.pid
14 
def runCmmd(cmmdline, shell=False)
Definition: sysUtil.py:6
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66

Variable Documentation

sysUtil.pid

Definition at line 23 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(), SiStripCommissioningSource.directory(), ChargeDividerFP420.divide(), fwlite::ChainEvent.event(), ExternalLHEProducer.executeScript(), FastTimerService::PlotsPerJob.fill(), TriggerSummaryProducerAOD.fillFilterObjectMembers(), dqm::DQMFileSaverPB.fillJson(), dqmfilesaver.fillJson(), TriggerSummaryProducerAOD.fillTriggerObjectCollections(), PartonShowerBsHepMCFilter.filter(), PartonShowerCsHepMCFilter.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(), ParticlePropagator.initProperDecayTime(), Generator.isExoticNonDetectable(), TauValidation.leadingPionP4(), evf::EvFDaqDirector.make_flock(), dqm::DQMFileSaverOnline.makeSnapshot(), edm::ModuleDescription.ModuleDescription(), PythiaDecays.particleDaughters(), VertexHistoryAnalyzer.particleString(), TrackHistoryAnalyzer.particleString(), CSCCathodeLCTProcessor.patternFinding(), 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(), edm::ProductResolverBase.putOrMergeProduct(), PythiaDecays.PythiaDecays(), CaloMeanResponse.readResponse(), CalorimetryManager.reconstructHCAL(), CalorimetryManager.reconstructTrack(), edm::DataManagingProductResolver.resolvedModuleLabel_(), edm::AliasProductResolver.resolvedModuleLabel_(), edm::SwitchBaseProductResolver.resolvedModuleLabel_(), edm::ParentProcessProductResolver.resolvedModuleLabel_(), edm::NoProcessProductResolver.resolvedModuleLabel_(), edm::SingleChoiceNoProcessProductResolver.resolvedModuleLabel_(), 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 23 of file sysUtil.py.

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