Skip to content

Commit

Permalink
Use .value() for double properties to avoid ambiguous template resolu…
Browse files Browse the repository at this point in the history
…tion (#40)

Co-authored-by: jmcarcell <[email protected]>
  • Loading branch information
jmcarcell and jmcarcell authored Sep 20, 2024
1 parent 47c8390 commit 3c49a0e
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion DRdigi/src/DigiSiPM.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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() );
Expand Down
2 changes: 1 addition & 1 deletion DRreco/src/DRcalib3D.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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<TH1D> waveHist = std::make_unique<TH1D>("waveHist","waveHist",m_nbins,m_gateStart,m_gateStart+m_gateL);
std::unique_ptr<TH1D> waveHist = std::make_unique<TH1D>("waveHist","waveHist",m_nbins,m_gateStart,m_gateStart.value()+m_gateL.value());
float sampling = waveform.getInterval();
float startTime = waveform.getTime();

Expand Down

0 comments on commit 3c49a0e

Please sign in to comment.