Skip to content
Snippets Groups Projects
Commit 75a1bf70 authored by Walter Lampl's avatar Walter Lampl
Browse files

Merge branch 'master-StripHitCoordinateFix' into 'master'

Fix coordinate definition for ITkStrip sensitive detector

See merge request !36490
parents 9ba2c669 2e5db138
6 merge requests!58791DataQualityConfigurations: Modify L1Calo config for web display,!46784MuonCondInterface: Enable thread-safety checking.,!46776Updated LArMonitoring config file for WD to match new files produced using MT,!45405updated ART test cron job,!42417Draft: DIRE and VINCIA Base Fragments for Pythia 8.3,!36490Fix coordinate definition for ITkStrip sensitive detector
......@@ -49,14 +49,13 @@ G4bool SctSensorGmxSD::ProcessHits(G4Step *aStep, G4TouchableHistory * /* not us
G4ThreeVector localPosition2 = transformation.TransformPoint(coord2);
HepGeom::Point3D<double> lP1, lP2;
// GeoModelXml sensors with depth along local z
lP1[SiHit::xEta] = localPosition1[0]*CLHEP::mm;
lP1[SiHit::xEta] = localPosition1[2]*CLHEP::mm;
lP1[SiHit::xPhi] = localPosition1[1]*CLHEP::mm;
lP1[SiHit::xDep] = localPosition1[2]*CLHEP::mm;
lP1[SiHit::xDep] = localPosition1[0]*CLHEP::mm;
lP2[SiHit::xEta] = localPosition2[0]*CLHEP::mm;
lP2[SiHit::xEta] = localPosition2[2]*CLHEP::mm;
lP2[SiHit::xPhi] = localPosition2[1]*CLHEP::mm;
lP2[SiHit::xDep] = localPosition2[2]*CLHEP::mm;
lP2[SiHit::xDep] = localPosition2[0]*CLHEP::mm;
//
// Get the indexes of which detector the hit is in
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment