Skip to content

Commit

Permalink
add if statement back
Browse files Browse the repository at this point in the history
  • Loading branch information
GNiendorf committed May 28, 2024
1 parent 7749db7 commit 8dd1891
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions code/core/write_sdl_ntuple.cc
Original file line number Diff line number Diff line change
Expand Up @@ -359,8 +359,12 @@ void setOccupancyBranches(SDL::Event<SDL::Acc>* event)
moduleModule.push_back(modulesInGPU.modules[lowerIdx]);
segmentOccupancy.push_back(segmentsInGPU.totOccupancySegments[lowerIdx]);
mdOccupancy.push_back(mdsInGPU.totOccupancyMDs[lowerIdx]);
quintupletOccupancy.push_back(quintupletsInGPU.totOccupancyQuintuplets[lowerIdx]);
tripletOccupancy.push_back(tripletsInGPU.totOccupancyTriplets[lowerIdx]);

if(idx < *(modulesInGPU.nLowerModules))
{
quintupletOccupancy.push_back(quintupletsInGPU.totOccupancyQuintuplets[lowerIdx]);
tripletOccupancy.push_back(tripletsInGPU.totOccupancyTriplets[lowerIdx]);
}
}

ana.tx->setBranch<vector<int>>("module_layers", moduleLayer);
Expand Down

0 comments on commit 8dd1891

Please sign in to comment.