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

Fix compilation warnings

parent 10dd32ce
No related branches found
No related tags found
No related merge requests found
......@@ -114,7 +114,8 @@ CaloWaveformDigiAlg::execute(const EventContext& ctx) const {
// Waveform was empty, fill with baseline
int channel = m_mappingTool->getChannelMapping(w.first);
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);
waveforms[w.first].push_back(baseline);
}
......
......@@ -147,7 +147,8 @@ ScintWaveformDigiAlg::execute(const EventContext& ctx) const {
// Waveform was empty, fill with baseline
int channel = m_mappingTool->getChannelMapping(w.first);
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);
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