Jump to content
Main menu
Main menu
move to sidebar
hide
Navigation
Main page
Recent changes
Random page
Help about MediaWiki
Luter 345 Experiments
Search
Search
Appearance
Create account
Log in
Personal tools
Create account
Log in
Pages for logged out editors
learn more
Contributions
Talk
Editing
ROOT Programs
Page
Discussion
English
Read
Edit
Edit source
View history
Tools
Tools
move to sidebar
hide
Actions
Read
Edit
Edit source
View history
General
What links here
Related changes
Special pages
Page information
Get shortened URL
Appearance
move to sidebar
hide
Warning:
You are not logged in. Your IP address will be publicly visible if you make any edits. If you
log in
or
create an account
, your edits will be attributed to your username, along with other benefits.
The edit appears to have already been undone.
Anti-spam check. Do
not
fill this in!
==ROOT== ===Installing ROOT=== Download ROOT here: * root.cern.ch/drupal/ Set up ROOT on your computer following the documentation given. ===ROOT Analysis=== We wrote a root program that takes in the text files of data saved by hpcbench. It stores the time data for each run and length in a three dimensional array. We used the root function hist to create histograms of each run, including the different paths from computer A to computer B and vice versa. After visually inspecting the data to make sure it was close to a Gaussian curve, we noticed that the data was consistantly longer times in the B-A run. We then used a function getRMS() and getMean() to find the mean and RMS of each histogram and divided the RMS by <math>\sqrt{n}</math> to find the error in the time measurements. <p><pre>mean = hist[][][] -> getMean(); err = hist[][][] -> getRMS();</pre></p> Since the time it took was not just the length of the cable, but rather the time it took to go and come back, the lengths were twice as large as we measured. Both errors were taken into account, the error from measuring the cable and the errors found in the histograms. The error we used for the length measurements were based on the number of times we had to flip the measuring tape around. The errors, and the length measurements, are as follows. <p><pre>double length[5] = {.964*2, 20.764*2, 40.606*2, 60.036*2, 80.474*2}; double lenErr[5] = {.01, .03, .05, .07, .07};</pre></p> We plotted both the mean time and the error in the time and the measurements for each cord length plus the error in the cord measurement using the function TGraphErrors() to create a scatterplot of the data. <p><pre>TGraphErrors *graph = new TGraphErrors(4,lenth,averageTime,lenErr,timeErr);</pre></p> After plotting the data in the scatter plot, we now had to find the speed of light. Since <math>distance = velocity*time</math> so <math> velocity = distance/time </math> We fit the data with a first order polynomial since the equation was linear. <p><pre>graph -> Fit(poly1)</pre></p> We could then find the slope of the line and find the speed of light. Since there was a constant factor of approximately 2/3 that slowed the light down in the cable, we took that into account when calculating our answer.
Summary:
Please note that all contributions to Luter 345 Experiments may be edited, altered, or removed by other contributors. If you do not want your writing to be edited mercilessly, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource (see
Luter 345 Experiments:Copyrights
for details).
Do not submit copyrighted work without permission!
Cancel
Editing help
(opens in new window)