inverse_fit Namespace Reference

## Functions

def fit_log_fcn (x, par)

def fit_fcn (x, par)

## Variables

tree = filein.Get("detsimana/tree")

h_energy = TH1D("heng", "heng", 500, 0., 50)

hinv = h_energy.Clone()

fit_log = TF1("fit_log", fit_log_fcn, 0, 50, 6)

hflat = TH1D("hflat", "hflat", 500, 0., 50)

c = TCanvas()

## Function Documentation

 def inverse_fit.fit_fcn ( x, par )

Definition at line 31 of file inverse_fit.py.

References fit_log_fcn().

31 def fit_fcn(x, par):
32  return TMath.Exp(fit_log_fcn(x, par))
33
def fit_log_fcn(x, par)
Definition: inverse_fit.py:19
def fit_fcn(x, par)
Definition: inverse_fit.py:31
 def inverse_fit.fit_log_fcn ( x, par )

Definition at line 19 of file inverse_fit.py.

Referenced by fit_fcn().

19 def fit_log_fcn(x, par):
20  energy = x[0]
21  # return p[0] - p[1]*tmath.power(energy, p[2])+p[3]*tmath.power(energy, -p[4])
22  def profile(y, p): return p[0]+p[1]*TMath.Power(y,-p[2])+p[3]*TMath.Power(y, -p[4])+p[5]*y
23  threshold = 0.1
24  if energy > threshold:
25  return profile(energy, par)
26  else:
27  return profile(100., par)
28  # return fthreshold*TMath.Exp(energy-threshold)
29  # return fthreshold-dthreshold*(threshold-energy)
30
def fit_log_fcn(x, par)
Definition: inverse_fit.py:19

## Variable Documentation

 inverse_fit.c = TCanvas()

Definition at line 65 of file inverse_fit.py.

Definition at line 3 of file inverse_fit.py.

Referenced by DataMCNDAna_nus17(), DataMCNDAna_nus18(), and plotTrainTest().

 inverse_fit.fit_log = TF1("fit_log", fit_log_fcn, 0, 50, 6)

Definition at line 34 of file inverse_fit.py.

 inverse_fit.h_energy = TH1D("heng", "heng", 500, 0., 50)

Definition at line 8 of file inverse_fit.py.

 inverse_fit.hflat = TH1D("hflat", "hflat", 500, 0., 50)

Definition at line 48 of file inverse_fit.py.

 inverse_fit.hinv = h_energy.Clone()

Definition at line 12 of file inverse_fit.py.