From eb260f9ecc303ec47506be6b3cafba7789df1e56 Mon Sep 17 00:00:00 2001 From: Daniel Brandenburg Date: Tue, 7 Feb 2023 18:10:25 -0500 Subject: [PATCH] StFttFastSim: Update volume_id mapping for new sTGC geometry, skip duplicate hits (#491) Minimum updates needed to make the StFttFastSim work with the recently updated sTGC geometry --- StRoot/StFttSimMaker/StFttFastSimMaker.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/StRoot/StFttSimMaker/StFttFastSimMaker.cxx b/StRoot/StFttSimMaker/StFttFastSimMaker.cxx index 8bb8cfbc0a5..da9b723f741 100644 --- a/StRoot/StFttSimMaker/StFttFastSimMaker.cxx +++ b/StRoot/StFttSimMaker/StFttFastSimMaker.cxx @@ -274,10 +274,12 @@ void StFttFastSimMaker::FillThinGapChambers(StEvent *event) { float yhit = hit->x[1]; float zhit = hit->x[2]; int volume_id = hit->volume_id; - int disk = (volume_id - 1) / 4 + 9 ; // add 7 to differentiat from FST - dedicated collection will not need - + // volume_id = (1 front | 2 back) + 10 * (quadrant 0-3) + 100 * (station 0-4) + int disk = ((volume_id - 1) / 100) + 9 ; LOG_DEBUG << "sTGC hit: volume_id = " << volume_id << " disk = " << disk << endm; - if (disk < 9) + + // Now that geometry has a front and back, we skip points on the back module for fast sim + if (disk < 9 || volume_id % 2 == 0) continue; float theta = DiskRotation(disk);