Skip to content

Commit

Permalink
StFttFastSim: Update volume_id mapping for new sTGC geometry, skip du…
Browse files Browse the repository at this point in the history
…plicate hits (#491)

Minimum updates needed to make the StFttFastSim work with the recently
updated sTGC geometry
  • Loading branch information
jdbrice authored Feb 7, 2023
1 parent 03d2850 commit eb260f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions StRoot/StFttSimMaker/StFttFastSimMaker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit eb260f9

Please sign in to comment.