Skip to content

Commit 79f51af

Browse files
authored
ALICE3-TRK: fix y-axis orientation in the sensor local coordinate system, keeping the geometry unchanged (#15134)
1 parent 49b0cb7 commit 79f51af

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

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

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -137,17 +137,17 @@ TGeoVolume* TRKLayer::createChip(std::string type)
137137
metalVol = createMetalStack("flat");
138138

139139
TGeoCombiTrans* transSens = new TGeoCombiTrans();
140-
transSens->SetTranslation(-mDeadzoneWidth / 2, -(mChipThickness - mSensorThickness) / 2, 0); // TO BE CHECKED !!!
140+
transSens->SetTranslation(-mDeadzoneWidth / 2, (mChipThickness - mSensorThickness) / 2, 0); // TO BE CHECKED !!!
141141
LOGP(debug, "Inserting {} in {} ", sensVol->GetName(), chipVol->GetName());
142142
chipVol->AddNode(sensVol, 1, transSens);
143143

144144
TGeoCombiTrans* transDead = new TGeoCombiTrans();
145-
transDead->SetTranslation((mChipWidth - mDeadzoneWidth) / 2, -(mChipThickness - mSensorThickness) / 2, 0); // TO BE CHECKED !!!
145+
transDead->SetTranslation((mChipWidth - mDeadzoneWidth) / 2, (mChipThickness - mSensorThickness) / 2, 0); // TO BE CHECKED !!!
146146
LOGP(debug, "Inserting {} in {} ", deadVol->GetName(), chipVol->GetName());
147147
chipVol->AddNode(deadVol, 1, transDead);
148148

149149
TGeoCombiTrans* transMetal = new TGeoCombiTrans();
150-
transMetal->SetTranslation(0, mSensorThickness / 2, 0); // TO BE CHECKED !!!
150+
transMetal->SetTranslation(0, -(mSensorThickness) / 2, 0); // TO BE CHECKED !!!
151151
LOGP(debug, "Inserting {} in {} ", metalVol->GetName(), chipVol->GetName());
152152
chipVol->AddNode(metalVol, 1, transMetal);
153153
} else {
@@ -374,7 +374,7 @@ void TRKLayer::createLayer(TGeoVolume* motherVolume)
374374
// Put the staves in the correct position and orientation
375375
TGeoCombiTrans* trans = new TGeoCombiTrans();
376376
double theta = 360. * iStave / nStaves;
377-
TGeoRotation* rot = new TGeoRotation("rot", theta - 90 + 4, 0, 0);
377+
TGeoRotation* rot = new TGeoRotation("rot", theta + 90 + 4, 0, 0);
378378
trans->SetRotation(rot);
379379
trans->SetTranslation(mInnerRadius * std::cos(2. * TMath::Pi() * iStave / nStaves), mInnerRadius * std::sin(2 * TMath::Pi() * iStave / nStaves), 0);
380380

@@ -408,7 +408,7 @@ void TRKLayer::createLayer(TGeoVolume* motherVolume)
408408
// Put the staves in the correct position and orientation
409409
TGeoCombiTrans* trans = new TGeoCombiTrans();
410410
double theta = 360. * iStave / nStaves;
411-
TGeoRotation* rot = new TGeoRotation("rot", theta - 90, 0, 0);
411+
TGeoRotation* rot = new TGeoRotation("rot", theta + 90, 0, 0);
412412
trans->SetRotation(rot);
413413
trans->SetTranslation(mInnerRadius * std::cos(2. * TMath::Pi() * iStave / nStaves), mInnerRadius * std::sin(2 * TMath::Pi() * iStave / nStaves), 0);
414414

0 commit comments

Comments
 (0)