From 6d068bc4095ecb94c3acc113adaa365dd5100722 Mon Sep 17 00:00:00 2001 From: Eric Torrence <eric.torrence@cern.ch> Date: Wed, 7 Apr 2021 07:20:59 +0000 Subject: [PATCH] First commit of scintillator reconstruction code. Code doesn't actually do anything, but this compiles and give the basic framework for adding real algorithims. --- Scintillator/ScintRecTools/src/WaveformReconstructionTool.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Scintillator/ScintRecTools/src/WaveformReconstructionTool.cxx b/Scintillator/ScintRecTools/src/WaveformReconstructionTool.cxx index 65737116..7b442b69 100644 --- a/Scintillator/ScintRecTools/src/WaveformReconstructionTool.cxx +++ b/Scintillator/ScintRecTools/src/WaveformReconstructionTool.cxx @@ -151,7 +151,7 @@ WaveformReconstructionTool::reconstruct(const ScintWaveform& raw_wave, hit->set_baseline_mean(baseline.mean); hit->set_baseline_rms(baseline.rms); hit->set_time_vector(wtime); - hit->set_wave_vector(wave); + hit->set_wave_vector(wwave); // // Find some raw values @@ -253,7 +253,7 @@ WaveformReconstructionTool::findPeak(WaveformBaselineData& baseline, // Remove these values from the original arrays so we can iterate time.erase(time.begin()+lo_edge, time.begin()+hi_edge); wave.erase(wave.begin()+lo_edge, wave.begin()+hi_edge); - + return true; } -- GitLab