Skip to content

Commit 73ea09d

Browse files
committed
ENH: Cleaner output for pctweplfit
1 parent 831d4f0 commit 73ea09d

1 file changed

Lines changed: 4 additions & 6 deletions

File tree

applications/pctweplfit/pctweplfit.py

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ def add_detector(name, translation, attach_to_phantom=False):
105105
phase_space = sim.add_actor("PhaseSpaceActor", "PhaseSpace" + name)
106106
phase_space.attached_to = plane.name
107107
phase_space.output_filename = (
108-
f"{output}/l{int(phantom_length_mm)}_ps{name}.root"
108+
f"{output}/output/l{int(phantom_length_mm)}_ps{name}.root"
109109
)
110110
phase_space.attributes = [
111111
"EventID",
@@ -130,10 +130,6 @@ def add_detector(name, translation, attach_to_phantom=False):
130130
):
131131
add_detector(str(x), [0 * mm, 0 * mm, x * mm], True)
132132

133-
# Particle stats
134-
stat = sim.add_actor("SimulationStatisticsActor", "stat")
135-
stat.output_filename = f"{output}/wepl{int(phantom_length_mm)}_stats.txt"
136-
137133
sim.run()
138134

139135

@@ -153,7 +149,9 @@ def process_phantom_length(
153149
wepls_phantom_length = []
154150
elosses_phantom_length = []
155151

156-
data = uproot.concatenate(f"{output}/l{int(phantom_length)}_*.root", library="np")
152+
data = uproot.concatenate(
153+
f"{output}/output/l{int(phantom_length)}_*.root", library="np"
154+
)
157155
pv(
158156
verbose,
159157
"Loaded",

0 commit comments

Comments
 (0)