Skip to content

Commit 4ff9436

Browse files
authored
Add vertex to the LHE reader generator python with defaults (#1828)
1 parent 2373242 commit 4ff9436

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

SimCore/python/generators.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,12 +93,15 @@ class lhe(simcfg.PrimaryGenerator) :
9393
name of new primary generator
9494
filePath : str
9595
path to LHE file containing the primary vertices
96+
vertex : list of float, optional
97+
Vertex position to shoot from [mm]. Defaults to [0.0, 0.0, 0.0]
9698
"""
9799

98100
def __init__(self,name,filePath):
99101
super().__init__(name,'simcore::generators::LHEPrimaryGenerator')
100102

101103
self.filePath = filePath
104+
self.vertex = [0.0, 0.0, 0.0]
102105

103106
class completeReSim(simcfg.PrimaryGenerator) :
104107
"""New complete re-simprimary generator

0 commit comments

Comments
 (0)