From 0a9eb6e0398d84d23251aa6b0b67fb3cd8c6e817 Mon Sep 17 00:00:00 2001 From: David Baranyai Date: Tue, 30 Oct 2018 16:10:59 +0100 Subject: [PATCH] Added fit --- source/TrackFinder.cpp | 1 + 1 file changed, 1 insertion(+) diff --git a/source/TrackFinder.cpp b/source/TrackFinder.cpp index f644515..25cb372 100644 --- a/source/TrackFinder.cpp +++ b/source/TrackFinder.cpp @@ -56,6 +56,7 @@ bool TrackFinder::FindAndDrawNextTrack(TH2D* histo, TCanvas *canvas) } } histo -> Draw("colz"); + histo -> Fit("pol1"); canvas -> Update(); return true;