Skip to content

Commit 692384e

Browse files
committed
Rename TPCCATracking to GPUCATracking (it is not only TPC in the end)
1 parent ba16307 commit 692384e

File tree

10 files changed

+51
-43
lines changed

10 files changed

+51
-43
lines changed

Detectors/TPC/reconstruction/CMakeLists.txt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ set(SRCS
1515
src/RawReaderCRU.cxx
1616
src/RawReaderEventSync.cxx
1717
src/SyncPatternMonitor.cxx
18-
src/TPCCATracking.cxx
18+
src/GPUCATracking.cxx
1919
src/HardwareClusterDecoder.cxx
2020
src/DigitalCurrentClusterIntegrator.cxx
2121
src/TPCFastTransformHelperO2.cxx
@@ -33,7 +33,7 @@ set(HEADERS
3333
include/${MODULE_NAME}/RawReaderCRU.h
3434
include/${MODULE_NAME}/RawReaderEventSync.h
3535
include/${MODULE_NAME}/SyncPatternMonitor.h
36-
include/${MODULE_NAME}/TPCCATracking.h
36+
include/${MODULE_NAME}/GPUCATracking.h
3737
include/${MODULE_NAME}/HardwareClusterDecoder.h
3838
include/${MODULE_NAME}/DigitalCurrentClusterIntegrator.h
3939
include/${MODULE_NAME}/TPCFastTransformHelperO2.h
@@ -80,7 +80,7 @@ endforeach (_file RANGE 0 ${_length})
8080
set(TEST_SRCS
8181
test/testTPCSyncPatternMonitor.cxx
8282
test/testTPCAdcClockMonitor.cxx
83-
test/testTPCCATracking.cxx
83+
test/testGPUCATracking.cxx
8484
test/testTPCHwClusterer.cxx
8585
test/testTPCFastTransform.cxx
8686
)

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// granted to it by virtue of its status as an Intergovernmental Organization
99
// or submit itself to any jurisdiction.
1010

11-
/// \file TPCCATracking.h
11+
/// \file DigitalCurrentClusterIntegrator.h
1212
/// \brief Decoder to convert TPC ClusterHardware to ClusterNative
1313
/// \author David Rohr
1414
#ifndef ALICEO2_TPC_DIGITALCURRENTCLUSTERINTEGRATOR_H_

Detectors/TPC/reconstruction/include/TPCReconstruction/TPCCATracking.h renamed to Detectors/TPC/reconstruction/include/TPCReconstruction/GPUCATracking.h

Lines changed: 22 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// granted to it by virtue of its status as an Intergovernmental Organization
99
// or submit itself to any jurisdiction.
1010

11-
/// \file TPCCATracking.h
11+
/// \file GPUCATracking.h
1212
/// \brief Wrapper class for TPC CA Tracker algorithm
1313
/// \author David Rohr
1414
#ifndef ALICEO2_TPC_TPCCATRACKING_H_
@@ -27,20 +27,28 @@ class GPUTPCO2Interface;
2727
} // namespace gpu
2828
} // namespace o2
2929

30-
namespace o2 { class MCCompLabel; namespace dataformats { template <class T> class MCTruthContainer; }}
30+
namespace o2
31+
{
32+
class MCCompLabel;
33+
namespace dataformats
34+
{
35+
template <class T>
36+
class MCTruthContainer;
37+
}
38+
} // namespace o2
3139

