@@ -261,8 +261,8 @@ InitStatus R3BActafOnlineSpectra::Init()
261261 else
262262 chn++;
263263
264- fh2_RawTraces[index] = R3B ::root_owned< TH2F >(
265- nameHist.c_str (), titleHist.c_str (), nBinsSample / 2 , 1 , nBinsSample, 2000 , 0 , 20000 );
264+ fh2_RawTraces[index] =
265+ R3B ::root_owned< TH2F >( nameHist.c_str (), titleHist.c_str (), nBinsSample, 1 , nBinsSample, 2000 , 0 , 20000 );
266266
267267 fh2_RawTraces[index]->GetXaxis ()->SetTitle (" Time [Chn]" );
268268 fh2_RawTraces[index]->GetYaxis ()->SetTitle (" A" );
@@ -278,14 +278,8 @@ InitStatus R3BActafOnlineSpectra::Init()
278278
279279 std::string nameHistC = " fh2_Pad_" + std::to_string (index) + " corrected_trace" ;
280280
281- fh2_CorrectedTraces[index] = R3B ::root_owned<TH2F >(nameHistC.c_str (),
282- titleHist.c_str (),
283- nBinsSample / 2 ,
284- 1 ,
285- nBinsSample,
286- nBinsTrace,
287- nTraceMin,
288- nTraceMax);
281+ fh2_CorrectedTraces[index] = R3B ::root_owned<TH2F >(
282+ nameHistC.c_str (), titleHist.c_str (), nBinsSample, 1 , nBinsSample, nBinsTrace, nTraceMin, nTraceMax);
289283
290284 fh2_CorrectedTraces[index]->GetXaxis ()->SetTitle (" Time [Chn]" );
291285 fh2_CorrectedTraces[index]->GetYaxis ()->SetTitle (" A" );
@@ -998,7 +992,7 @@ void R3BActafOnlineSpectra::Exec(Option_t* /*option*/)
998992 // continue;
999993 if (hit->GetBaseline () > 0 )
1000994 {
1001- fh2_CorrectedTraces[pad]->Fill (index++ , value /* - hit->GetBaseline()*/ );
995+ fh2_CorrectedTraces[pad]->Fill (index, value /* - hit->GetBaseline()*/ );
1002996
1003997 fh2_RawTraces[pad]->Fill (index++, value + hit->GetBaseline ());
1004998 }
0 commit comments