Git Product home page Git Product logo

beta_oslo_unfolding's Introduction

beta_oslo_unfolding

Testing of beta-oslo unfolding things

beta_oslo_unfolding's People

Contributors

jorgenem avatar

Watchers

 avatar  avatar  avatar

Forkers

fzeiser

beta_oslo_unfolding's Issues

Bug the response matrix, at least lowest channel

There is a bug/inconsistency in reading the response matrix. If the bin energies are defined by E_resp_array, then for sun the lowest bin has 10.5 keV. From resp.dat` you find that the FE efficiency is 1 here. However, there are no counts in the first row of the matrix. So where are the FE counts?

# fname_resp = 'resp-Si28-14keV.dat'
# fname_resp_mat = 'response_matrix-Si28-14keV.m'
fname_resp = "resp-sun2015.dat"
fname_resp_mat = "response_matrix-sun2015.m"
R_2D, cal_resp, E_resp_array, tmp = read_mama_2D(fname_resp_mat)
# R_2D = div0(R_2D , R_2D.sum(rebin_axis=1))
E_thres = 100
i_thres = np.argmin(np.abs(E_resp_array - E_thres))
R_2D[:,:i_thres] = 0
for i in range(R_2D.shape[0]):
try:
R_2D[i,:] = R_2D[i,:] / R_2D[i,:].sum()
except:
R_2D[i,:] = 0
# f_cmp, ax_cmp = plt.subplots(1,1)
# ax_cmp.plot(E_resp_array, R_2D[400,:])

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.