|
18 | 18 |
|
19 | 19 | #include "ALICE3GlobalReconstruction/TrackerACTS.h" |
20 | 20 |
|
| 21 | +#include <TRKBase/GeometryTGeo.h> |
| 22 | +#include <MathUtils/Utils.h> |
| 23 | +#include <Acts/Surfaces/Surface.hpp> |
| 24 | +#include "ACTSInterface/TrackingGeometryManager.h" |
21 | 25 | #include <Acts/EventData/Seed.hpp> |
22 | 26 | #include <Acts/EventData/SpacePointContainer.hpp> |
23 | 27 | #include <Acts/Seeding/BinnedGroup.hpp> |
@@ -273,7 +277,7 @@ bool TrackerACTS<nLayers>::estimateTrackParams(const SeedACTS& seed, o2::its::Tr |
273 | 277 | const float x = p[Acts::eFreePos0]; |
274 | 278 | const float y = p[Acts::eFreePos1]; |
275 | 279 | const float z = p[Acts::eFreePos2]; |
276 | | - const float px = p[Acts::eFreeDir0] * pMag; |
| 280 | + const float px = p[Acts::eFreeDir0] * 1; |
277 | 281 | const float py = p[Acts::eFreeDir1] * pMag; |
278 | 282 | const float pz = p[Acts::eFreeDir2] * pMag; |
279 | 283 | const int charge = (p[Acts::eFreeQOverP] >= 0) ? 1 : -1; |
@@ -395,6 +399,19 @@ void TrackerACTS<nLayers>::clustersToTracks() |
395 | 399 | // StateNames[mCurState]); |
396 | 400 | // } |
397 | 401 |
|
| 402 | + auto& actsGeometryManager = o2::acts::TrackingGeometryManager::instance(); |
| 403 | + |
| 404 | + const auto& trackingGeometry = actsGeometryManager.get(); |
| 405 | + const auto& geometryContext = actsGeometryManager.getNominalContext(); |
| 406 | + |
| 407 | + auto* trkGeometry = o2::trk::GeometryTGeo::Instance(); |
| 408 | + |
| 409 | + trkGeometry->fillMatrixCache(o2::math_utils::bit2Mask(o2::math_utils::TransformType::L2G)); |
| 410 | + |
| 411 | + const auto& surfaceIndex = actsGeometryManager.getIndex(*trkGeometry, 1.e-3, [trkGeometry](int sensorID) { |
| 412 | + return std::string(trkGeometry->getMatrixPath(sensorID).Data()); |
| 413 | + }); |
| 414 | + |
398 | 415 | // MC labeling |
399 | 416 | if (mTimeFrame->hasMCinformation()) { |
400 | 417 | computeTracksMClabels(); |
|
0 commit comments