- #1
krishnas
- 2
- 0
Hi all, I'm trying to construct a histogram from my data to illustrate evidence of muon lifetime. Attached is a .txt file that contains counts from our detector that correspond to different bin sizes (lengths of time muons were counted in detector) from our experiment. The file is 1x500 (containing a verticle list of 500 events)
Each bin size is 20 ns. For example, the first entry corresponds to 0-20ns bin, the second 20-40ns, the third 40-60ns and so on.
Given this information, how would I do the following in mathematica?
1. constuct a scaled histogram of the events
2. Best fit an equation for exponential decay of the form y=A*EXP[-Bx] +C
3. create a log plot of the data giving a linear line and slope (giving muon lifetime).
I'm at a loss how to code for this, I know the reasoning behind everything but this seems like the easiest way to go about it(mathematica) and I am not well versed. Anyone have any insight??
Each bin size is 20 ns. For example, the first entry corresponds to 0-20ns bin, the second 20-40ns, the third 40-60ns and so on.
Given this information, how would I do the following in mathematica?
1. constuct a scaled histogram of the events
2. Best fit an equation for exponential decay of the form y=A*EXP[-Bx] +C
3. create a log plot of the data giving a linear line and slope (giving muon lifetime).
I'm at a loss how to code for this, I know the reasoning behind everything but this seems like the easiest way to go about it(mathematica) and I am not well versed. Anyone have any insight??
Attachments
Last edited: