Analysis Software
Documentation for sPHENIX simulation software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
object_function.m File Reference

Go to the source code of this file.

Functions

 disp ('object_function')
 
 disp (size(x))
 
 disp (DChi2)
 

Variables

function Chi2
 
 Ndata = 20
 
 calib_const = x(1:Ndata)
 
 E_scale = x((Ndata+1):(Ndata + N_Runs-1))
 
fix highest energy point for i
 
 data = data * calib_const'
 
 total_E = sum(data, 2)
 
 AChi2 = abs((total_E - DataSet(i).E.*E_scale(i))./DataSet(i).DE)
 
 DChi2 = sum(AChi2.^2)
 

Function Documentation

disp ( 'object_function'  )
disp ( size(x )
disp ( DChi2  )

Variable Documentation

AChi2 = abs((total_E - DataSet(i).E.*E_scale(i))./DataSet(i).DE)

Definition at line 23 of file object_function.m.

View newest version in sPHENIX GitHub at line 23 of file object_function.m

calib_const = x(1:Ndata)

Definition at line 11 of file object_function.m.

View newest version in sPHENIX GitHub at line 11 of file object_function.m

Chi2
Initial value:
= object_function(x, DataSet, SigmaRej)

Definition at line 1 of file object_function.m.

View newest version in sPHENIX GitHub at line 1 of file object_function.m

data = data * calib_const'

Definition at line 19 of file object_function.m.

View newest version in sPHENIX GitHub at line 19 of file object_function.m

DChi2 = sum(AChi2.^2)

Definition at line 25 of file object_function.m.

View newest version in sPHENIX GitHub at line 25 of file object_function.m

E_scale = x((Ndata+1):(Ndata + N_Runs-1))

Definition at line 12 of file object_function.m.

View newest version in sPHENIX GitHub at line 12 of file object_function.m

fix highest energy point for i
Initial value:
= 1:N_Runs
data = DataSet(i).data

Definition at line 15 of file object_function.m.

View newest version in sPHENIX GitHub at line 15 of file object_function.m

Ndata = 20

Definition at line 4 of file object_function.m.

View newest version in sPHENIX GitHub at line 4 of file object_function.m

total_E = sum(data, 2)

Definition at line 21 of file object_function.m.

View newest version in sPHENIX GitHub at line 21 of file object_function.m