Skip to content

Commit 4866620

Browse files
committed
TPC Workflow / Tracking: Remove dead codee
1 parent 5f771d6 commit 4866620

6 files changed

Lines changed: 0 additions & 196 deletions

File tree

Detectors/TPC/reconstruction/include/TPCReconstruction/GPUCATracking.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,6 @@ class GPUCATracking
5858
//Input: cluster structure, possibly including MC labels, pointers to std::vectors for tracks and track MC labels. outputTracksMCTruth may be nullptr to indicate missing cluster MC labels. Otherwise, cluster MC labels are assumed to be present.
5959
int runTracking(o2::gpu::GPUO2InterfaceIOPtrs* data, o2::gpu::GPUInterfaceOutputs* outputs = nullptr);
6060

61-
float getPseudoVDrift(); //Return artificial VDrift used to convert time to Z
6261
void GetClusterErrors2(int row, float z, float sinPhi, float DzDs, short clusterState, float& ErrY2, float& ErrZ2) const;
6362

6463
int registerMemoryForGPU(const void* ptr, size_t size);

Detectors/TPC/reconstruction/src/GPUCATracking.cxx

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -13,17 +13,10 @@
1313

1414
#include "TPCReconstruction/GPUCATracking.h"
1515

16-
#include "FairLogger.h"
1716
#include "ReconstructionDataFormats/Track.h"
1817
#include "SimulationDataFormat/MCCompLabel.h"
1918
#include "SimulationDataFormat/ConstMCTruthContainer.h"
20-
#include "TChain.h"
21-
#include "TClonesArray.h"
22-
#include "TPCBase/Mapper.h"
2319
#include "TPCBase/PadRegionInfo.h"
24-
#include "TPCBase/ParameterDetector.h"
25-
#include "TPCBase/ParameterElectronics.h"
26-
#include "TPCBase/ParameterGas.h"
2720
#include "TPCBase/Sector.h"
2821
#include "DataFormatsTPC/Digit.h"
2922
#include "DataFormatsTPC/ClusterNativeHelper.h"
@@ -84,11 +77,6 @@ int GPUCATracking::runTracking(GPUO2InterfaceIOPtrs* data, GPUInterfaceOutputs*
8477
LOG(ERROR) << "Output tracks or clusRefs vectors are not initialized";
8578
return 0;
8679
}
87-
auto& detParam = ParameterDetector::Instance();
88-
auto& gasParam = ParameterGas::Instance();
89-
auto& elParam = ParameterElectronics::Instance();
90-
float vzbin = (elParam.ZbinWidth * gasParam.DriftV);
91-
Mapper& mapper = Mapper::instance();
9280

9381
std::vector<o2::tpc::Digit> gpuDigits[Sector::MAXSECTOR];
9482
o2::dataformats::MCTruthContainer<o2::MCCompLabel> gpuDigitsMC[Sector::MAXSECTOR];
@@ -245,9 +233,6 @@ int GPUCATracking::runTracking(GPUO2InterfaceIOPtrs* data, GPUInterfaceOutputs*
245233
int globalRow = trackClusters[tracks[i].FirstClusterRef() + j].row;
246234
int clusterIdInRow = clusterIdGlobal - data->clusters->clusterOffset[sector][globalRow];
247235
int regionNumber = 0;
248-
while (globalRow > mapper.getGlobalRowOffsetRegion(regionNumber) + mapper.getNumberOfRowsRegion(regionNumber)) {
249-
regionNumber++;
250-
}
251236
clIndArr[nOutCl2] = clusterIdInRow;
252237
sectorIndexArr[nOutCl2] = sector;
253238
rowIndexArr[nOutCl2] = globalRow;
@@ -317,13 +302,6 @@ int GPUCATracking::runTracking(GPUO2InterfaceIOPtrs* data, GPUInterfaceOutputs*
317302
return (retVal);
318303
}
319304

320-
float GPUCATracking::getPseudoVDrift()
321-
{
322-
auto& gasParam = ParameterGas::Instance();
323-
auto& elParam = ParameterElectronics::Instance();
324-
return (elParam.ZbinWidth * gasParam.DriftV);
325-
}
326-
327305
void GPUCATracking::GetClusterErrors2(int row, float z, float sinPhi, float DzDs, short clusterState, float& ErrY2, float& ErrZ2) const
328306
{
329307
if (mTrackingCAO2Interface == nullptr) {

Detectors/TPC/workflow/src/CATrackerSpec.cxx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,6 @@
2626
#include "Framework/Logger.h"
2727
#include "Framework/CallbackService.h"
2828
#include "DataFormatsTPC/TPCSectorHeader.h"
29-
#include "DataFormatsTPC/ClusterGroupAttribute.h"
3029
#include "DataFormatsTPC/ClusterNative.h"
3130
#include "DataFormatsTPC/CompressedClusters.h"
3231
#include "DataFormatsTPC/Helpers.h"

GPU/GPUTracking/Interface/GPUO2InterfaceConfiguration.h

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -131,15 +131,6 @@ struct GPUO2InterfaceIOPtrs {
131131

132132
// Output for entropy-reduced clusters of TPC compression
133133
const o2::tpc::CompressedClustersFlat* compressedClusters = nullptr;
134-
135-
// Hint for GPUCATracking to place its output in this buffer if possible.
136-
// This enables to create the output directly in a shared memory segment of the framework.
137-
// This allows further processing with zero-copy.
138-
// So far this is only a hint, GPUCATracking will not always follow.
139-
// If outputBuffer = nullptr, GPUCATracking will allocate the output internally and own the memory.
140-
// TODO: Make this mandatory if outputBuffer != nullptr, and throw an error if outputBufferSize is too small.
141-
void* outputBuffer = nullptr;
142-
size_t outputBufferSize = 0;
143134
};
144135
} // namespace gpu
145136
} // namespace o2

macro/CMakeLists.txt

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,6 @@ install(FILES CheckDigits_mft.C
3232
readEMCHits.C
3333
readITSDigits.C
3434
rootlogon.C
35-
runCATrackingClusterNative.C
3635
runTPCRefit.C
3736
run_CRUDataSkimming_its.C
3837
run_calib_tof.C
@@ -231,13 +230,6 @@ o2_add_test_root_macro(readITSDigits.C
231230
O2::SimulationDataFormat
232231
LABELS its)
233232

234-
# FIXME: move to subsystem dir
235-
o2_add_test_root_macro(runCATrackingClusterNative.C
236-
PUBLIC_LINK_LIBRARIES O2::DataFormatsTPC
237-
O2::ReconstructionDataFormats
238-
O2::SimulationDataFormat
239-
O2::TPCReconstruction
240-
LABELS tpc)
241233
# FIXME: move to subsystem dir
242234
o2_add_test_root_macro(runTPCRefit.C
243235
PUBLIC_LINK_LIBRARIES O2::DataFormatsTPC

macro/runCATrackingClusterNative.C

Lines changed: 0 additions & 155 deletions
This file was deleted.

0 commit comments

Comments
 (0)