3240
namespace o2
3341
{
3442
namespace tpc
3543
{
3644

37-
class TPCCATracking
45+
class GPUCATracking
3846
{
39-
public:
40-
TPCCATracking();
41-
~TPCCATracking();
42-
TPCCATracking(const TPCCATracking&) = delete; // Disable copy
43-
TPCCATracking& operator=(const TPCCATracking&) = delete; // Disable assignment
47+
public:
48+
GPUCATracking();
49+
~GPUCATracking();
50+
GPUCATracking(const GPUCATracking&) = delete; // Disable copy
51+
GPUCATracking& operator=(const GPUCATracking&) = delete; // Disable assignment
4452

4553
int initialize(const o2::gpu::GPUO2InterfaceConfiguration& config);
4654
void deinitialize();
@@ -49,21 +57,21 @@ class TPCCATracking
4957
int runTracking(const o2::tpc::ClusterNativeAccessFullTPC& clusters, std::vector<TrackTPC>* outputTracks,
5058
o2::dataformats::MCTruthContainer<o2::MCCompLabel>* outputTracksMCTruth = nullptr);
5159

52-
float getPseudoVDrift(); //Return artificial VDrift used to convert time to Z
53-
float getTFReferenceLength() {return sContinuousTFReferenceLength;} //Return reference time frame length used to obtain Z from T in continuous data
54-
int getNTracksASide() {return mNTracksASide;}
60+
float getPseudoVDrift(); //Return artificial VDrift used to convert time to Z
61+
float getTFReferenceLength() { return sContinuousTFReferenceLength; } //Return reference time frame length used to obtain Z from T in continuous data
62+
int getNTracksASide() { return mNTracksASide; }
5563
void GetClusterErrors2(int row, float z, float sinPhi, float DzDs, float& ErrY2, float& ErrZ2) const;
5664

5765
private:
5866
std::unique_ptr<o2::gpu::GPUTPCO2Interface> mTrackingCAO2Interface; //Pointer to Interface class in HLT O2 CA Tracking library.
5967
//The tracking code itself is not included in the O2 package, but contained in the CA library.
60-
//The TPCCATracking class interfaces this library via this pointer to GPUTPCO2Interface class.
68+
//The GPUCATracking class interfaces this library via this pointer to GPUTPCO2Interface class.
6169

6270
static constexpr float sContinuousTFReferenceLength = 0.023 * 5e6;
6371
static constexpr float sTrackMCMaxFake = 0.1;
6472
int mNTracksASide = 0;
6573
};
6674

67-
}
68-
}
75+
} // namespace tpc
76+
} // namespace o2
6977
#endif

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// granted to it by virtue of its status as an Intergovernmental Organization
99
// or submit itself to any jurisdiction.
1010

11-
/// \file TPCCATracking.h
11+
/// \file HardwareClusterDecoder.h
1212
/// \brief Decoder to convert TPC ClusterHardware to ClusterNative
1313
/// \author David Rohr
1414
#ifndef ALICEO2_TPC_HARDWARECLUSTERDECODER_H_

Detectors/TPC/reconstruction/src/TPCCATracking.cxx renamed to Detectors/TPC/reconstruction/src/GPUCATracking.cxx

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -8,10 +8,10 @@
88
// granted to it by virtue of its status as an Intergovernmental Organization
99
// or submit itself to any jurisdiction.
1010

11-
/// \file TPCCATracking.cxx
11+
/// \file GPUCATracking.cxx
1212
/// \author David Rohr
1313

14-
#include "TPCReconstruction/TPCCATracking.h"
14+
#include "TPCReconstruction/GPUCATracking.h"
1515

1616
#include "FairLogger.h"
1717
#include "ReconstructionDataFormats/Track.h"
@@ -38,10 +38,10 @@ using namespace o2::dataformats;
3838

3939
using MCLabelContainer = MCTruthContainer<MCCompLabel>;
4040

41-
TPCCATracking::TPCCATracking() : mTrackingCAO2Interface() {}
42-
TPCCATracking::~TPCCATracking() { deinitialize(); }
41+
GPUCATracking::GPUCATracking() : mTrackingCAO2Interface() {}
42+
GPUCATracking::~GPUCATracking() { deinitialize(); }
4343

44-
int TPCCATracking::initialize(const GPUO2InterfaceConfiguration& config)
44+
int GPUCATracking::initialize(const GPUO2InterfaceConfiguration& config)
4545
{
4646
std::unique_ptr<TPCFastTransform> fastTransform(TPCFastTransformHelperO2::instance()->create(0));
4747
mTrackingCAO2Interface.reset(new GPUTPCO2Interface);
@@ -52,12 +52,12 @@ int TPCCATracking::initialize(const GPUO2InterfaceConfiguration& config)
5252
return (retVal);
5353
}
5454

55-
void TPCCATracking::deinitialize()
55+
void GPUCATracking::deinitialize()
5656
{
5757
mTrackingCAO2Interface.reset();
5858
}
5959

