CMS 3D CMS Logo

Functions | Variables
fileCollector Namespace Reference

Functions

def convert (infile, ofile)
 
def filecheck (rootfile)
 
def logme (msg, args)
 
def sendmail (body="Hello from visDQMZipCastorVerifier")
 

Variables

 cmp
 
 COLLECTDIR
 
 done
 
 donefile
 
 dqmfile
 
 DROPBOX
 
 EMAIL
 
 EMAILINTERVAL
 
 f
 
 files
 
 finalfile
 
 finalTdir
 
 finalTfile
 
 finalTMPfile
 
 fMatch
 
 HOSTNAME
 
 keeper
 
 lastEmailSent
 
 lFile
 
 md5Digest
 
 NEW
 
 NFOUND
 
 now
 
 NRUNS
 
 originFile
 
 originFileName
 
 originStr
 
 originTMPFile
 
 RETRIES
 
 reverse
 
 runnr
 
 runstr
 
 SBASEDIR
 
 seed
 
 SENDMAIL
 
 stdout
 
 subsystem
 
 TAGRUNEND
 
 TAGS
 
 Tfile
 
 TFILEDONEDIR
 
 Tfiles
 
 TMPDROPBOX
 
 version
 
 WAITTIME
 

Function Documentation

def fileCollector.convert (   infile,
  ofile 
)
def fileCollector.filecheck (   rootfile)

Definition at line 35 of file fileCollector.py.

References readEcalDQMStatus.read, and cms::dd.split().

35 def filecheck(rootfile):
36  cmd = 'root -l -b -q %s/filechk.C"(\\"%s\\")"' % (SBASEDIR,rootfile)
37  a = os.popen(cmd).read().split()
38  tag=a.pop()
39  if tag == '(int)(-1)' or tag == '(int)0':
40  return 0
41 
42  if tag == '(int)1':
43  return 1
44 
45  return 0
46 
std::vector< std::string_view > split(std::string_view, const char *)
def filecheck(rootfile)
def fileCollector.logme (   msg,
  args 
)

Definition at line 31 of file fileCollector.py.

References edm.print().

Referenced by DQMNet.losePeer(), DQMNet.onLocalNotify(), DQMNet.onMessage(), DQMNet.onPeerConnect(), DQMNet.onPeerData(), sendmail(), DQMNet.unpackQualityData(), and DQMNet.updateMask().

31 def logme(msg, *args):
32  procid = "[%s/%d]" % (__file__.rsplit("/", 1)[-1], os.getpid())
33  print(datetime.now(), procid, msg % args)
34 
def logme(msg, args)
S & print(S &os, JobReport::InputFile const &f)
Definition: JobReport.cc:66
def fileCollector.sendmail (   body = "Hello from visDQMZipCastorVerifier")

Definition at line 52 of file fileCollector.py.

References logme().

52 def sendmail(body="Hello from visDQMZipCastorVerifier"):
53  scall = Popen("%s -t" % SENDMAIL, shell=True, stdin=PIPE)
54  scall.stdin.write("To: %s\n" % EMAIL)
55  scall.stdin.write("Subject: File Collector on server %s has a Critical Error\n" %
56  HOSTNAME)
57  scall.stdin.write("\n") # blank line separating headers from body
58  scall.stdin.write("%s\n" % body)
59  scall.stdin.close()
60  rc = scall.wait()
61  if rc != 0:
62  logme("ERROR: Sendmail exit with status %s", rc)
63 
64 # --------------------------------------------------------------------
def logme(msg, args)
def sendmail(body="Hello from visDQMZipCastorVerifier")

Variable Documentation

fileCollector.cmp
fileCollector.COLLECTDIR

Definition at line 14 of file fileCollector.py.

fileCollector.done
fileCollector.donefile

Definition at line 90 of file fileCollector.py.

fileCollector.dqmfile

Definition at line 162 of file fileCollector.py.

Referenced by get_filename(), read_badmodlist(), and read_runflag().

fileCollector.DROPBOX

Definition at line 16 of file fileCollector.py.

fileCollector.EMAIL

Definition at line 13 of file fileCollector.py.

fileCollector.EMAILINTERVAL

Definition at line 20 of file fileCollector.py.

fileCollector.f

Definition at line 91 of file fileCollector.py.

fileCollector.files

Definition at line 125 of file fileCollector.py.

fileCollector.finalfile

Definition at line 191 of file fileCollector.py.

fileCollector.finalTdir

Definition at line 131 of file fileCollector.py.

fileCollector.finalTfile

Definition at line 130 of file fileCollector.py.

fileCollector.finalTMPfile

Definition at line 128 of file fileCollector.py.

fileCollector.fMatch

Definition at line 82 of file fileCollector.py.

fileCollector.HOSTNAME

Definition at line 25 of file fileCollector.py.

fileCollector.keeper

Definition at line 124 of file fileCollector.py.

fileCollector.lastEmailSent

Definition at line 28 of file fileCollector.py.

fileCollector.lFile

Definition at line 181 of file fileCollector.py.

fileCollector.md5Digest

Definition at line 173 of file fileCollector.py.

fileCollector.NEW

Definition at line 78 of file fileCollector.py.

fileCollector.NFOUND

Definition at line 77 of file fileCollector.py.

fileCollector.now

Definition at line 207 of file fileCollector.py.

Referenced by edm::CountAndLimit.add(), lumi::RevisionDML.addEntry(), lumi::RevisionDML.addRevision(), lumi::RevisionDML.addRunToCurrentHFDataTag(), dqmservices::DQMFileIterator.advanceToLumi(), HcalLuttoDB.beginJob(), RawEventOutputModuleForBU< Consumer >.beginLuminosityBlock(), edm::service::CondorStatusService.beginPost(), condbon.cdbon_write(), XrdAdaptor::RequestManager.checkSourcesImpl(), dqmservices::DQMFileIterator.collect(), edm::service::ConcurrentModuleTimer.ConcurrentModuleTimer(), dqmservices::DQMMonitoringService.DQMMonitoringService(), DTHVStatusHandler.dumpSnapshot(), XrdAdaptor::XrdReadStatistics.elapsedNS(), dqmservices::DQMMonitoringService.evLumi(), DaqFakeReader.fillRawData(), Fit.getFitQuality(), XrdAdaptor::RequestManager.getInstance(), DTHVStatusHandler.getNewObjects(), XrdAdaptor::RequestManager.handle(), XrdAdaptor::RequestManager::OpenHandler.HandleResponseWithHosts(), HtrXmlPatternWriter.HtrXmlPatternWriter(), cond::persistency.importPayload(), edm::InputSource.InputSource(), cond::persistency::IOVEditor.insert(), edm::service.isProcessWideService(), edm::service::CondorStatusService.lastUpdate(), LHCInfoPopConSourceHandler.LHCInfoPopConSourceHandler(), DQMNet.logme(), edm::InputSource.lumiLimitReached(), FastTimerService::Measurement.measure(), FastTimerService::Measurement.measure_and_accumulate(), FastTimerService::Measurement.measure_and_store(), Fit.multiplyMatrices(), operator<<(), dqmservices::DQMMonitoringService.outputLumiUpdate(), dqmservices::DQMMonitoringService.outputUpdate(), edm::service::StallMonitor.postBeginJob(), ThroughputService.postEvent(), edm::service::StallMonitor.postEvent(), edm::service::StallMonitor.postEventReadFromSource(), edm::service::StallMonitor.postModuleEvent(), edm::service::StallMonitor.postModuleEventAcquire(), edm::service::StallMonitor.postModuleEventPrefetching(), edm::service::StallMonitor.postModuleGlobalTransition(), edm::service::StallMonitor.postModuleStreamTransition(), edm::service::StallMonitor.postSourceEvent(), edm::service::StallMonitor.preEvent(), edm::service::StallMonitor.preEventReadFromSource(), edm::service::StallMonitor.preModuleEvent(), edm::service::StallMonitor.preModuleEventAcquire(), edm::service::StallMonitor.preModuleGlobalTransition(), edm::service::StallMonitor.preModuleStreamTransition(), ThroughputService.preSourceEvent(), edm::service::StallMonitor.preSourceEvent(), Fit.PropagateErrors(), XrdFile.readv(), FedRawDataInputSource.readWorker(), XrdAdaptor::RequestManager.requestFailure(), dqmservices::DQMFileIterator.reset(), lumi::CMSRunSummaryDummy2DB.retrieveData(), DQMNet.run(), ALIUtils.set_time_now(), XrdAdaptor::Source.setLastDowngrade(), edm::TimeoutPoolOutputModule.shouldWeCloseFile(), XrdAdaptor::Source.Source(), edm::service::ConcurrentModuleTimer.start(), edm::service::ConcurrentModuleTimer.stop(), StorageAccount::Stamp.tick(), dqmservices::DQMMonitoringService.tryUpdate(), edm::service::CondorStatusService.update(), dqmservices::DQMFileIterator.update_state(), SiStripPayloadHandler< SiStripPayload >.updateConfigMap(), edm::service::CondorStatusService.updateImpl(), and BenchmarkGrd.~BenchmarkGrd().

fileCollector.NRUNS

Definition at line 76 of file fileCollector.py.

fileCollector.originFile

Definition at line 176 of file fileCollector.py.

fileCollector.originFileName

Definition at line 192 of file fileCollector.py.

fileCollector.originStr

Definition at line 174 of file fileCollector.py.

fileCollector.originTMPFile

Definition at line 175 of file fileCollector.py.

fileCollector.RETRIES

Definition at line 23 of file fileCollector.py.

fileCollector.reverse

Definition at line 104 of file fileCollector.py.

fileCollector.runnr
fileCollector.runstr

Definition at line 89 of file fileCollector.py.

fileCollector.SBASEDIR

Definition at line 21 of file fileCollector.py.

fileCollector.seed

Definition at line 127 of file fileCollector.py.

fileCollector.SENDMAIL

Definition at line 24 of file fileCollector.py.

fileCollector.stdout

Definition at line 11 of file fileCollector.py.

fileCollector.subsystem

Definition at line 88 of file fileCollector.py.

fileCollector.TAGRUNEND

Definition at line 110 of file fileCollector.py.

fileCollector.TAGS

Definition at line 79 of file fileCollector.py.

fileCollector.Tfile

Definition at line 170 of file fileCollector.py.

fileCollector.TFILEDONEDIR

Definition at line 15 of file fileCollector.py.

fileCollector.Tfiles

Definition at line 125 of file fileCollector.py.

fileCollector.TMPDROPBOX

Definition at line 22 of file fileCollector.py.

fileCollector.version

Definition at line 180 of file fileCollector.py.

fileCollector.WAITTIME

Definition at line 19 of file fileCollector.py.