Skip to content

Commit 65bf974

Browse files
authored
Merge 45c6981 into sapling-pr-archive-ktf
2 parents 1ad15f0 + 45c6981 commit 65bf974

File tree

122 files changed

+972
-760
lines changed

Some content is hidden

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

122 files changed

+972
-760
lines changed

CCDB/src/CcdbApi.cxx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -40,13 +40,13 @@
4040
#include <algorithm>
4141
#include <filesystem>
4242
#include <boost/algorithm/string.hpp>
43-
#include <boost/asio/ip/host_name.hpp>
4443
#include <iostream>
4544
#include <mutex>
4645
#include <boost/interprocess/sync/named_semaphore.hpp>
4746
#include <regex>
4847
#include <cstdio>
4948
#include <string>
49+
#include <TAlienUserAgent.h>
5050
#include <unordered_set>
5151
#include "rapidjson/document.h"
5252
#include "rapidjson/writer.h"
@@ -117,13 +117,7 @@ CcdbApi::~CcdbApi()
117117

118118
void CcdbApi::setUniqueAgentID()
119119
{
120-
std::string host = boost::asio::ip::host_name();
121-
char const* jobID = getenv("ALIEN_PROC_ID");
122-
if (jobID) {
123-
mUniqueAgentID = fmt::format("{}-{}-{}-{}", host, getCurrentTimestamp() / 1000, o2::utils::Str::getRandomString(6), jobID);
124-
} else {
125-
mUniqueAgentID = fmt::format("{}-{}-{}", host, getCurrentTimestamp() / 1000, o2::utils::Str::getRandomString(6));
126-
}
120+
mUniqueAgentID = TAlienUserAgent::BasedOnEnvironment().ToString();
127121
}
128122

129123
bool CcdbApi::checkAlienToken()

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "Framework/InputRecord.h"
2828
#include "SimulationDataFormat/MCTruthContainer.h"
2929

30-
#include "GPUDataTypes.h"
30+
#include "GPUDataTypesIO.h"
3131

3232
#include <gsl/span>
3333
#include <memory>

DataFormats/simulation/src/InteractionSampler.cxx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,9 @@ bool NonUniformMuInteractionSampler::setBCIntensityScales(const TH1F& hist)
202202

203203
std::vector<float> NonUniformMuInteractionSampler::determineBCIntensityScalesFromHistogram(const TH1F& hist)
204204
{
205+
if (mInteractingBCs.size() == 0) {
206+
LOG(error) << " Initialize bunch crossing scheme before assigning scales";
207+
}
205208
std::vector<float> scales;
206209
// we go through the BCs and query the count from histogram
207210
for (auto bc : mInteractingBCs) {

Detectors/GlobalTrackingWorkflow/study/src/CheckResid.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -404,7 +404,7 @@ bool CheckResidSpec::processITSTrack(const o2::its::TrackITS& iTrack, const o2::
404404
innerDone = true;
405405
}
406406
} else {
407-
LOGP(warn, "No cluster on lr {}", i);
407+
LOGP(debug, "No cluster on lr {}", i);
408408
}
409409
}
410410
}

Detectors/ITSMFT/ITS/tracking/include/ITStracking/TrackingInterface.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "DataFormatsITSMFT/TopologyDictionary.h"
2525
#include "DataFormatsCalibration/MeanVertexObject.h"
2626

27-
#include "GPUDataTypes.h"
27+
#include "GPUDataTypesIO.h"
2828
#include "GPUO2ExternalUser.h"
2929
#include "GPUChainITS.h"
3030

Detectors/ITSMFT/ITS/workflow/include/ITSWorkflow/RecoWorkflow.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@
1616

1717
#include "Framework/WorkflowSpec.h"
1818
#include "ITStracking/Configuration.h"
19-
#include "GPUDataTypes.h"
19+
#include "GPUDataTypesConfig.h"
2020

2121
namespace o2
2222
{
@@ -28,7 +28,7 @@ namespace reco_workflow
2828

2929
framework::WorkflowSpec getWorkflow(bool useMC, bool useCMtracker, TrackingMode::Type trmode, const bool overrideBeamPosition = false,
3030
bool upstreamDigits = false, bool upstreamClusters = false, bool disableRootOutput = false, bool useGeom = false, int useTrig = 0,
31-
bool useGPUWF = false, o2::gpu::GPUDataTypes::DeviceType dType = o2::gpu::GPUDataTypes::DeviceType::CPU);
31+
bool useGPUWF = false, o2::gpu::gpudatatypes::DeviceType dType = o2::gpu::gpudatatypes::DeviceType::CPU);
3232
}
3333

3434
} // namespace its

Detectors/ITSMFT/ITS/workflow/include/ITSWorkflow/TrackerSpec.h

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,17 @@
2323

2424
#include "ITStracking/TrackingInterface.h"
2525