60-
int TPCCATracking::runTracking(const ClusterNativeAccessFullTPC& clusters, std::vector<TrackTPC>* outputTracks,
60+
int GPUCATracking::runTracking(const ClusterNativeAccessFullTPC& clusters, std::vector<TrackTPC>* outputTracks,
6161
MCLabelContainer* outputTracksMCTruth)
6262
{
6363
auto& detParam = ParameterDetector::Instance();
@@ -221,14 +221,14 @@ int TPCCATracking::runTracking(const ClusterNativeAccessFullTPC& clusters, std::
221221
return (retVal);
222222
}
223223

224-
float TPCCATracking::getPseudoVDrift()
224+
float GPUCATracking::getPseudoVDrift()
225225
{
226226
auto& gasParam = ParameterGas::Instance();
227227
auto& elParam = ParameterElectronics::Instance();
228228
return (elParam.ZbinWidth * gasParam.DriftV);
229229
}
230230

231-
void TPCCATracking::GetClusterErrors2(int row, float z, float sinPhi, float DzDs, float& ErrY2, float& ErrZ2) const
231+
void GPUCATracking::GetClusterErrors2(int row, float z, float sinPhi, float DzDs, float& ErrY2, float& ErrZ2) const
232232
{
233233
if (mTrackingCAO2Interface == nullptr) {
234234
return;

Detectors/TPC/reconstruction/src/TPCReconstructionLinkDef.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@
2222
#pragma link C++ class o2::tpc::RawReaderCRU;
2323
#pragma link C++ class o2::tpc::RawReaderEventSync;
2424
#pragma link C++ class o2::tpc::SyncPatternMonitor;
25-
#pragma link C++ class o2::tpc::TPCCATracking;
25+
#pragma link C++ class o2::tpc::GPUCATracking;
2626
#pragma link C++ class o2::tpc::HardwareClusterDecoder;
2727

2828
#pragma link C++ class o2::tpc::Clusterer+;

Detectors/TPC/reconstruction/test/testTPCCATracking.cxx renamed to Detectors/TPC/reconstruction/test/testGPUCATracking.cxx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// granted to it by virtue of its status as an Intergovernmental Organization
99
// or submit itself to any jurisdiction.
1010

11-
/// \file testTPCCATracking.cxx
11+
/// \file testGPUCATracking.cxx
1212
/// \brief This task tests the TPC CA Tracking library
1313
/// \author David Rohr
1414

@@ -21,7 +21,7 @@
2121
#include "DataFormatsTPC/TrackTPC.h"
2222
#include "DataFormatsTPC/ClusterNative.h"
2323
#include "DataFormatsTPC/ClusterNativeHelper.h"
24-
#include "TPCReconstruction/TPCCATracking.h"
24+
#include "TPCReconstruction/GPUCATracking.h"
2525

2626
#include "GPUO2InterfaceConfiguration.h"
2727
#include "GPUReconstruction.h"
@@ -42,7 +42,7 @@ namespace tpc
4242
/// @brief Test 1 basic class IO tests
4343
BOOST_AUTO_TEST_CASE(CATracking_test1)
4444
{
45-
TPCCATracking tracker;
45+
GPUCATracking tracker;
4646

4747
float solenoidBz = -5.00668; //B-field
4848
float refX = 1000.; //transport tracks to this x after tracking, >500 for disabling
@@ -87,5 +87,5 @@ BOOST_AUTO_TEST_CASE(CATracking_test1)
8787
BOOST_CHECK_EQUAL(retVal, 0);
8888
BOOST_CHECK_EQUAL((int)tracks.size(), 1);
8989
}
90-
}
91-
}
90+
} // namespace tpc
91+
} // namespace o2

Detectors/TPC/workflow/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ The workflow consists of the following DPL processors:
1616
* `tpc-digit-reader` -> using tool [o2::framework::RootTreeReader](../../../Framework/Utils/include/Utils/RootTreeReader.h)
1717
* `tpc-clusterer` -> interfaces [o2::tpc::HwClusterer](../reconstruction/include/TPCReconstruction/HwClusterer.h)
1818
* `tpc-cluster-decoder` -> interfaces [o2::tpc::HardwareClusterDecoder](../reconstruction/include/TPCReconstruction/HardwareClusterDecoder.h)
19-
* `tpc-tracker` -> interfaces [o2::tpc::TPCCATracking](../reconstruction/include/TPCReconstruction/TPCCATracking.h)
19+
* `tpc-tracker` -> interfaces [o2::tpc::GPUCATracking](../reconstruction/include/TPCReconstruction/GPUCATracking.h)
2020
* `tpc-track-writer` -> implements simple writing to ROOT file
2121

