User:Jake Mokris: Difference between revisions

From Advanced Labs Wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
(17 intermediate revisions by the same user not shown)
Line 1: Line 1:
I plan on writing a set of user-friendly classes that use [http://root.cern.ch ROOT] to conduct the data analysis required in the experiments. Links to the macros are forthcoming... for now, here's the base program: [[media: bla.txt]]. Obviously you'll want to change the extension to .C; apparently the Wiki doesn't let us upload .C files. I'm teaching myself C++ as I do this, so I imagine my program could be written a bit better. I'll try to comment as much as I can so that what the program is doing makes sense.  
I had planned on writing a set of user-friendly classes that use [http://root.cern.ch ROOT] to conduct the data analysis required in the experiments. But now we're all using the Enthought package to write our own fitting programs.  


I finished writing a program to fit the Franck-Hertz data; here it is: [[Media:Franck_Hertz_Analysis.txt]]. Again, change the extension to .C before running the program. I explain how it works in the comments before the code, so here I'll say what the result was: The fit worked better than I expected; however, as the program fits the data to gaussians, the peaks are a small distance from the actual peaks in the data - which is where the energy levels are. So really, the fit is inherently flawed: it doesn't give a good value for the location of the peaks. A fit to skewed gaussians (perhaps to a lognormal distribution) would work better.
Anyway, here's the base ROOT program I wrote: [[media: bla.txt]]. Obviously you'll want to change the extension to .C; apparently the Wiki doesn't let us upload .C files. I'm teaching myself C++ as I do this, so I imagine my program could be written a bit better. I'll try to comment as much as I can so that what the program is doing makes sense.  


Also, since what we're after in the data is the distance between peaks - i.e., the period - taking the Fourier transform of the data might be a good idea. I haven't worked on that yet, and I don't know much about the actual implementation of a Fourier transform (though I could tell you all about Schwartz space (which has nothing to do with ''Spaceballs'')).  
 
Here are my pages for each experiment:
 
*[http://ccwiki.pha.jhu.edu/advlab_wiki/index.php/User:Jake_Mokris/Franck-Hertz Franck-Hertz Experiment]
*[http://ccwiki.pha.jhu.edu/advlab_wiki/index.php/User:Jake_Mokris/Hall_Effect Hall Effect]
*[http://ccwiki.pha.jhu.edu/advlab_wiki/index.php/User:Jake_Mokris/NMR_Experiment NMR Experiment]





Latest revision as of 22:16, 1 April 2011

I had planned on writing a set of user-friendly classes that use ROOT to conduct the data analysis required in the experiments. But now we're all using the Enthought package to write our own fitting programs.

Anyway, here's the base ROOT program I wrote: media: bla.txt. Obviously you'll want to change the extension to .C; apparently the Wiki doesn't let us upload .C files. I'm teaching myself C++ as I do this, so I imagine my program could be written a bit better. I'll try to comment as much as I can so that what the program is doing makes sense.


Here are my pages for each experiment:


FIRST WITCH

When shall we three meet again In thunder, lightning, or in rain?


LADY MACBETH

O, never Shall sun that morrow see! Your face, my thane, is as a book where men May read strange matters.


MACBETH

Who can be wise, amazed, temperate and furious, Loyal and neutral, in a moment?


MACBETH

How now, you secret, black, and midnight hags! What is't you do?

ALL

A deed without a name.


MACBETH

Thou comest to use thy tongue; thy story quickly.

MESSENGER

Gracious my lord, I should report that which I say I saw, But know not how to do it.