File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Detectors/Upgrades/ALICE3/TRK/simulation/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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++) {
You can’t perform that action at this time.
0 commit comments