Skip to content

Commit 41e16ed

Browse files
author
Arthur Glowacki
committed
Added default initializers
1 parent f66d247 commit 41e16ed

1 file changed

Lines changed: 10 additions & 9 deletions

File tree

src/data_struct/detector.cpp

Lines changed: 10 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -186,6 +186,7 @@ void Detector<T_real>::update_element_quants(Fitting_Routines routine,
186186
// e_cal_ratio defined as 0 , add this value. If we have multiple standards
187187
// then we will normalize this later .
188188
eq_itr.e_cal_ratio += (T_real)1.0 / e_cal;
189+
logI<<"Ecal : "<<eq_itr.e_cal_ratio<<"\n";
189190

190191
}
191192
else
@@ -248,15 +249,15 @@ void Detector<T_real>::avg_element_quants(Fitting_Routines routine,
248249
template<typename T_real>
249250
void Detector<T_real>::generage_avg_quantification_scalers()
250251
{
251-
T_real avg_sr_current = 0.0;
252-
T_real avg_US_IC = 0.0;
253-
T_real avg_US_FM = 0.0;
254-
T_real avg_DS_IC = 0.0;
255-
256-
T_real crnt_cnt = 0.0;
257-
T_real us_cnt = 0.0;
258-
T_real us_fm_cnt = 0.0;
259-
T_real ds_cnt = 0.0;
252+
T_real avg_sr_current = (T_real)0.0;
253+
T_real avg_US_IC = (T_real)0.0;
254+
T_real avg_US_FM = (T_real)0.0;
255+
T_real avg_DS_IC = (T_real)0.0;
256+
257+
T_real crnt_cnt = (T_real)0.0;
258+
T_real us_cnt = (T_real)0.0;
259+
T_real us_fm_cnt = (T_real)0.0;
260+
T_real ds_cnt = (T_real)0.0;
260261

261262
//average quantification scalers
262263
for (const auto& itr : quantification_standards)

0 commit comments

Comments
 (0)