Skip to content

Commit 8c3d096

Browse files
authored
Merge f3a1fef into sapling-pr-archive-ktf
2 parents e70a63e + f3a1fef commit 8c3d096

391 files changed

Lines changed: 9335 additions & 9982 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

Common/Field/src/MagFieldFast.cxx

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,10 @@
1616
#include "Field/MagFieldFast.h"
1717
#include <GPUCommonLogger.h>
1818

19-
#ifndef GPUCA_GPUCODE_DEVICE
2019
#include <cmath>
2120
#include <fstream>
2221
#include <sstream>
2322
using namespace std;
24-
#endif
2523

2624
using namespace o2::field;
2725

Common/MathUtils/include/MathUtils/detail/Bracket.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
#define ALICEO2_BRACKET_H
1818

1919
#include <GPUCommonRtypes.h>
20-
#ifndef GPUCA_ALIGPUCODE
20+
#ifndef GPUCA_GPUCODE_DEVICE
2121
#include <string>
2222
#include <sstream>
2323
#endif
@@ -76,7 +76,7 @@ class Bracket
7676
Relation isOutside(T t, T tErr) const;
7777
Relation isOutside(T t) const;
7878

79-
#ifndef GPUCA_ALIGPUCODE
79+
#ifndef GPUCA_GPUCODE_DEVICE
8080
std::string asString() const;
8181
#endif
8282

@@ -247,7 +247,7 @@ inline typename Bracket<T>::Relation Bracket<T>::isOutside(T t) const
247247
return t < mMin ? Below : (t > mMax ? Above : Inside);
248248
}
249249

250-
#ifndef GPUCA_ALIGPUCODE
250+
#ifndef GPUCA_GPUCODE_DEVICE
251251
template <typename T>
252252
std::string Bracket<T>::asString() const
253253
{

Common/Utils/src/DebugStreamer.cxx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,18 +10,16 @@
1010
// or submit itself to any jurisdiction.
1111

1212
#include "CommonUtils/DebugStreamer.h"
13-
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE)
1413
#include <thread>
1514
#include <fmt/format.h>
1615
#include "TROOT.h"
1716
#include "TKey.h"
1817
#include <random>
1918
#include "Framework/Logger.h"
20-
#endif
2119

2220
O2ParamImpl(o2::utils::ParameterDebugStreamer);
2321

24-
#if !defined(GPUCA_GPUCODE) && !defined(GPUCA_STANDALONE) && defined(DEBUG_STREAMER)
22+
#if defined(DEBUG_STREAMER)
2523

2624
o2::utils::DebugStreamer::DebugStreamer()
2725
{

DataFormats/Detectors/TPC/include/DataFormatsTPC/CalibdEdxCorrection.h

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,12 @@ class CalibdEdxCorrection
4242
static constexpr int FitSize = 288; ///< Number of fitted corrections
4343
static constexpr int ParamSize = 8; ///< Number of params per fit
4444

45-
#if !defined(GPUCA_ALIGPUCODE)
45+
#if !defined(GPUCA_GPUCODE)
4646
CalibdEdxCorrection()
4747
{
4848
clear();
4949
}
5050
CalibdEdxCorrection(std::string_view fileName) { loadFromFile(fileName); }
51-
#else
52-
CalibdEdxCorrection() = default;
5351
#endif
5452
~CalibdEdxCorrection() = default;
5553

DataFormats/Detectors/TPC/include/DataFormatsTPC/Constants.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ namespace constants
2828
constexpr int MAXSECTOR = 36;
2929

3030
// the number of global pad rows
31-
#if defined(GPUCA_STANDALONE) && !defined(GPUCA_O2_LIB) && !defined(GPUCA_TPC_GEOMETRY_O2)
31+
#if defined(GPUCA_STANDALONE) && defined(GPUCA_RUN2)
3232
constexpr int MAXGLOBALPADROW = 159; // Number of pad rows in Run 2, used for GPU TPC tests with Run 2 data
3333
#else
3434
constexpr int MAXGLOBALPADROW = 152; // Correct number of pad rows in Run 3

DataFormats/Detectors/TPC/src/CalibdEdxCorrection.cxx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,15 @@
1414
#include <algorithm>
1515
#include <string_view>
1616

17+
#ifndef GPUCA_STANDALONE
1718
// o2 includes
1819
#include "Framework/Logger.h"
1920
#include "DataFormatsTPC/Defs.h"
2021
#include "CommonUtils/TreeStreamRedirector.h"
2122

2223
// root includes
2324
#include "TFile.h"
25+
#endif
2426

2527
using namespace o2::tpc;
2628

@@ -37,6 +39,8 @@ void CalibdEdxCorrection::clear()
3739
mDims = -1;
3840
}
3941

