Skip to content

Commit b681e2b

Browse files
authored
Move some headers/methods to src to avoid conflicts with GPU defines (#3150)
Co-authored-by: shahoian <ruben.shahoyan@cern.ch>
1 parent b1eada3 commit b681e2b

2 files changed

Lines changed: 8 additions & 6 deletions

File tree

Detectors/Base/include/DetectorsBase/Propagator.h

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,7 @@
1919
#include "CommonConstants/PhysicsConstants.h"
2020
#include "ReconstructionDataFormats/Track.h"
2121
#include "ReconstructionDataFormats/TrackLTIntegral.h"
22-
#include "MathUtils/Cartesian3D.h"
2322
#include "DetectorsBase/MatLayerCylSet.h"
24-
#include "DetectorsBase/GeometryManager.h"
2523

2624
namespace o2
2725
{
@@ -80,10 +78,7 @@ class Propagator
8078
Propagator();
8179
~Propagator() = default;
8280

83-
MatBudget getMatBudget(int corrType, const Point3D<float>& p0, const Point3D<float>& p1) const
84-
{
85-
return (corrType == USEMatCorrTGeo) ? GeometryManager::meanMaterialBudget(p0, p1) : mMatLUT->getMatBudget(p0.X(), p0.Y(), p0.Z(), p1.X(), p1.Y(), p1.Z());
86-
}
81+
MatBudget getMatBudget(int corrType, const Point3D<float>& p0, const Point3D<float>& p1) const;
8782

8883
const o2::field::MagFieldFast* mField = nullptr; ///< External fast field (barrel only for the moment)
8984
float mBz = 0; // nominal field

Detectors/Base/src/Propagator.cxx

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
// or submit itself to any jurisdiction.
1010

1111
#include "DetectorsBase/Propagator.h"
12+
#include "DetectorsBase/GeometryManager.h"
1213
#include <FairLogger.h>
1314
#include <FairRunAna.h> // eventually will get rid of it
1415
#include <TGeoGlobalMagField.h>
@@ -245,3 +246,9 @@ int Propagator::initFieldFromGRP(const o2::parameters::GRPObject* grp)
245246

246247
return 0;
247248
}
249+
250+
//____________________________________________________________
251+
MatBudget Propagator::getMatBudget(int corrType, const Point3D<float>& p0, const Point3D<float>& p1) const
252+
{
253+
return (corrType == USEMatCorrTGeo) ? GeometryManager::meanMaterialBudget(p0, p1) : mMatLUT->getMatBudget(p0.X(), p0.Y(), p0.Z(), p1.X(), p1.Y(), p1.Z());
254+
}

0 commit comments

Comments
 (0)