Skip to content

Commit 0b48395

Browse files
altsybeenjacazio
andauthored
[ALICE3] Change to upper-case 'S' in "FT3sensor_*" strings (#15078)
* Change to upper-case 'S' in "FT3sensor_*" * Change to upper-case 'S' in "FT3sensor_*" in FT3Module.cxx * Update comments in exportLayout method Clarified comments in exportLayout function. --------- Co-authored-by: Nicolò Jacazio <njacazio@users.noreply.github.com>
1 parent d384645 commit 0b48395

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

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

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,8 @@ void Detector::buildFT3FromFile(std::string configFileName)
129129
//_________________________________________________________________________________________________
130130
void Detector::exportLayout()
131131
{
132-
// Export FT3 Layout description to file. One line per disk
132+
// Export FT3 Layout description to file.
133+
// One line per disk:
133134
// z_layer r_in r_out Layerx2X0
134135

135136
std::string configFileName = "FT3_layout.cfg";
@@ -795,8 +796,8 @@ void Detector::defineSensitiveVolumes()
795796
AddSensitiveVolume(v);
796797
} else { // OT disks
797798
for (int sensor_count = 0; sensor_count < MAX_SENSORS; ++sensor_count) {
798-
std::string sensor_name_front = "FT3sensor_front_" + std::to_string(iLayer) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
799-
std::string sensor_name_back = "FT3sensor_back_" + std::to_string(iLayer) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
799+
std::string sensor_name_front = "FT3Sensor_front_" + std::to_string(iLayer) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
800+
std::string sensor_name_back = "FT3Sensor_back_" + std::to_string(iLayer) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
800801
v = geoManager->GetVolume(sensor_name_front.c_str());
801802
if (v) {
802803
AddSensitiveVolume(v);

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -481,7 +481,7 @@ void FT3Module::create_layout(double mZ, int layerNumber, int direction, double
481481

482482
if (sensor_width == 2.5) {
483483
// silicon
484-
std::string sensor_name = "FT3sensor_front_" + std::to_string(layerNumber) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
484+
std::string sensor_name = "FT3Sensor_front_" + std::to_string(layerNumber) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
485485
sensor = geoManager->MakeBox(sensor_name.c_str(), siliconMed, active_width / 2, active_height / 2, silicon_thickness / 2);
486486
sensor->SetLineColor(SiColor);
487487
sensor->SetFillColorAlpha(SiColor, 0.4);
@@ -495,7 +495,7 @@ void FT3Module::create_layout(double mZ, int layerNumber, int direction, double
495495

496496
} else {
497497

498-
std::string sensor_name = "FT3sensor_front_" + std::to_string(layerNumber) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
498+
std::string sensor_name = "FT3Sensor_front_" + std::to_string(layerNumber) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
499499
sensor = geoManager->MakeBox(sensor_name.c_str(), siliconMed, active_width / 2, sensor_height / 2, silicon_thickness / 2);
500500
sensor->SetLineColor(SiColor);
501501
sensor->SetFillColorAlpha(SiColor, 0.4);
@@ -652,7 +652,7 @@ void FT3Module::create_layout(double mZ, int layerNumber, int direction, double
652652

653653
if (sensor_width == 2.5) {
654654

655-
std::string sensor_name = "FT3sensor_back_" + std::to_string(layerNumber) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
655+
std::string sensor_name = "FT3Sensor_back_" + std::to_string(layerNumber) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
656656
sensor = geoManager->MakeBox(sensor_name.c_str(), siliconMed, active_width / 2, active_height / 2, silicon_thickness / 2);
657657
sensor->SetLineColor(SiColor);
658658
sensor->SetFillColorAlpha(SiColor, 0.4);
@@ -666,7 +666,7 @@ void FT3Module::create_layout(double mZ, int layerNumber, int direction, double
666666

667667
} else {
668668
// active (4.6 cm centered)
669-
std::string sensor_name = "FT3sensor_back_" + std::to_string(layerNumber) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
669+
std::string sensor_name = "FT3Sensor_back_" + std::to_string(layerNumber) + "_" + std::to_string(direction) + "_" + std::to_string(sensor_count);
670670
sensor = geoManager->MakeBox(sensor_name.c_str(), siliconMed, active_width / 2, sensor_height / 2, silicon_thickness / 2);
671671
sensor->SetLineColor(SiColor);
672672
sensor->SetFillColorAlpha(SiColor, 0.4);

0 commit comments

Comments
 (0)