Skip to content

Commit

Permalink
Move to a real gun instead of the single_4gev_e_upstream_tagger
Browse files Browse the repository at this point in the history
  • Loading branch information
tvami committed Apr 15, 2024
1 parent 4f1e581 commit 3638922
Showing 1 changed file with 10 additions and 9 deletions.
19 changes: 10 additions & 9 deletions Detectors/test/reducedLDMX_eGun_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,13 @@
from LDMX.SimCore import generators as gen
from LDMX.SimCore import simulator as sim

myGun = gen.single_4gev_e_upstream_tagger()
myGun.vertex = [ 0., 0., -880] # mm
myGun.momentum = [0,0,4000] # MeV
#myGun = gen.single_4gev_e_upstream_tagger()
myGun = gen.multi( "mgpGen" )
myGun.vertex = [ 0., 0., -880] # mm
myGun.momentum = [0.,0.,4000.] # MeV
myGun.nParticles = 1
myGun.pdgID = 11
myGun.enablePoisson = False #True

mySim = sim.simulator( "mySim" ) # Build simulator object
mySim.setDetector( 'ldmx-reduced-v1', True )
Expand All @@ -18,12 +22,8 @@

mySim.generators = [ myGun ]
p.sequence = [ mySim ]
p.termLogLevel = 0

##################################################################
# Below should be the same for all sim scenarios

import os
import sys

p.maxEvents = 100
p.run = 200
Expand Down Expand Up @@ -73,4 +73,5 @@
TrigScintClusterProducer.pad3(),
trigScintTrack,
count, TriggerProcessor('trigger'),
] + dqm.all_dqm)
# ] + dqm.all_dqm)
])

0 comments on commit 3638922

Please sign in to comment.