Skip to content

Commit df24238

Browse files
make sure all planes filled
1 parent a21662e commit df24238

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

sbncode/CAFMaker/FillTrue.cxx

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ namespace caf {
465465

466466
srneutrino.index = i;
467467

468-
for (int c = 0; c < (int)active_volumes.size(); c++) {
468+
for (int c = 0; c < 2; c++) {
469469
SRTrueInteractionPlaneInfo init;
470470
init.visE = 0.;
471471
init.nhit = 0;
@@ -483,7 +483,7 @@ namespace caf {
483483

484484
// total up the deposited energy
485485
for(int p = 0; p < 3; ++p) {
486-
for (int i_cryo = 0; i_cryo < (int)active_volumes.size(); i_cryo++) {
486+
for (int i_cryo = 0; i_cryo < 2; i_cryo++) {
487487
srneutrino.plane[i_cryo][p].visE += part.plane[i_cryo][p].visE;
488488
}
489489
}
@@ -507,7 +507,7 @@ namespace caf {
507507
}
508508

509509
for(int p = 0; p < 3; ++p) {
510-
for (int i_cryo = 0; i_cryo < (int)active_volumes.size(); i_cryo++) {
510+
for (int i_cryo = 0; i_cryo < 2; i_cryo++) {
511511
srneutrino.plane[i_cryo][p].nhitprim = planehitIDs[i_cryo][p].size();
512512
}
513513
}
@@ -529,7 +529,7 @@ namespace caf {
529529
}
530530

531531
for(int p = 0; p < 3; ++p) {
532-
for (int i_cryo = 0; i_cryo < (int)active_volumes.size(); i_cryo++) {
532+
for (int i_cryo = 0; i_cryo < 2; i_cryo++) {
533533
srneutrino.plane[i_cryo][p].nhit = planehitIDs[i_cryo][p].size();
534534
}
535535
}

0 commit comments

Comments
 (0)