Skip to content
Snippets Groups Projects
Commit ba698589 authored by Valentina Akishina's avatar Valentina Akishina
Browse files

L1 fix bug for mCBM ToF hit indexes

parent 32e82dd8
No related branches found
No related tags found
1 merge request!350L1 add interface to save global tracks
Pipeline #10996 failed
......@@ -929,7 +929,13 @@ void CbmL1::ReadEvent(L1AlgoInputData* fData_, float& TsStart, float& TsLength,
// -- save hits --
int nEffHits = 0;
SortedIndex.resize(max(nEntSts, nHits));
int maxHitIndex = 0;
if (fTofHits) maxHitIndex = fTofHits->GetEntriesFast() + nMvdHits + nStsHits + nMuchHits + nTrdHits;
else
maxHitIndex = nMvdHits + nStsHits + nMuchHits + nTrdHits;
SortedIndex.resize(max(nEntSts, maxHitIndex));
vector<float> vStsZPos_temp; // temp array for unsorted z positions of detectors segments
for (int i = 0; i < nHits; i++) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment