Skip to content

Commit ddc545f

Browse files
committed
ENH: Cleaner output for pctweplfit
1 parent 6b4a625 commit ddc545f

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

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

141137

@@ -155,7 +151,9 @@ def process_phantom_length(
155151
wepls_phantom_length = []
156152
elosses_phantom_length = []
157153

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

0 commit comments

Comments
 (0)