Skip to content

Commit 27d833f

Browse files
[ALICE3] FT3 Staves Minor ambiguity bugfix (#15507)
* remove duplicate volume count -- want the same number for the inactive bit of the pixel * change sensor naming scheme to be unambiguous
1 parent e6a7a9e commit 27d833f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Detectors/Upgrades/ALICE3/FT3/simulation/src/FT3Module.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -458,7 +458,7 @@ void FT3Module::addSingleSensorVolume(
458458
TGeoVolume* sensor;
459459
TGeoManager* geoManager = gGeoManager;
460460
// ACTIVE AREA
461-
std::string sensor_name = "FT3Sensor_" + std::to_string(direction) + "_" + std::to_string(layerNumber) + "_" + std::to_string(stave_idx) + "_" + std::to_string(volume_count);
461+
std::string sensor_name = "FT3Sensor_Active_" + std::to_string(direction) + "_" + std::to_string(layerNumber) + "_" + std::to_string(stave_idx) + "_" + std::to_string(volume_count);
462462
sensor = geoManager->MakeBox(sensor_name.c_str(), siliconMed, Constants::active_width / 2,
463463
Constants::single_sensor_height / 2, Constants::siliconThickness / 2);
464464
sensor->SetLineColor(Constants::SiColor);
@@ -471,7 +471,7 @@ void FT3Module::addSingleSensorVolume(
471471
y_mid,
472472
z_mid) // TGeoTranslation
473473
); // addNode
474-
(volume_count)++;
474+
475475
// INACTIVE STRIP ON LEFT OR RIGHT
476476
double inactive_x_mid = isLeft ? (active_x_mid - Constants::active_width / 2 - Constants::inactive_width / 2)
477477
: (active_x_mid + Constants::active_width / 2 + Constants::inactive_width / 2);

0 commit comments

Comments
 (0)