Skip to content

Commit

Permalink
added lines to check detetector weight is 0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
tterasaki committed Jan 12, 2024
1 parent 7d55ab9 commit a6341c4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/Projection.cxx
Original file line number Diff line number Diff line change
Expand Up @@ -1390,6 +1390,7 @@ void to_map_single_thread(Pointer<C> &pointer,
if (_det_weights->obj != NULL)
det_wt = *(FSIGNAL*)((char*)_det_weights->buf +
_det_weights->strides[0]*i_det);
if (det_wt == 0.) continue;
double dofs[4];
double coords[4];
FSIGNAL pf[S::comp_count];
Expand Down Expand Up @@ -1426,6 +1427,7 @@ void to_weight_map_single_thread(Pointer<C> &pointer,
if (_det_weights->obj != NULL)
det_wt = *(FSIGNAL*)((char*)_det_weights->buf +
_det_weights->strides[0]*i_det);
if (det_wt == 0.) continue;
double dofs[4];
double coords[4];
FSIGNAL pf[S::comp_count];
Expand Down Expand Up @@ -1696,6 +1698,7 @@ void precomp_to_map_single_thread(Pixelizor2_Flat<TilingSys> &tiling,
FSIGNAL det_wt = 1.;
if (_det_weights->obj != NULL)
det_wt = *(FSIGNAL*)((char*)_det_weights->buf + _det_weights->strides[0]*i_det);
if (det_wt == 0.) continue;

for (auto const &rng: ivals[i_det].segments) {
for (int i_time = rng.first; i_time < rng.second; ++i_time) {
Expand Down Expand Up @@ -1730,6 +1733,7 @@ void precomp_to_weight_map_single_thread(Pixelizor2_Flat<TilingSys> &tiling,
FSIGNAL det_wt = 1.;
if (_det_weights->obj != NULL)
det_wt = *(FSIGNAL*)((char*)_det_weights->buf + _det_weights->strides[0]*i_det);
if (det_wt == 0.) continue;

for (auto const &rng: ivals[i_det].segments) {
for (int i_time = rng.first; i_time < rng.second; ++i_time) {
Expand Down

0 comments on commit a6341c4

Please sign in to comment.