CMS 3D CMS Logo

Functions | Variables
mergeAndRegister Namespace Reference

Functions

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

Variables

 allOldFiles
 
 destdir
 
 destfile
 
 logfile
 
 LOGFILE
 
 NEW
 
 newFiles
 loop for runs More...
 
 NFOUND
 search new files More...
 
 ntries
 
 oldfiles
 
 paths
 
 rest
 
 runnr
 
 slice
 
 TAG
 
 TempTag
 
 tmpdestfile
 
 version
 

Function Documentation

◆ filecheck()

def mergeAndRegister.filecheck (   rootfile)

Definition at line 22 of file mergeAndRegister.py.

22 def filecheck(rootfile):
23  f = TFile(rootfile)
24  if (f.IsZombie()):
25  #print "File corrupted"
26  f.Close()
27  return 0
28  else:
29  hist = f.FindObjectAny("reportSummaryContents")
30  #(skip filecheck for HcalTiming files!!)
31  if (hist == None and rootfile.rfind('HcalTiming') == -1):
32  #print "File is incomplete"
33  f.Close()
34  return 0
35  else:
36  #print "File is OK"
37  f.Close()
38  return 1
39 
40 
41 
def filecheck(rootfile)

◆ sendmail()

def mergeAndRegister.sendmail (   EmailAddress,
  run 
)

Definition at line 11 of file mergeAndRegister.py.

11 def sendmail(EmailAddress,run):
12  s=smtplib.SMTP("localhost")
13  tolist=[EmailAddress]
14  body="File merge failed by unknown reason for run"+run
15  msg = MIMEText(body)
16  msg['Subject'] = "File merge failed."
17  msg['From'] = ServerMail
18  msg['To'] = EmailAddress
19  s.sendmail(ServerMail,tolist,msg.as_string())
20  s.quit()
21 
def sendmail(EmailAddress, run)

Variable Documentation

◆ allOldFiles

mergeAndRegister.allOldFiles

Definition at line 69 of file mergeAndRegister.py.

◆ destdir

mergeAndRegister.destdir

Definition at line 72 of file mergeAndRegister.py.

◆ destfile

mergeAndRegister.destfile

Definition at line 76 of file mergeAndRegister.py.

◆ logfile

mergeAndRegister.logfile

Definition at line 84 of file mergeAndRegister.py.

◆ LOGFILE

mergeAndRegister.LOGFILE

Definition at line 94 of file mergeAndRegister.py.

◆ NEW

mergeAndRegister.NEW

Definition at line 49 of file mergeAndRegister.py.

◆ newFiles

mergeAndRegister.newFiles

loop for runs

Definition at line 68 of file mergeAndRegister.py.

◆ NFOUND

mergeAndRegister.NFOUND

search new files

Definition at line 48 of file mergeAndRegister.py.

◆ ntries

mergeAndRegister.ntries

Definition at line 92 of file mergeAndRegister.py.

Referenced by FFTJetPileupProcessor.mixExtraGrid().

◆ oldfiles

mergeAndRegister.oldfiles

Definition at line 73 of file mergeAndRegister.py.

◆ paths

mergeAndRegister.paths

Definition at line 52 of file mergeAndRegister.py.

◆ rest

mergeAndRegister.rest

◆ runnr

mergeAndRegister.runnr

Definition at line 71 of file mergeAndRegister.py.

◆ slice

mergeAndRegister.slice

◆ TAG

mergeAndRegister.TAG

Definition at line 50 of file mergeAndRegister.py.

◆ TempTag

mergeAndRegister.TempTag

Definition at line 42 of file mergeAndRegister.py.

◆ tmpdestfile

mergeAndRegister.tmpdestfile

Definition at line 85 of file mergeAndRegister.py.

◆ version

mergeAndRegister.version

Definition at line 74 of file mergeAndRegister.py.