diff --git a/pipeline/processes/fit/fit.C b/pipeline/processes/fit/fit.C index 4254d822..01cd68c4 100755 --- a/pipeline/processes/fit/fit.C +++ b/pipeline/processes/fit/fit.C @@ -10,10 +10,12 @@ using namespace std; Int_t fit(Bool_t draw = false) { TRestRawSignalEvent* ev = new TRestRawSignalEvent(); - TRestRawSignal* sgnl = new TRestRawSignal(); - for (int n = 0; n < 512; n++) sgnl->AddPoint(0); - sgnl->IncreaseBinBy(70, 100); - ev->AddSignal(*sgnl); + TRestRawSignal* signal = new TRestRawSignal(); + for (int n = 0; n < 512; n++) { + signal->AddPoint((Double_t)0); + } + signal->IncreaseBinBy(70, 100); + ev->AddSignal(*signal); ///// Initializing processes through metadata definition string cfgFile = "metadata.rml";