CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Namespaces | Functions | Variables
fileCollector.py File Reference

Go to the source code of this file.

Namespaces

 fileCollector
 

Functions

def fileCollector.convert
 
def fileCollector.filecheck
 
def fileCollector.logme
 
def fileCollector.sendmail
 

Variables

list fileCollector.COLLECTDIR = sys.argv[2]
 
 fileCollector.done = False
 
string fileCollector.donefile = "%s/%s/%s/%s"
 
tuple fileCollector.dqmfile = Tfile.replace('Playback','DQM')
 
list fileCollector.DROPBOX = sys.argv[4]
 
list fileCollector.EMAIL = sys.argv[1]
 
int fileCollector.EMAILINTERVAL = 15
 
string fileCollector.f = "%s/%s"
 
string fileCollector.finalfile = "%s/V%04d/DQM_V0001_%s_R%09d.root"
 
string fileCollector.finalTdir = "%s/%s/%s"
 
string fileCollector.finalTfile = "%s/%s/%s/%s"
 
string fileCollector.finalTMPfile = "%s/DQM_V0001_%s_R%09d.root.%s"
 
tuple fileCollector.fMatch = re.match('^DQM_V[0-9]{4}_(?P<subsys>.*)_R(?P<runnr>[0-9]{9})(|_T[0-9]*)\.root$',f)
 
tuple fileCollector.HOSTNAME = socket.gethostname()
 
int fileCollector.keeper = 0
 
tuple fileCollector.lastEmailSent = datetime.now()
 
tuple fileCollector.lFile = open("%s/lock" % TMPDROPBOX ,"a")
 
tuple fileCollector.md5Digest = md5(file(Tfile).read())
 
dictionary fileCollector.NEW = {}
 
int fileCollector.NFOUND = 0
 
tuple fileCollector.now = datetime.now()
 
int fileCollector.NRUNS = 0
 
tuple fileCollector.originFile = open(originTMPFile,"w")
 
string fileCollector.originFileName = "%s.origin"
 
string fileCollector.originStr = "md5:%s %d %s"
 
string fileCollector.originTMPFile = "%s.origin"
 
int fileCollector.RETRIES = 3
 
tuple fileCollector.runnr = int(fMatch.group("runnr"))
 
string fileCollector.runstr = "%09d"
 
tuple fileCollector.SBASEDIR = os.path.abspath(__file__)
 
tuple fileCollector.seed = HOSTNAME.replace("-","t")
 
string fileCollector.SENDMAIL = "/usr/sbin/sendmail"
 
tuple fileCollector.subsystem = fMatch.group("subsys")
 
tuple fileCollector.TAGRUNEND = long(sorted(NEW.keys(),reverse=True)[1])
 
list fileCollector.TAGS = []
 
 fileCollector.Tfile = dqmfile
 
list fileCollector.TFILEDONEDIR = sys.argv[3]
 
tuple fileCollector.Tfiles = sorted(files,cmp=lambda x,y: "_T" not in x and x != y and 1 or cmp(x,y))
 
string fileCollector.TMPDROPBOX = "%s/.tmpdropbox"
 
int fileCollector.version = 1
 
int fileCollector.WAITTIME = 10