diff --git a/DRdigi/src/DigiSiPM.cpp b/DRdigi/src/DigiSiPM.cpp index 6ff298e..69febe1 100644 --- a/DRdigi/src/DigiSiPM.cpp +++ b/DRdigi/src/DigiSiPM.cpp @@ -72,7 +72,7 @@ StatusCode DigiSiPM::execute(const EventContext&) const { const double integral = anaSignal.integral(m_gateStart,m_gateL,m_thres); // (intStart, intGate, threshold) const double toa = anaSignal.toa(m_gateStart,m_gateL,m_thres); // (intStart, intGate, threshold) - const double gateEnd = m_gateStart + m_gateL; + const double gateEnd = m_gateStart.value() + m_gateL.value(); digiHit.setEnergy( integral ); digiHit.setCellID( rawhit.getCellID() ); diff --git a/DRreco/src/DRcalib3D.cpp b/DRreco/src/DRcalib3D.cpp index 5a8da61..7e7a1a8 100644 --- a/DRreco/src/DRcalib3D.cpp +++ b/DRreco/src/DRcalib3D.cpp @@ -109,7 +109,7 @@ StatusCode DRcalib3D::execute(const EventContext&) const { double scale = pSeg->IsCerenkov(cID) ? m_cherenScale.value() : m_scintScale.value(); // create a histogram to do FFT and fill it - std::unique_ptr waveHist = std::make_unique("waveHist","waveHist",m_nbins,m_gateStart,m_gateStart+m_gateL); + std::unique_ptr waveHist = std::make_unique("waveHist","waveHist",m_nbins,m_gateStart,m_gateStart.value()+m_gateL.value()); float sampling = waveform.getInterval(); float startTime = waveform.getTime();