From 284c4814774f35b085cc753f9ceecc6aaacff6d1 Mon Sep 17 00:00:00 2001 From: Paola Ferrario Date: Mon, 12 Feb 2024 14:56:41 +0100 Subject: [PATCH] Adapt new class to displacement in xy of whole geo --- source/geometries/Honeycomb.cc | 2 +- source/geometries/Next100InnerElements.cc | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/source/geometries/Honeycomb.cc b/source/geometries/Honeycomb.cc index 93e27f50c..162814787 100644 --- a/source/geometries/Honeycomb.cc +++ b/source/geometries/Honeycomb.cc @@ -179,7 +179,7 @@ namespace nexus { do { vertex = gen_->GenerateVertex("VOLUME"); G4ThreeVector glob_vtx(vertex); - glob_vtx = glob_vtx + G4ThreeVector(0, 0, -GetELzCoord()); + glob_vtx = glob_vtx - GetCoordOrigin(); VertexVolume = geom_navigator_->LocateGlobalPointAndSetup(glob_vtx, 0, false); } while (VertexVolume->GetName() != region); } diff --git a/source/geometries/Next100InnerElements.cc b/source/geometries/Next100InnerElements.cc index 6b5b71e0b..c96a86e83 100644 --- a/source/geometries/Next100InnerElements.cc +++ b/source/geometries/Next100InnerElements.cc @@ -79,7 +79,7 @@ namespace nexus { // Honeycomb support structure for EP honeycomb_->SetMotherLogicalVolume(mother_logic_); - honeycomb_->SetELzCoord(gate_zpos); + honeycomb_->SetCoordOrigin(coord_origin); honeycomb_->SetEndOfCopperPlateZ(energy_plane_->GetCopperPlateEndZ()); honeycomb_->Construct();