Page MenuHomeHEPForge

Generator.py
No OneTemporary

Generator.py

class Generator:
"""Class for information about generators to use in a Rivet run."""
def __init__(self, aname):
self.name = aname
cmdfile = open(self.name+'/cmd')
self.cmd = ''
for line in cmdfile:
self.cmd+=line
cmdfile.close()
def CommandLine(self, nevents):
return self.cmd.replace('__NEVENTS__', str(nevents))

File Metadata

Mime Type
text/x-python
Expires
Sat, Dec 21, 5:34 PM (9 h, 18 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023654
Default Alt Text
Generator.py (388 B)

Event Timeline