Skip to content

Commit

Permalink
updates to print statements
Browse files Browse the repository at this point in the history
  • Loading branch information
lab57 committed Nov 16, 2023
1 parent 9041d95 commit cc2407b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
1 change: 1 addition & 0 deletions export-from-gdml/pyg4ometry-fork
Submodule pyg4ometry-fork added at cee93f
9 changes: 6 additions & 3 deletions twobounce-rust/src/main.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,18 +128,21 @@ fn main() {
);

//TWOBOUCNE ROUND 1
println!("Starting twobounce on Pencil source");
println!("Starting twobounce on Pencil source with {} rays", nrays);
rtree.twobounce(&ring_det, src.get_emission_rays(nrays, 6));
println!("Done with Pencil source");

println!("Starting twobounce on Cone source");
println!(
"Starting twobounce on Cone source with {} rays",
(nrays as f32 / 4.0)
);
let src2 = ConeSource::new(end, Vector::new(0.0, -1.0, 0.0), 0.203);
println!("Done with Cone source");

rtree.twobounce(
&ring_det,
src2.get_emission_rays((nrays as f32 / 4.0) as usize, 6),
);
println!("Done with Cone source");

match filename.strip_suffix(".obj") {
Some(f) => {
Expand Down

0 comments on commit cc2407b

Please sign in to comment.