Skip to content

Commit af11dc9

Browse files
committed
Fix namespace
1 parent dac4375 commit af11dc9

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

Detectors/Upgrades/ALICE3/TRK/simulation/src/TRKLayer.cxx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,10 +198,10 @@ TGeoVolume* TRKLayer::createHalfStave(std::string type)
198198
halfStaveVol->AddNode(moduleVol, 1, nullptr);
199199
} else if (type == "flat") {
200200
double moduleLength = constants::moduleMLOT::length;
201-
double staveWidth = constants::ML::width;
202-
double staveLength = constants::ML::length;
201+
double halfStaveWidth = constants::OT::halfstave::width;
202+
double halfStaveLength = constants::moduleMLOT::length * mNumberOfModules;
203203

204-
halfStave = new TGeoBBox(staveWidth / 2, mChipThickness / 2, staveLength / 2);
204+
halfStave = new TGeoBBox(halfStaveWidth / 2, mChipThickness / 2, halfStaveLength / 2);
205205
halfStaveVol = new TGeoVolume(halfStaveName.c_str(), halfStave, medAir);
206206

207207
for (int iModule = 0; iModule < mNumberOfModules; iModule++) {

0 commit comments

Comments
 (0)