Commit 88c6fadbc0077bdbaaea82afd228a8f3765edaec

Authored by knodlseder
1 parent 6f86762f

initalise and copy indices and weighting factors

inst/lat/src/GLATResponseTable.cpp
... ... @@ -583,6 +583,14 @@ void GLATResponseTable::init_members(void)
583 583 m_ctheta_hi = NULL;
584 584 m_last_energy = -1.0;
585 585 m_last_ctheta = -1.0;
  586 + m_inx1 = 0;
  587 + m_inx2 = 0;
  588 + m_inx3 = 0;
  589 + m_inx4 = 0;
  590 + m_wgt1 = 0.0;
  591 + m_wgt2 = 0.0;
  592 + m_wgt3 = 0.0;
  593 + m_wgt4 = 0.0;
586 594  
587 595 // Return
588 596 return;
... ... @@ -603,6 +611,14 @@ void GLATResponseTable::copy_members(const GLATResponseTable& table)
603 611 m_ctheta = table.m_ctheta;
604 612 m_last_energy = table.m_last_energy;
605 613 m_last_ctheta = table.m_last_ctheta;
  614 + m_inx1 = table.m_inx1;
  615 + m_inx2 = table.m_inx2;
  616 + m_inx3 = table.m_inx3;
  617 + m_inx4 = table.m_inx4;
  618 + m_wgt1 = table.m_wgt1;
  619 + m_wgt2 = table.m_wgt2;
  620 + m_wgt3 = table.m_wgt3;
  621 + m_wgt4 = table.m_wgt4;
606 622  
607 623 // Copy energy bins
608 624 if (m_energy_num > 0) {
... ...