You are on page 1of 4

For 10kev Energy:

Magnetic field B = (8.578 0.007)*10^-3 T


Detector angle beta = (0.65 0.05) radians
Damping constant Tau = (4.1

0.1) s

Coefficients for quadratic depends of magnetic field on energy


a = (-1.55 0.01 *10^-5 T/keV^2
b = (9.23 0.03 *10^-4 T/keV
c = (8.9 0.2 *10^-4 T

FLOW Chart
Start ProcessData

Assign data =
gen_data(filename)

Calls gen_data

Opens datafile
named filename

Sets count variable


=0

Reads line in datafile


and adds one to the
count variable

Generating 10 keV

dat a
Calls Data_Channel
_times for 10keV
dataset (i=1)

If line has
&END

channel_1 and channel_2


variables = Data_Channel
_times

Calls Calculated_assymetry
Assigns
A_0, errorA_0 and time

Imports data from


datafile

Calls channel_counter
assigns P_L and P_R for
channel_1 and channel_2

Genfromtxt
(Skipheader =
count +1)

Calculates A_0, errors in


P_L, P_R and A_0
Generates B_guess
Generates B, beta and tau
,beta_guess and tau_damp
Plottedfrom
histograms for Left (and errors) from curvefit
guess
function calling
and right detectors and
guess_parameter()
params_curvefit
plottedGenerates
assymetry
Calls B_field_vs_Energy (a, b, c,
Calls Left_Histogram
(channel_1
B and B_error
), from
Returns
dictionary
values:to
Adds
B and B_error
function.
Calls
curve_fit
for
B_values,
Energy,
B_values,)
Right_Histogram
curve_fit
(channel_2
for each
...) energy
and
(i=
For
range
up
data
pair
END
Returns
coefficients
a, b, cenergy.
for
data_pair
=to
number
of
B_fitted,
B_error_fitted,
B_errors
for
each
B_errors
and
fitted
function
Assign
B_values
and
Plots
B
against
Energy
w/fitted
Assymetry_graph
(time,
0,
A_0,
14)
B_fitted)
value,
Process_Data
fitted
function
and
a_errors,
Generating
multiplie
columns in data
/2
beta_fitted,
beta_error_fitted,
B_field.
B_errors
of zeros.
function.
i = array
0,1,2,3,4
b_errors,
c_errors.
energies
tau_damp_fitted,
daB_field_vs_Energy(a,b,c,
tau_damp_error_fitted, a,b,c.

You might also like