Skip to content

Commit

Permalink
ITS: minor fixes to enable multiRof (#12225)
Browse files Browse the repository at this point in the history
  • Loading branch information
mconcas authored Nov 10, 2023
1 parent a806da8 commit 759049f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 7 deletions.
6 changes: 3 additions & 3 deletions Detectors/ITSMFT/ITS/tracking/include/ITStracking/TimeFrame.h
Original file line number Diff line number Diff line change
Expand Up @@ -230,6 +230,8 @@ class TimeFrame

void resizeVectors(int nLayers);

void setExtAllocator(bool ext) { mExtAllocator = ext; }
bool getExtAllocator() const { return mExtAllocator; }
/// Debug and printing
void checkTrackletLUTs();
void printROFoffsets();
Expand All @@ -243,9 +245,7 @@ class TimeFrame
IndexTableUtils mIndexTableUtils;

bool mIsGPU = false;
// void setChain(o2::gpu::GPUChainITS*);
void setExtAllocator(bool ext) { mExtAllocator = ext; }
bool getExtAllocator() const { return mExtAllocator; }

std::vector<std::vector<Cluster>> mClusters;
std::vector<std::vector<TrackingFrameInfo>> mTrackingFrameInfo;
std::vector<std::vector<int>> mClusterExternalIndices;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ struct TrackerParamConfig : public o2::conf::ConfigurableParamHelper<TrackerPara
// Use TGeo for mat. budget
bool useMatCorrTGeo = false;
bool useFastMaterial = false;
int deltaRof = 0;
float sysErrY2[7] = {0}; // systematic error^2 in Y per layer
float sysErrZ2[7] = {0}; // systematic error^2 in Z per layer
float maxChi2ClusterAttachment = -1.f;
Expand Down
4 changes: 2 additions & 2 deletions Detectors/ITSMFT/ITS/tracking/src/TimeFrame.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ int TimeFrame::loadROFrameData(gsl::span<o2::itsmft::ROFRecord> rofs,
addClusterExternalIndexToLayer(layer, clusterId);
}
for (unsigned int iL{0}; iL < mUnsortedClusters.size(); ++iL) {
mNClustersPerROF[iL].push_back(mUnsortedClusters[iL].size() - mROframesClusters[iL].back());
// mNClustersPerROF[iL].push_back(mUnsortedClusters[iL].size() - mROframesClusters[iL].back());
mROframesClusters[iL].push_back(mUnsortedClusters[iL].size());
}
mNrof++;
Expand Down Expand Up @@ -415,7 +415,7 @@ unsigned long TimeFrame::getArtefactsMemory()
size += sizeof(Tracklet) * trkl.size();
}
for (auto& cells : mCells) {
size += sizeof(Cell) * cells.size();
size += sizeof(CellSeed) * cells.size();
}
for (auto& cellsN : mCellsNeighbours) {
size += sizeof(int) * cellsN.size();
Expand Down
5 changes: 3 additions & 2 deletions Detectors/ITSMFT/ITS/tracking/src/Tracker.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ void Tracker::clustersToTracks(std::function<void(std::string s)> logger, std::f
}
float trackletsPerCluster = mTraits->getTFNumberOfClusters() > 0 ? float(mTraits->getTFNumberOfTracklets()) / mTraits->getTFNumberOfClusters() : 0.f;
if (trackletsPerCluster > mTrkParams[iteration].TrackletsPerClusterLimit) {
error(fmt::format("Too many tracklets per cluster ({}) in iteration {}, check the detector status and/or the selections.", trackletsPerCluster, iteration));
error(fmt::format("Too many tracklets per cluster ({}) in iteration {}, check the detector status and/or the selections. Current limit is {}", trackletsPerCluster, iteration, mTrkParams[iteration].TrackletsPerClusterLimit));
break;
}

Expand All @@ -71,7 +71,7 @@ void Tracker::clustersToTracks(std::function<void(std::string s)> logger, std::f
}
float cellsPerCluster = mTraits->getTFNumberOfClusters() > 0 ? float(mTraits->getTFNumberOfCells()) / mTraits->getTFNumberOfClusters() : 0.f;
if (cellsPerCluster > mTrkParams[iteration].CellsPerClusterLimit) {
error(fmt::format("Too many cells per cluster ({}) in iteration {}, check the detector status and/or the selections.", cellsPerCluster, iteration));
error(fmt::format("Too many cells per cluster ({}) in iteration {}, check the detector status and/or the selections. Current limit is {}", cellsPerCluster, iteration, mTrkParams[iteration].CellsPerClusterLimit));
break;
}

Expand Down Expand Up @@ -402,6 +402,7 @@ void Tracker::getGlobalConfiguration()
params.SystErrorZ2[i] = tc.sysErrZ2[i] > 0 ? tc.sysErrZ2[i] : params.SystErrorZ2[i];
}
}
params.DeltaROF = tc.deltaRof;
params.MaxChi2ClusterAttachment = tc.maxChi2ClusterAttachment > 0 ? tc.maxChi2ClusterAttachment : params.MaxChi2ClusterAttachment;
params.MaxChi2NDF = tc.maxChi2NDF > 0 ? tc.maxChi2NDF : params.MaxChi2NDF;
params.PhiBins = tc.LUTbinsPhi > 0 ? tc.LUTbinsPhi : params.PhiBins;
Expand Down

0 comments on commit 759049f

Please sign in to comment.