Skip to content

Commit

Permalink
direct initialization of subdetfound and subdettotal
Browse files Browse the repository at this point in the history
  • Loading branch information
mmusich committed Mar 15, 2023
1 parent d137754 commit a50bccd
Showing 1 changed file with 2 additions and 7 deletions.
Expand Up @@ -500,13 +500,8 @@ void SiStripHitEfficiencyHarvester::printTotalStatistics(
int totalfound = 0;
int totaltotal = 0;
double layereff;
int subdetfound[5];
int subdettotal[5];

for (unsigned int i = 1; i < 5; i++) {
subdetfound[i] = 0;
subdettotal[i] = 0;
}
int subdetfound[5] = {0, 0, 0, 0, 0};
int subdettotal[5] = {0, 0, 0, 0, 0};

for (unsigned int i = 1; i <= bounds::k_LayersAtTECEnd; i++) {
layereff = double(layerFound[i]) / double(layerTotal[i]);
Expand Down

0 comments on commit a50bccd

Please sign in to comment.