2222
Depending on the input and output types the default workflow is extended by the following readers and writers:
@@ -121,7 +121,7 @@ By default, all TPC sectors are processed by the workflow, option `--tpc-sectors
121121
### Processor options
122122

123123
#### TPC CA tracker
124-
The [tracker spec](src/CATrackerSpec.cxx) interfaces the [o2::tpc::TPCCATracking](../reconstruction/include/TPCReconstruction/TPCCATracking.h)
124+
The [tracker spec](src/CATrackerSpec.cxx) interfaces the [o2::tpc::GPUCATracking](../reconstruction/include/TPCReconstruction/GPUCATracking.h)
125125
worker class which can be initialized using an option string. The processor spec defines the option `--tracker-option`. Currently, the tracker
126126
should be run with options:
127127
```

Detectors/TPC/workflow/src/CATrackerSpec.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
#include "DataFormatsTPC/ClusterNative.h"
2525
#include "DataFormatsTPC/ClusterNativeHelper.h"
2626
#include "DataFormatsTPC/Helpers.h"
27-
#include "TPCReconstruction/TPCCATracking.h"
27+
#include "TPCReconstruction/GPUCATracking.h"
2828
#include "GPUO2InterfaceConfiguration.h"
2929
#include "GPUDisplayBackend.h"
3030
#ifdef BUILD_EVENT_DISPLAY
@@ -65,7 +65,7 @@ DataProcessorSpec getCATrackerSpec(bool processMC, std::vector<int> const& input
6565
std::bitset<NSectors> validInputs = 0;
6666
std::bitset<NSectors> validMcInputs = 0;
6767
std::unique_ptr<ClusterGroupParser> parser;
68-
std::unique_ptr<o2::tpc::TPCCATracking> tracker;
68+
std::unique_ptr<o2::tpc::GPUCATracking> tracker;
6969
std::unique_ptr<o2::gpu::GPUDisplayBackend> displayBackend;
7070
int verbosity = 1;
7171
std::vector<int> inputIds;
@@ -81,7 +81,7 @@ DataProcessorSpec getCATrackerSpec(bool processMC, std::vector<int> const& input
8181
auto& parser = processAttributes->parser;
8282
auto& tracker = processAttributes->tracker;
8383
parser = std::make_unique<ClusterGroupParser>();
84-
tracker = std::make_unique<o2::tpc::TPCCATracking>();
84+
tracker = std::make_unique<o2::tpc::GPUCATracking>();
8585

8686
// Prepare initialization of CATracker - we parse the deprecated option string here,
8787
// and create the proper configuration objects for compatibility.
@@ -180,7 +180,7 @@ DataProcessorSpec getCATrackerSpec(bool processMC, std::vector<int> const& input
180180

181181
// Configuration is prepared, initialize the tracker.
182182
if (tracker->initialize(config) != 0) {
183-
throw std::invalid_argument("TPCCATracking initialization failed");
183+
throw std::invalid_argument("GPUCATracking initialization failed");
184184
}
185185
processAttributes->validInputs.reset();
186186
processAttributes->validMcInputs.reset();

macro/runCATrackingClusterNative.C

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
#include "SimulationDataFormat/MCCompLabel.h"
2828
#include "SimulationDataFormat/MCTruthContainer.h"
2929
#include "DataFormatsTPC/Constants.h"
30-
#include "TPCReconstruction/TPCCATracking.h"
30+
#include "TPCReconstruction/GPUCATracking.h"
3131
#include "GPUO2InterfaceConfiguration.h"
3232
#include "DataFormatsTPC/TrackTPC.h"
3333
#else
@@ -46,14 +46,14 @@ using MCLabelContainer = MCTruthContainer<o2::MCCompLabel>;
4646

4747
// This is a prototype of a macro to test running the HLT O2 CA Tracking library on a root input file containg
4848
// TClonesArray of clusters.
49-
// It wraps the TPCCATracking class
49+
// It wraps the GPUCATracking class
5050
int runCATrackingClusterNative(TString inputFile, TString outputFile)
5151
{
5252
if (inputFile.EqualTo("") || outputFile.EqualTo("")) {
5353
printf("Filename missing\n");
5454
return (1);
5555
}
56-
TPCCATracking tracker;
56+
GPUCATracking tracker;
5757

5858
// Just some default options to keep the macro running for now
5959
// Should be deprecated anyway in favor of the TPC workflow

0 commit comments

Comments
 (0)