Skip to content

Commit 8161906

Browse files
committed
Move modifications to ITS code in dedicated PR
1 parent ca7d0ce commit 8161906

5 files changed

Lines changed: 12 additions & 24 deletions

File tree

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

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,8 +48,13 @@ class IndexTableUtils
4848
int mNzBins = 0;
4949
int mNphiBins = 0;
5050
float mInversePhiBinSize = 0.f;
51+
<<<<<<< HEAD
5152
float mLayerZ[8] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
5253
float mInverseZBinSize[8] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
54+
=======
55+
float mLayerZ[7] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
56+
float mInverseZBinSize[7] = {0.f, 0.f, 0.f, 0.f, 0.f, 0.f, 0.f};
57+
>>>>>>> Move modifications to ITS code in dedicated PR
5358
};
5459

5560
template <class T>
@@ -58,10 +63,6 @@ inline void IndexTableUtils::setTrackingParameters(const T& params)
5863
mInversePhiBinSize = params.PhiBins / constants::math::TwoPi;
5964
mNzBins = params.ZBins;
6065
mNphiBins = params.PhiBins;
61-
if (params.LayerZ.size() > 7) {
62-
mLayerZ.resize(params.LayerZ.size());
63-
mInverseZBinSize.resize(params.LayerZ.size());
64-
}
6566
for (int iLayer{0}; iLayer < params.LayerZ.size(); ++iLayer) {
6667
mLayerZ[iLayer] = params.LayerZ[iLayer];
6768
}

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -202,8 +202,6 @@ class TimeFrame
202202
void addTrackingFrameInfoToLayer(int layer, T&&... args);
203203
void addClusterExternalIndexToLayer(int layer, const int idx);
204204

205-
void resizeVectors(int nLayers);
206-
207205
/// Debug and printing
208206
void checkTrackletLUTs();
209207
void printROFoffsets();

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -136,17 +136,17 @@ inline const int4 TrackerTraits::getBinsRect(const Cluster& currentCluster, int
136136

137137
inline void TrackerTraits::initialiseTimeFrame(const int iteration)
138138
{
139-
mTimeFrame->initialise(iteration, mTrkParams[iteration], mTrkParams[iteration].NLayers);
139+
mTimeFrame->initialise(iteration, mTrkParams[iteration], 7);
140140
setIsGPU(false);
141141
}
142142

143143
inline const int4 TrackerTraits::getBinsRect(const int layerIndex, float phi, float maxdeltaphi,
144144
float z1, float z2, float maxdeltaz)
145145
{
146146
const float zRangeMin = o2::gpu::GPUCommonMath::Min(z1, z2) - maxdeltaz;
147-
const float phiRangeMin = phi - maxdeltaphi;
147+
const float phiRangeMin = o2::gpu::GPUCommonMath::Max(-constants::math::TwoPi, phi - maxdeltaphi);
148148
const float zRangeMax = o2::gpu::GPUCommonMath::Max(z1, z2) + maxdeltaz;
149-
const float phiRangeMax = phi + maxdeltaphi;
149+
const float phiRangeMax = o2::gpu::GPUCommonMath::Min(phi + maxdeltaphi, 2 * constants::math::TwoPi);
150150

151151
if (zRangeMax < -mTrkParams[0].LayerZ[layerIndex + 1] ||
152152
zRangeMin > mTrkParams[0].LayerZ[layerIndex + 1] || zRangeMin > zRangeMax) {

Detectors/ITSMFT/ITS/tracking/src/TimeFrame.cxx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -455,20 +455,6 @@ void TimeFrame::checkTrackletLUTs()
455455
}
456456
}
457457

458-
void TimeFrame::resizeVectors(int nLayers)
459-
{
460-
mMinR.resize(nLayers, 10000.);
461-
mMaxR.resize(nLayers, -1.);
462-
mClusters.resize(nLayers);
463-
mUnsortedClusters.resize(nLayers);
464-
mTrackingFrameInfo.resize(nLayers);
465-
mClusterExternalIndices.resize(nLayers);
466-
mUsedClusters.resize(nLayers);
467-
mROframesClusters.resize(nLayers, {0});
468-
mNClustersPerROF.resize(nLayers);
469-
mTrackletsIndexROf.resize(2, {0});
470-
}
471-
472458
void TimeFrame::printTrackletLUTonLayer(int i)
473459
{
474460
std::cout << "--------" << std::endl

Detectors/Upgrades/ITS3/README.md

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,4 +99,7 @@ As above, it is important to provide the correct run number using `-—configKey
9999
100100
If the `FourLayers` geometry was used in the simulation, it should be set also for the reconstruction to set properly the tracker to work with the additional layer. If something else of the geometry was set differently (`mRadii`, `mLength`, `mGapY`, `mGapPhi`, `mGapXDirection4thLayer`, or `mDetectorThickness`), it is necessary to remap the file with the geometry to replace the one on the CCDB, which would be different. This can be done by copying the `o2sim_geometry-aligned.root` file created during the simulation to a directory called `GLO/Config/GeometryAligned`, with the name `snapshot.root` in a local path of choice. Then, the following argument has to be added to the reco workflow: `--condition-remap "file://local_path=GLO/Config/GeometryAligned"`.
101101
102-
<!-- > **_NOTE:_** reconstruction for the `FourLayers` geometry is not implemented yet. -->
102+
> **_NOTE:_** in order to make the reconstruction for the `FourLayers` geometry work, the following line has to be added to the CMake options in the [o2.sh](https://github.com/alisw/alidist/blob/master/o2.sh) recipe in alidist:
103+
```bash
104+
${ENABLE_ITS3_4L:+-DENABLE_ITS3_4L=ON}
105+
```

0 commit comments

Comments
 (0)