Skip to content

Commit 0efc03f

Browse files
authored
Fix chip composition and orientation (#14786)
1 parent 80ad74a commit 0efc03f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -94,7 +94,7 @@ TGeoVolume* TRKLayer::createMetalStack(std::string type)
9494
if (type == "cylinder") {
9595
metalStack = new TGeoTube(mInnerRadius + mSensorThickness, mInnerRadius + mChipThickness, mChipLength / 2); // TO BE CHECKED !!!
9696
} else if (type == "flat") {
97-
metalStack = new TGeoBBox(mChipWidth / 2, mChipThickness - mSensorThickness / 2, mChipLength / 2); // TO BE CHECKED !!!
97+
metalStack = new TGeoBBox(mChipWidth / 2, (mChipThickness - mSensorThickness) / 2, mChipLength / 2); // TO BE CHECKED !!!
9898
} else {
9999
LOGP(fatal, "Metal stack of type '{}' is not implemented", type);
100100
}
@@ -198,6 +198,9 @@ TGeoVolume* TRKLayer::createModule(std::string type)
198198

199199
TGeoCombiTrans* transLeft = new TGeoCombiTrans();
200200
transLeft->SetTranslation(xLeft, 0, zLeft); // TO BE CHECKED !!!
201+
TGeoRotation* rot = new TGeoRotation();
202+
rot->RotateY(180);
203+
transLeft->SetRotation(rot);
201204
LOGP(info, "Inserting {} in {} ", chipVolLeft->GetName(), moduleVol->GetName());
202205
moduleVol->AddNode(chipVolLeft, iChip * 2, transLeft);
203206

@@ -206,9 +209,6 @@ TGeoVolume* TRKLayer::createModule(std::string type)
206209

207210
TGeoCombiTrans* transRight = new TGeoCombiTrans();
208211
transRight->SetTranslation(xRight, 0, zRight); // TO BE CHECKED !!!
209-
TGeoRotation* rot = new TGeoRotation();
210-
rot->RotateY(180);
211-
transRight->SetRotation(rot);
212212
LOGP(info, "Inserting {} in {} ", chipVolRight->GetName(), moduleVol->GetName());
213213
moduleVol->AddNode(chipVolRight, iChip * 2 + 1, transRight);
214214
}

0 commit comments

Comments
 (0)