Skip to content

Commit af469b5

Browse files
committed
fixed wrong optical depth and column density with cartesian detector
1 parent ef19c51 commit af469b5

File tree

2 files changed

+6
-4
lines changed

2 files changed

+6
-4
lines changed

src/Detector.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ class CDetector
7171

7272
cos_acceptance_angle = 0;
7373
alignment = ALIG_RND;
74-
processing_method = NEAREST;
74+
processing_method = 0;
7575

7676
w1_I = 0;
7777
w1_Q = 0;
@@ -1101,7 +1101,9 @@ class CDetector
11011101
array_T[i] = matrixT[i_spectral + i_extra * nr_spectral_bins](i_x, i_y);
11021102
array_S[i] = matrixS[i_spectral + i_extra * nr_spectral_bins](i_x, i_y);
11031103
double N_ph = N_photon[i_spectral + i_extra * nr_spectral_bins](i_x, i_y);
1104-
if((results_type == RESULTS_RAY || results_type == RESULTS_FULL) && processing_method == NEAREST && N_ph > 0)
1104+
1105+
if((results_type == RESULTS_RAY || results_type == RESULTS_FULL) &&
1106+
detector_id == DET_POLAR && processing_method == NEAREST && N_ph > 0)
11051107
{
11061108
array_T[i] /= N_ph;
11071109
array_S[i] /= N_ph;

src/Typedefs.h

+2-2
Original file line numberDiff line numberDiff line change
@@ -306,8 +306,8 @@ using namespace std;
306306
#define RESULTS_FULL 2
307307

308308
// Polar to Cartesian mapping method
309-
#define NEAREST 0
310-
#define INTERP 1
309+
#define NEAREST 1
310+
#define INTERP 2
311311

312312
// Type of calorimetry data
313313
#define CALO_HEAT_CAP 0

0 commit comments

Comments
 (0)