42+
#ifndef GPUCA_STANDALONE
43+
4044
void CalibdEdxCorrection::writeToFile(std::string_view fileName, std::string_view objName) const
4145
{
4246
std::unique_ptr<TFile> file(TFile::Open(fileName.data(), "recreate"));
@@ -181,3 +185,5 @@ void CalibdEdxCorrection::setUnity()
181185
}
182186
mDims = 0;
183187
}
188+
189+
#endif // GPUCA_STANDALONE

DataFormats/Detectors/TRD/include/DataFormatsTRD/TrackTRD.h

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
#define O2_DATAFORMATS_TRACK_TRD_H
1717

1818
#include "GPUTRDTrack.h"
19+
#include "ReconstructionDataFormats/GlobalTrackID.h"
1920

2021
namespace o2
2122
{

DataFormats/Detectors/TRD/src/Tracklet64.cxx

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ void Tracklet64::print() const
2525
HelperMethods::getSector(getDetector()), HelperMethods::getStack(getDetector()), HelperMethods::getLayer(getDetector()), getROB(), getMCM(), getPadRow(), getPadCol(), getPosition(), getSlope(), getPID(), getQ0(), getQ1(), getQ2(), getFormat());
2626
}
2727

28-
#ifndef GPUCA_GPUCODE_DEVICE
2928
void Tracklet64::printStream(std::ostream& stream) const
3029
{
3130
stream << "Tracklet64 : 0x" << std::hex << getTrackletWord();
@@ -50,7 +49,5 @@ bool operator<(const Tracklet64& lhs, const Tracklet64& rhs)
5049
(lhs.getDetector() == rhs.getDetector() && lhs.getROB() == rhs.getROB() && lhs.getMCM() == rhs.getMCM() && lhs.getPadRow() == rhs.getPadRow() && lhs.getPadCol() < rhs.getPadCol());
5150
}
5251

53-
#endif // GPUCA_GPUCODE_DEVICE
54-
5552
} // namespace trd
5653
} // namespace o2

DataFormats/Reconstruction/include/ReconstructionDataFormats/PrimaryVertex.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class PrimaryVertex : public Vertex<TimeStampWithError<float, float>>
4242
float getZMAD() const { return mZMAD; }
4343
void setZMAD(float v) { mZMAD = v; }
4444

45-
#ifndef GPUCA_ALIGPUCODE
45+
#ifndef GPUCA_GPUCODE_DEVICE
4646
void print() const;
4747
std::string asString() const;
4848
#endif
@@ -56,7 +56,7 @@ class PrimaryVertex : public Vertex<TimeStampWithError<float, float>>
5656
ClassDefNV(PrimaryVertex, 2);
5757
};
5858

59-
#ifndef GPUCA_ALIGPUCODE
59+
#ifndef GPUCA_GPUCODE_DEVICE
6060
std::ostream& operator<<(std::ostream& os, const o2::dataformats::PrimaryVertex& v);
6161
#endif
6262

DataFormats/Reconstruction/include/ReconstructionDataFormats/PrimaryVertexExt.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,15 @@ struct PrimaryVertexExt : public PrimaryVertex {
3636
int getNSrcA(int i) const { return nSrcA[i]; }
3737
int getNSrcAU(int i) const { return nSrcAU[i]; }
3838

39-
#ifndef GPUCA_ALIGPUCODE
39+
#ifndef GPUCA_GPUCODE_DEVICE
4040
void print() const;
4141
std::string asString() const;
4242
#endif
4343

4444
ClassDefNV(PrimaryVertexExt, 6);
4545
};
4646

47-
#ifndef GPUCA_ALIGPUCODE
47+
#ifndef GPUCA_GPUCODE_DEVICE
4848
std::ostream& operator<<(std::ostream& os, const o2::dataformats::PrimaryVertexExt& v);
4949
#endif
5050

0 commit comments

Comments
 (0)