From 06c4bfb2f92d226ad3233ffd3be47190d73b4265 Mon Sep 17 00:00:00 2001 From: Felix Touchte Codjo Date: Tue, 3 Feb 2026 15:12:54 +0000 Subject: [PATCH 1/2] reduce the length of the AHDC cell --- source/detector/detector.cc | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/source/detector/detector.cc b/source/detector/detector.cc index 02d967d6..6b3e8454 100644 --- a/source/detector/detector.cc +++ b/source/detector/detector.cc @@ -461,9 +461,19 @@ int detector::create_solid(goptions gemcOpt, map *Map) for(int v=0; v 27 && name.compare(19,8, "ahdccell") == 0) { + G4Box* box = new G4Box("Box",80*mm,80*mm,158*mm); + G4GenericTrap* ahdc_cell_nocut = new G4GenericTrap(name + "_nocut", ///< name dz, ///< Half z length vertices); ///< The (x,y) coordinates of vertices + SolidV = new G4IntersectionSolid(name, box, ahdc_cell_nocut); + + } else { + SolidV = new G4GenericTrap(name, ///< name + dz, ///< Half z length + vertices); ///< The (x,y) coordinates of vertices + } + built = 1; } From 16c1e88081f8fb2e87410e686f961036d127f071 Mon Sep 17 00:00:00 2001 From: Felix Touchte Codjo Date: Tue, 3 Feb 2026 15:13:26 +0000 Subject: [PATCH 2/2] update the ends points of the AHDC cells --- source/hitprocess/clas12/alert/ahdc_hitprocess.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/source/hitprocess/clas12/alert/ahdc_hitprocess.cc b/source/hitprocess/clas12/alert/ahdc_hitprocess.cc index 217143bf..7f4c5a1d 100644 --- a/source/hitprocess/clas12/alert/ahdc_hitprocess.cc +++ b/source/hitprocess/clas12/alert/ahdc_hitprocess.cc @@ -244,10 +244,10 @@ void ahdcSignal::ComputeDocaAndTime(MHit * aHit){ // ALERT geometry double X_sigwire_top = 0; // [mm] double Y_sigwire_top = 0; - double Z_sigwire_top = -150; + double Z_sigwire_top = -188; double X_sigwire_bot = 0; // [mm] double Y_sigwire_bot = 0; - double Z_sigwire_bot = 150; + double Z_sigwire_bot = 162.5; // Compute Y_sigwire_top, Z_sigwire_top, Y_sigwire_bot, Z_sigwire_bot double xV0 = 0.0;