@@ -122,7 +122,20 @@ namespace sbnd::crt {
122122
123123 // Find world coordinates
124124 geo::AuxDetSensitiveGeo::LocalPoint_t const sipm0XYZ{sipmX, sipm0Y, 0 };
125+ geo::AuxDetGeo::LocalPoint_t const sipm0XYZNotSens{sipmX, sipm0Y, 0 };
125126 auto const sipm0XYZWorld = auxDetSensitive.toWorldCoords (sipm0XYZ);
127+ auto const sipm0XYZWorldNotSens = auxDet.toWorldCoords (sipm0XYZNotSens);
128+
129+ if (ad_i == 40 && (ads_i == 7 || ads_i == 8 ))
130+ {
131+ std::cout << " Module: " << ad_i << " Strip: " << ads_i << ' \n '
132+ << " \t SiPM 0 - Local: " << sipm0XYZ.X () << " , " << sipm0XYZ.Y () << " , " << sipm0XYZ.Z () << ' \n '
133+ << " \t - Global (Sens): " << sipm0XYZWorld.X () << " , " << sipm0XYZWorld.Y () << " , " << sipm0XYZWorld.Z () << ' \n '
134+ << " \t - Global: " << sipm0XYZWorldNotSens.X () << " , " << sipm0XYZWorldNotSens.Y () << " , " << sipm0XYZWorldNotSens.Z () << ' \n '
135+ << std::endl;
136+
137+ FEBWorldPos (fModules .at (moduleName));
138+ }
126139
127140 geo::AuxDetSensitiveGeo::LocalPoint_t const sipm1XYZ{sipmX, sipm1Y, 0 };
128141 auto const sipm1XYZWorld = auxDetSensitive.toWorldCoords (sipm1XYZ);
@@ -361,8 +374,8 @@ namespace sbnd::crt {
361374 const double halfWidth = auxDet.HalfWidth1 ();
362375 const double halfLength = auxDet.Length () / 2 .;
363376
364- geo::AuxDetGeo::LocalPoint_t limits { - halfWidth - 5 , -15 , -halfLength - 5 };
365- geo::AuxDetGeo::LocalPoint_t limits2{ - halfWidth, 15 , -halfLength + 5 };
377+ geo::AuxDetGeo::LocalPoint_t limits { halfWidth + 5 , -15 , -halfLength - 5 };
378+ geo::AuxDetGeo::LocalPoint_t limits2{ halfWidth, 15 , -halfLength + 5 };
366379
367380 if (!module .top )
368381 {
@@ -373,6 +386,11 @@ namespace sbnd::crt {
373386 auto const limitsWorld = auxDet.toWorldCoords (limits);
374387 auto const limitsWorld2 = auxDet.toWorldCoords (limits2);
375388
389+ std::cout << " Module: " << module .adID << ' \n '
390+ << " \t Local: " << limits.X () << " , " << limits.Y () << " , " << limits.Z () << ' \n '
391+ << " \t Global: " << limitsWorld.X () << " , " << limitsWorld.Y () << " , " << limitsWorld.Z () << ' \n '
392+ << std::endl;
393+
376394 const double minX = std::min (limitsWorld.X (), limitsWorld2.X ());
377395 const double maxX = std::max (limitsWorld.X (), limitsWorld2.X ());
378396 const double minY = std::min (limitsWorld.Y (), limitsWorld2.Y ());
0 commit comments