CMS 3D CMS Logo

Functions | Variables
dqmPostProcessing_online Namespace Reference

Functions

def filecheck (rootfile)
 
def sendmail (EmailAddress, run)
 

Variables

 allOldFiles
 
 DB
 
 destdir
 
 destfile
 
 DIR
 
 DONEDIR
 
 donedir
 
 donefile
 
 existing
 
 f
 
 FILEDIR
 
 files
 
 logfile
 
 LOGFILE
 
 MAX_RUNS
 
 MAX_TOTAL_RUNS
 
 NEW
 
 newer
 
 newFiles
 
 NFOUND
 
 NRUNS
 search new files More...
 
 older
 
 oldfiles
 
 runnr
 
 ServerMail
 
 stdout
 
 TMPDB
 
 tmpdestfile
 
 version
 
 WAITTIME
 
 YourMail
 

Function Documentation

◆ filecheck()

def dqmPostProcessing_online.filecheck (   rootfile)

Definition at line 33 of file dqmPostProcessing_online.py.

33 def filecheck(rootfile):
34  f = TFile(rootfile)
35  if (f.IsZombie()):
36  #print "File corrupted"
37  f.Close()
38  return 0
39  else:
40  hist = f.FindObjectAny("reportSummaryContents")
41  #(skip filecheck for HcalTiming files!!)
42  if (hist == None and rootfile.rfind('HcalTiming') == -1):
43  #print "File is incomplete"
44  f.Close()
45  return 0
46  else:
47  #print "File is OK"
48  f.Close()
49  return 1
50 

◆ sendmail()

def dqmPostProcessing_online.sendmail (   EmailAddress,
  run 
)

Definition at line 22 of file dqmPostProcessing_online.py.

22 def sendmail(EmailAddress,run):
23  s=smtplib.SMTP("localhost")
24  tolist=[EmailAddress, "lat@cern.ch"]
25  body="File merge failed by unknown reason for run"+run
26  msg = MIMEText(body)
27  msg['Subject'] = "File merge failed."
28  msg['From'] = ServerMail
29  msg['To'] = EmailAddress
30  s.sendmail(ServerMail,tolist,msg.as_string())
31  s.quit()
32 
def sendmail(EmailAddress, run)

Variable Documentation

◆ allOldFiles

dqmPostProcessing_online.allOldFiles

Definition at line 73 of file dqmPostProcessing_online.py.

◆ DB

dqmPostProcessing_online.DB

Definition at line 11 of file dqmPostProcessing_online.py.

Referenced by TFParams.fitpj(), and edm::PileUp.PileUp().

◆ destdir

dqmPostProcessing_online.destdir

Definition at line 81 of file dqmPostProcessing_online.py.

◆ destfile

dqmPostProcessing_online.destfile

Definition at line 95 of file dqmPostProcessing_online.py.

◆ DIR

dqmPostProcessing_online.DIR

◆ DONEDIR

dqmPostProcessing_online.DONEDIR

Definition at line 14 of file dqmPostProcessing_online.py.

◆ donedir

dqmPostProcessing_online.donedir

Definition at line 82 of file dqmPostProcessing_online.py.

◆ donefile

dqmPostProcessing_online.donefile

Definition at line 60 of file dqmPostProcessing_online.py.

◆ existing

dqmPostProcessing_online.existing

◆ f

dqmPostProcessing_online.f

Definition at line 61 of file dqmPostProcessing_online.py.

◆ FILEDIR

dqmPostProcessing_online.FILEDIR

Definition at line 13 of file dqmPostProcessing_online.py.

◆ files

dqmPostProcessing_online.files

Definition at line 79 of file dqmPostProcessing_online.py.

◆ logfile

dqmPostProcessing_online.logfile

◆ LOGFILE

dqmPostProcessing_online.LOGFILE

Definition at line 100 of file dqmPostProcessing_online.py.

◆ MAX_RUNS

dqmPostProcessing_online.MAX_RUNS

Definition at line 17 of file dqmPostProcessing_online.py.

◆ MAX_TOTAL_RUNS

dqmPostProcessing_online.MAX_TOTAL_RUNS

Definition at line 16 of file dqmPostProcessing_online.py.

◆ NEW

dqmPostProcessing_online.NEW

Definition at line 55 of file dqmPostProcessing_online.py.

◆ newer

dqmPostProcessing_online.newer

◆ newFiles

dqmPostProcessing_online.newFiles

Definition at line 72 of file dqmPostProcessing_online.py.

◆ NFOUND

dqmPostProcessing_online.NFOUND

Definition at line 54 of file dqmPostProcessing_online.py.

◆ NRUNS

dqmPostProcessing_online.NRUNS

search new files

Definition at line 53 of file dqmPostProcessing_online.py.

◆ older

dqmPostProcessing_online.older

Definition at line 129 of file dqmPostProcessing_online.py.

◆ oldfiles

dqmPostProcessing_online.oldfiles

Definition at line 83 of file dqmPostProcessing_online.py.

◆ runnr

dqmPostProcessing_online.runnr

Definition at line 59 of file dqmPostProcessing_online.py.

◆ ServerMail

dqmPostProcessing_online.ServerMail

Definition at line 20 of file dqmPostProcessing_online.py.

◆ stdout

dqmPostProcessing_online.stdout

Definition at line 8 of file dqmPostProcessing_online.py.

◆ TMPDB

dqmPostProcessing_online.TMPDB

Definition at line 12 of file dqmPostProcessing_online.py.

◆ tmpdestfile

dqmPostProcessing_online.tmpdestfile

Definition at line 97 of file dqmPostProcessing_online.py.

◆ version

dqmPostProcessing_online.version

Definition at line 85 of file dqmPostProcessing_online.py.

◆ WAITTIME

dqmPostProcessing_online.WAITTIME

Definition at line 15 of file dqmPostProcessing_online.py.

◆ YourMail

dqmPostProcessing_online.YourMail

Definition at line 19 of file dqmPostProcessing_online.py.