From 2b13206eb9209106dcbbf140f7d04d378130a911 Mon Sep 17 00:00:00 2001 From: KValantis Date: Wed, 13 Sep 2023 09:59:03 +0300 Subject: [PATCH] Dividing (wcsimrootgeom->GetWCCylLength()) / 100.; by 2 in line 985 to get the halfheight and adding comments to avoid confusion --- UserTools/LoadWCSim/LoadWCSim.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/UserTools/LoadWCSim/LoadWCSim.cpp b/UserTools/LoadWCSim/LoadWCSim.cpp index 854212030..2d737954c 100644 --- a/UserTools/LoadWCSim/LoadWCSim.cpp +++ b/UserTools/LoadWCSim/LoadWCSim.cpp @@ -978,8 +978,8 @@ Geometry* LoadWCSim::ConstructToolChainGeometry(){ double tank_ycentre = (wcsimrootgeom->GetWCOffset(1)) / 100.; double tank_zcentre = (wcsimrootgeom->GetWCOffset(2)) / 100.; Position tank_centre(tank_xcentre, tank_ycentre, tank_zcentre); - double tank_radius = (wcsimrootgeom->GetWCCylRadius()) / 100.; - double tank_halfheight = (wcsimrootgeom->GetWCCylLength()) / 100.; + double tank_radius = (wcsimrootgeom->GetWCCylRadius()) / 100.; //GetWCCylRadius() returns the black sheet radius not the tank radius + double tank_halfheight = (wcsimrootgeom->GetWCCylLength()) / 200.; //GetWCCylLength() returns the main annulus height not the tank height //Currently hard-coded; estimated with a tape measure on the ANNIE frame :) double pmt_enclosed_radius = 1.0; double pmt_enclosed_halfheight = 1.45;