Skip to content
Snippets Groups Projects
Commit aebcf923 authored by Eric Torrence's avatar Eric Torrence
Browse files

Fix compilation warnings

parent 10dd32ce
Branches
No related tags found
No related merge requests found
...@@ -114,7 +114,8 @@ CaloWaveformDigiAlg::execute(const EventContext& ctx) const { ...@@ -114,7 +114,8 @@ CaloWaveformDigiAlg::execute(const EventContext& ctx) const {
// Waveform was empty, fill with baseline // Waveform was empty, fill with baseline
int channel = m_mappingTool->getChannelMapping(w.first); int channel = m_mappingTool->getChannelMapping(w.first);
ATH_MSG_DEBUG("Writing baseline into empty waveform in channel "<< channel); ATH_MSG_DEBUG("Writing baseline into empty waveform in channel "<< channel);
for (const auto& tk : m_timekernel) { int i = m_digiTool->nsamples();
while(i--) { // Use while to avoid unused variable warning with for
int baseline = m_digiTool->generate_baseline(m_base_mean, m_base_rms); int baseline = m_digiTool->generate_baseline(m_base_mean, m_base_rms);
waveforms[w.first].push_back(baseline); waveforms[w.first].push_back(baseline);
} }
......
...@@ -147,7 +147,8 @@ ScintWaveformDigiAlg::execute(const EventContext& ctx) const { ...@@ -147,7 +147,8 @@ ScintWaveformDigiAlg::execute(const EventContext& ctx) const {
// Waveform was empty, fill with baseline // Waveform was empty, fill with baseline
int channel = m_mappingTool->getChannelMapping(w.first); int channel = m_mappingTool->getChannelMapping(w.first);
ATH_MSG_DEBUG("Writing baseline into empty waveform in channel "<< channel); ATH_MSG_DEBUG("Writing baseline into empty waveform in channel "<< channel);
for (const auto& tk : m_timekernel) { int i = m_digiTool->nsamples();
while(i--) { // Use while to avoid unused variable warning with for
int baseline = m_digiTool->generate_baseline(m_base_mean, m_base_rms); int baseline = m_digiTool->generate_baseline(m_base_mean, m_base_rms);
waveforms[w.first].push_back(baseline); waveforms[w.first].push_back(baseline);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment