CMS 3D CMS Logo

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

Go to the source code of this file.

Namespaces

 groupFilesInBlocks
 

Functions

def groupFilesInBlocks.makeJobBlock
 

Variables

string groupFilesInBlocks.comma = ","
 
string groupFilesInBlocks.commandline = " "
 
string groupFilesInBlocks.commax = ","
 
tuple groupFilesInBlocks.comment1RE = re.compile(r'^#.+$')
 
list groupFilesInBlocks.commentLines = []
 
list groupFilesInBlocks.copyargs = sys.argv[:]
 
int groupFilesInBlocks.default = 0
 
string groupFilesInBlocks.dest = "debug"
 
list groupFilesInBlocks.eventsFiles = []
 
tuple groupFilesInBlocks.evtPerJob = int(math.ceil(float(ntotal)/NBLOCKS))
 
tuple groupFilesInBlocks.fileLineRE = re.compile(r'^.*\'(.*)\'.+# (\d*).*$')
 
tuple groupFilesInBlocks.fin = open(INFILE, "r")
 
tuple groupFilesInBlocks.fout = open(OUTFILE, mode="w")
 
string groupFilesInBlocks.help = "debug verbosity level"
 
list groupFilesInBlocks.INFILE = sys.argv[2]
 
list groupFilesInBlocks.jobsBlocks = []
 
tuple groupFilesInBlocks.lines = fin.readlines()
 
tuple groupFilesInBlocks.match = comment1RE.match(line)
 
tuple groupFilesInBlocks.NBLOCKS = int(sys.argv[1])
 
int groupFilesInBlocks.ntotal = 0
 
list groupFilesInBlocks.OUTFILE = sys.argv[3]
 
tuple groupFilesInBlocks.parser = optparse.OptionParser(usage)
 To parse commandline args. More...
 
list groupFilesInBlocks.prog = sys.argv[0]
 
 groupFilesInBlocks.temp = eventsFiles
 
int groupFilesInBlocks.tt = 0
 
string groupFilesInBlocks.type = "int"
 
string groupFilesInBlocks.usage = './%(prog)s NBLOCKS INFILE OUTFILE [options]\n'