You are here: Foswiki>HAWC Web>NickDagher (revision 14)EditAttach

October 27th 2014- Getting Acquainted

November 18

  • After having trouble dool booting linux i have decieded to use a virtual macheine software to launch linux
  • I have downloaded and am able to succesfull access linux now

Dual booting Linux with windows 8

  • In order to use pythia I am going to dual boot ubuntu on to my computer. I have followed the instructions from this website
  • In order to do this you need 2 usbs, (I used 16 gb to make sure i had enough space) and an external hard drive (you really just need anything that will back up your personal files)
  • The main steps that I took were
    • create a recovery drive with one of the usbs
    • back up all personal files onto an external hard drive
    • Install ubuntu from their website
    • Install the driver that will put ubuntu on too the 2nd usb
    • turn off fast boot option
    • turn off secure boot, for help see https://neosmart.net/wiki/disabling-secure-boot/

Running and compiling fortran code

Pythia 8

  • In order to run a file type( from the worksheet file, can be found on the pythia website)
    • make mainNN
    • ./mainNN.exe > mainNN.out

Root

for the linux cluster use
Browser
  • TBrowser b to open a browser
  • TFile myfile("filename")

Installing root

    • went to the root website and went to downloads tab and clicked patches v5-34-00. Downloaded the source link* after downloading the source link and extracting the files run "./configure" and install any needed required packages, use the website for assistance
    • After you run configure after installing necessary packages. run "make" in the terminal and then run "make install"
Plotting functions
  • TF2 f1("func1",thefunction,xmin,xmax,ymin,ymax)
  • then next line type f2.Draw() use "surf1" for a surface plot
Plotting Histograms
  • TH1D h1("rootname",title,#ofbins,binmin,binmax)
    • This creats an empty histogram, we must fill it
    • h1 is the c++ name and hist1 is the root name
    • use h1.FillRandom("gauss",10000) to fill it with 10000 points of data fraom the functions "guass"
  • TF1 myfunc("myfunc",
  • hist1 is the root name of this histogram
  • h1.GetBinWidth(0) to get the bin width
  • TF1 myfunc("myfunc","gaus",0,3)
    • myfunc.SetParameters(10.,1.0,0.5) to set P0,P1,P2 the parameters of the gaussian function "Constant" "Mean and "sigma"
pointers
  • TH1D *hist1 = new TH1D ("h1","a histogram",100,-3,3)
  • this creates a pointer
Plotting N-tuples/trees
  • tree1->Scan() runs like 25 events
  • tree1->Print() it displays the names of the variables and the size of the tree
  • tree1->Draw("variableyouwant") makes a histogram for a variable in the tree

Breaking Homer

  • HW scalers tab
    • If you click anywhere on the color changing key on the right or one of the 4 example circles labeled 0,20,40,60 then you need to refresh the page in order to click on anything else.
    • If you click on the tank and not the dots in the tank then you need to refresh in order to click on anything else
    • when hovering over a tank it displays the last time updated but not the range in time the graph displays. maybe add the range and make the graph bigger if your hovering over
    • Once you click on a dot and the graph displays it is kind of small so a zoom option would be usefull *
Edit | Attach | Print version | History: r40 | r15 < r14 < r13 < r12 | Backlinks | View wiki text | Edit WikiText | More topic actions...
Topic revision: r14 - 27 May 2015, NickDagher
 

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding Foswiki? Send feedback