26-
#include "GPUDataTypes.h"
26+
#include "GPUDataTypesConfig.h"
2727
#include "DetectorsBase/GRPGeomHelper.h"
2828

2929
#include "TStopwatch.h"
3030

31+
namespace o2::gpu
32+
{
33+
class GPUReconstruction;
34+
class GPUChainITS;
35+
} // namespace o2::gpu
36+
3137
namespace o2::its
3238
{
3339

@@ -39,7 +45,7 @@ class TrackerDPL : public framework::Task
3945
int trgType,
4046
const TrackingMode::Type trMode = TrackingMode::Unset,
4147
const bool overrBeamEst = false,
42-
o2::gpu::GPUDataTypes::DeviceType dType = o2::gpu::GPUDataTypes::DeviceType::CPU);
48+
o2::gpu::gpudatatypes::DeviceType dType = o2::gpu::gpudatatypes::DeviceType::CPU);
4349
~TrackerDPL() override = default;
4450
void init(framework::InitContext& ic) final;
4551
void run(framework::ProcessingContext& pc) final;
@@ -57,7 +63,7 @@ class TrackerDPL : public framework::Task
5763
TStopwatch mTimer;
5864
};
5965

60-
framework::DataProcessorSpec getTrackerSpec(bool useMC, bool useGeom, int useTrig, TrackingMode::Type trMode, const bool overrBeamEst = false, o2::gpu::GPUDataTypes::DeviceType dType = o2::gpu::GPUDataTypes::DeviceType::CPU);
66+
framework::DataProcessorSpec getTrackerSpec(bool useMC, bool useGeom, int useTrig, TrackingMode::Type trMode, const bool overrBeamEst = false, o2::gpu::gpudatatypes::DeviceType dType = o2::gpu::gpudatatypes::DeviceType::CPU);
6167

6268
} // namespace o2::its
6369

Detectors/ITSMFT/ITS/workflow/src/RecoWorkflow.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ framework::WorkflowSpec getWorkflow(bool useMC,
3838
bool useGeom,
3939
int useTrig,
4040
bool useGPUWF,
41-
o2::gpu::GPUDataTypes::DeviceType dtype)
41+
o2::gpu::gpudatatypes::DeviceType dtype)
4242
{
4343
framework::WorkflowSpec specs;
4444
if (!(upstreamDigits || upstreamClusters)) {

Detectors/ITSMFT/ITS/workflow/src/TrackerSpec.cxx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ TrackerDPL::TrackerDPL(std::shared_ptr<o2::base::GRPGeomRequest> gr,
2828
int trgType,
2929
const TrackingMode::Type trMode,
3030
const bool overrBeamEst,
31-
o2::gpu::GPUDataTypes::DeviceType dType) : mGGCCDBRequest(gr),
31+
o2::gpu::gpudatatypes::DeviceType dType) : mGGCCDBRequest(gr),
3232
mRecChain{o2::gpu::GPUReconstruction::CreateInstance(dType, true)},
3333
mITSTrackingInterface{isMC, trgType, overrBeamEst}
3434
{
@@ -78,7 +78,7 @@ void TrackerDPL::end()
7878
LOGF(info, "ITS CA-Tracker total timing: Cpu: %.3e Real: %.3e s in %d slots", mTimer.CpuTime(), mTimer.RealTime(), mTimer.Counter() - 1);
7979
}
8080

81-
DataProcessorSpec getTrackerSpec(bool useMC, bool useGeom, int trgType, TrackingMode::Type trMode, const bool overrBeamEst, o2::gpu::GPUDataTypes::DeviceType dType)
81+
DataProcessorSpec getTrackerSpec(bool useMC, bool useGeom, int trgType, TrackingMode::Type trMode, const bool overrBeamEst, o2::gpu::gpudatatypes::DeviceType dType)
8282
{
8383
std::vector<InputSpec> inputs;
8484

Detectors/ITSMFT/ITS/workflow/src/its-reco-workflow.cxx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ WorkflowSpec defineDataProcessing(ConfigContext const& configcontext)
6969
auto trmode = configcontext.options().get<std::string>("tracking-mode");
7070
auto selTrig = configcontext.options().get<std::string>("select-with-triggers");
7171
auto useGpuWF = configcontext.options().get<bool>("use-gpu-workflow");
72-
auto gpuDevice = static_cast<o2::gpu::GPUDataTypes::DeviceType>(configcontext.options().get<int>("gpu-device"));
72+
auto gpuDevice = static_cast<o2::gpu::gpudatatypes::DeviceType>(configcontext.options().get<int>("gpu-device"));
7373
auto extDigits = configcontext.options().get<bool>("digits-from-upstream");
7474
auto extClusters = configcontext.options().get<bool>("clusters-from-upstream");
7575
auto disableRootOutput = configcontext.options().get<bool>("disable-root-output");

0 commit comments

Comments
 (0)