Skip to content

Commit 3c49a0e

Browse files
authored
Use .value() for double properties to avoid ambiguous template resolution (#40)
Co-authored-by: jmcarcell <jmcarcell@users.noreply.github.com>
1 parent 47c8390 commit 3c49a0e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

DRdigi/src/DigiSiPM.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ StatusCode DigiSiPM::execute(const EventContext&) const {
7272

7373
const double integral = anaSignal.integral(m_gateStart,m_gateL,m_thres); // (intStart, intGate, threshold)
7474
const double toa = anaSignal.toa(m_gateStart,m_gateL,m_thres); // (intStart, intGate, threshold)
75-
const double gateEnd = m_gateStart + m_gateL;
75+
const double gateEnd = m_gateStart.value() + m_gateL.value();
7676

7777
digiHit.setEnergy( integral );
7878
digiHit.setCellID( rawhit.getCellID() );

DRreco/src/DRcalib3D.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ StatusCode DRcalib3D::execute(const EventContext&) const {
109109
double scale = pSeg->IsCerenkov(cID) ? m_cherenScale.value() : m_scintScale.value();
110110

111111
// create a histogram to do FFT and fill it
112-
std::unique_ptr<TH1D> waveHist = std::make_unique<TH1D>("waveHist","waveHist",m_nbins,m_gateStart,m_gateStart+m_gateL);
112+
std::unique_ptr<TH1D> waveHist = std::make_unique<TH1D>("waveHist","waveHist",m_nbins,m_gateStart,m_gateStart.value()+m_gateL.value());
113113
float sampling = waveform.getInterval();
114114
float startTime = waveform.getTime();
115115

0 commit comments

Comments
 (0)