Project
Loading...
Searching...
No Matches
GPUWorkflowITS.cxx
Go to the documentation of this file.
1// Copyright 2019-2020 CERN and copyright holders of ALICE O2.
2// See https://alice-o2.web.cern.ch/copyright for details of the copyright holders.
3// All rights not expressly granted are reserved.
4//
5// This software is distributed under the terms of the GNU General Public
6// License v3 (GPL Version 3), copied verbatim in the file "COPYING".
7//
8// In applying this license CERN does not waive the privileges and immunities
9// granted to it by virtue of its status as an Intergovernmental Organization
10// or submit itself to any jurisdiction.
11
14
16#include "Framework/WorkflowSpec.h" // o2::framework::mergeInputs
20
22
23namespace o2::gpu
24{
25
26int32_t GPURecoWorkflowSpec::runITSTracking(o2::framework::ProcessingContext& pc)
27{
28 mITSTimeFrame->setDevicePropagator(mGPUReco->GetDeviceO2Propagator());
29 LOGP(debug, "GPUChainITS is giving me device propagator: {}", (void*)mGPUReco->GetDeviceO2Propagator());
30 mITSTrackingInterface->run<true>(pc);
31 return 0;
32}
33
34void GPURecoWorkflowSpec::initFunctionITS(o2::framework::InitContext& ic)
35{
36 o2::its::VertexerTraits* vtxTraits = nullptr;
37 o2::its::TrackerTraits* trkTraits = nullptr;
38 mITSTrackingInterface = std::make_unique<o2::its::ITSTrackingInterface>(mSpecConfig.processMC,
39 mSpecConfig.itsTriggerType,
40 mSpecConfig.itsOverrBeamEst);
41 mGPUReco->GetITSTraits(trkTraits, vtxTraits, mITSTimeFrame);
42 mITSTrackingInterface->setTraitsFromProvider(vtxTraits, trkTraits, mITSTimeFrame);
43 mITSTrackingInterface->initialise();
44}
45
46void GPURecoWorkflowSpec::finaliseCCDBITS(o2::framework::ConcreteDataMatcher& matcher, void* obj)
47{
48 mITSTrackingInterface->finaliseCCDB(matcher, obj);
49}
50
51bool GPURecoWorkflowSpec::fetchCalibsCCDBITS(o2::framework::ProcessingContext& pc)
52{
53 mITSTrackingInterface->updateTimeDependentParams(pc);
54 return false;
55}
56} // namespace o2::gpu
std::ostringstream debug
virtual void setDevicePropagator(const o2::base::PropagatorImpl< float > *)
Definition TimeFrame.h:236