Updates and Results Talks and Posters Advice Ideas Important Figures Write-Ups Outreach How-To Funding Opportunities GENETIS
  Place to document instructions for how to do things  ELOG logo
Message ID: 17     Entry time: Mon Nov 20 08:31:48 2017
Author: Brian Clark and Oindree Banerjee 
Subject: Fit a Function in ROOT 
Project: Analysis 

Sometimes you need to fit a function to a histogram in ROOT. Attached is code for how to do that in the simple case of a power law fit.

To run the example, you should type "root fitSnr.C" in the command line. The code will access the source histogram (hstrip1nsr.root, which is actually ANITA-2 satellite data). The result is stripe1snrfit.png.

Attachment 1: fitSnr.C  1 kB  | Show | Hide all | Show all
Attachment 2: hstripe1snr.root  5 kB
Attachment 3: stripe1snrfit.png  20 kB  | Hide | Hide all | Show all
stripe1snrfit.png
ELOG V3.1.5-fc6679b