@@ -132,19 +132,22 @@ TGeoVolume* TRKSegmentedLayer::createChip()
132132
133133 TGeoVolume* sensVol = createSensor ();
134134 TGeoCombiTrans* transSens = new TGeoCombiTrans ();
135- transSens->SetTranslation (-sDeadzoneWidth / 2 , -(mChipThickness - sSensorThickness ) / 2 , 0 );
135+ // transSens->SetTranslation(-sDeadzoneWidth / 2, -(mChipThickness - sSensorThickness) / 2, 0);
136+ transSens->SetTranslation (-sDeadzoneWidth / 2 , (mChipThickness - sSensorThickness ) / 2 , 0 );
136137 LOGP (debug, " Inserting {} in {} " , sensVol->GetName (), chipVol->GetName ());
137138 chipVol->AddNode (sensVol, 1 , transSens);
138139
139140 TGeoVolume* deadVol = createDeadzone ();
140141 TGeoCombiTrans* transDead = new TGeoCombiTrans ();
141- transDead->SetTranslation ((sChipWidth - sDeadzoneWidth ) / 2 , -(mChipThickness - sSensorThickness ) / 2 , 0 );
142+ // transDead->SetTranslation((sChipWidth - sDeadzoneWidth) / 2, -(mChipThickness - sSensorThickness) / 2, 0);
143+ transDead->SetTranslation ((sChipWidth - sDeadzoneWidth ) / 2 , (mChipThickness - sSensorThickness ) / 2 , 0 );
142144 LOGP (debug, " Inserting {} in {} " , deadVol->GetName (), chipVol->GetName ());
143145 chipVol->AddNode (deadVol, 1 , transDead);
144146
145147 TGeoVolume* metalVol = createMetalStack ();
146148 TGeoCombiTrans* transMetal = new TGeoCombiTrans ();
147- transMetal->SetTranslation (0 , sSensorThickness / 2 , 0 );
149+ // transMetal->SetTranslation(0, sSensorThickness / 2, 0);
150+ transMetal->SetTranslation (0 , -sSensorThickness / 2 , 0 );
148151 LOGP (debug, " Inserting {} in {} " , metalVol->GetName (), chipVol->GetName ());
149152 chipVol->AddNode (metalVol, 1 , transMetal);
150153
@@ -234,7 +237,8 @@ void TRKMLLayer::createLayer(TGeoVolume* motherVolume)
234237 TGeoVolume* staveVol = createStave ();
235238 TGeoCombiTrans* trans = new TGeoCombiTrans ();
236239 double theta = 360 . * iStave / nStaves;
237- TGeoRotation* rot = new TGeoRotation (" rot" , theta - 90 + 4 , 0 , 0 );
240+ // TGeoRotation* rot = new TGeoRotation("rot", theta - 90 + 4, 0, 0);
241+ TGeoRotation* rot = new TGeoRotation (" rot" , theta + 90 + 4 , 0 , 0 );
238242 trans->SetRotation (rot);
239243 trans->SetTranslation (mInnerRadius * std::cos (2 . * TMath::Pi () * iStave / nStaves), mInnerRadius * std::sin (2 * TMath::Pi () * iStave / nStaves), 0 );
240244 LOGP (debug, " Inserting {} in {} " , staveVol->GetName (), layerVol->GetName ());
@@ -316,7 +320,8 @@ void TRKOTLayer::createLayer(TGeoVolume* motherVolume)
316320 TGeoVolume* staveVol = createStave ();
317321 TGeoCombiTrans* trans = new TGeoCombiTrans ();
318322 double theta = 360 . * iStave / nStaves;
319- TGeoRotation* rot = new TGeoRotation (" rot" , theta - 90 , 0 , 0 );
323+ // TGeoRotation* rot = new TGeoRotation("rot", theta - 90, 0, 0);
324+ TGeoRotation* rot = new TGeoRotation (" rot" , theta + 90 , 0 , 0 );
320325 trans->SetRotation (rot);
321326 trans->SetTranslation (mInnerRadius * std::cos (2 . * TMath::Pi () * iStave / nStaves), mInnerRadius * std::sin (2 * TMath::Pi () * iStave / nStaves), 0 );
322327 LOGP (debug, " Inserting {} in {} " , staveVol->GetName (), layerVol->GetName ());
0 commit comments