Page Menu
Home
HEPForge
Search
Configure Global Search
Log In
Files
F8310163
Generator.py
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
388 B
Subscribers
None
Generator.py
View Options
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
Details
Attached
Mime Type
text/x-python
Expires
Sat, Dec 21, 5:34 PM (12 h, 4 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
4023654
Default Alt Text
Generator.py (388 B)
Attached To
rRIVETSVN rivetsvn
Event Timeline
Log In to Comment