Skip to content

Commit 23efc75

Browse files
committed
Fix retrieving of DetLayer for otf strangeness tracking
1 parent baa254a commit 23efc75

File tree

2 files changed

+1
-15
lines changed

2 files changed

+1
-15
lines changed

ALICE3/Core/FastTracker.cxx

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -66,20 +66,6 @@ void FastTracker::addDeadPhiRegionInLayer(const std::string& layerName, float ph
6666
layers[layerIdx].addDeadPhiRegion(phiStart, phiEnd);
6767
}
6868

69-
DetLayer FastTracker::GetLayer(int layer, bool ignoreBarrelLayers) const
70-
{
71-
int layerIdx = layer;
72-
if (ignoreBarrelLayers) {
73-
for (int il = 0, trackingLayerIdx = 0; trackingLayerIdx <= layer; il++) {
74-
if (layers[il].isInert())
75-
continue;
76-
trackingLayerIdx++;
77-
layerIdx = il;
78-
}
79-
}
80-
return layers[layerIdx];
81-
}
82-
8369
int FastTracker::GetLayerIndex(const std::string& name) const
8470
{
8571
int i = 0;

ALICE3/Core/FastTracker.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ class FastTracker
4848
/// \param phiStart Start angle of the dead region (in radians)
4949
/// \param phiEnd End angle of the dead region (in radians)
5050
void addDeadPhiRegionInLayer(const std::string& layerName, float phiStart, float phiEnd);
51-
DetLayer GetLayer(const int layer, bool ignoreBarrelLayers = true) const;
51+
DetLayer GetLayer(const int layer) const { return layers[layer]; }
5252
std::vector<DetLayer> GetLayers() const { return layers; }
5353
int GetLayerIndex(const std::string& name) const;
5454
size_t GetNLayers() const { return layers.size(); }

0 commit comments

Comments
 (0)