Skip to content

Commit 76e78ff

Browse files
committed
ENH: Cleaner output for pctweplfit
1 parent 8c6d420 commit 76e78ff

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
@@ -106,7 +106,7 @@ def add_detector(name, translation, attach_to_phantom=False):
106106
phase_space = sim.add_actor("PhaseSpaceActor", "PhaseSpace" + name)
107107
phase_space.attached_to = plane.name
108108
phase_space.output_filename = (
109-
f"{output}/l{int(phantom_length_mm)}_ps{name}.root"
109+
f"{output}/output/l{int(phantom_length_mm)}_ps{name}.root"
110110
)
111111
phase_space.attributes = [
112112
"EventID",
@@ -131,10 +131,6 @@ def add_detector(name, translation, attach_to_phantom=False):
131131
):
132132
add_detector(str(x), [0 * mm, 0 * mm, x * mm], True)
133133

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

140136

@@ -154,7 +150,9 @@ def process_phantom_length(
154150
wepls_phantom_length = []
155151
elosses_phantom_length = []
156152

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

0 commit comments

Comments
 (0)