Mac, Unix and physics programs Magne Guttormsen Department of Physics and SAFE

11
Mac, Unix and physics programs Magne Guttormsen Department of Physics and SAFE University of Oslo

description

Mac, Unix and physics programs Magne Guttormsen Department of Physics and SAFE University of Oslo. Mac commands. Use Finder to inspect your file system. Cmd F, find a file name or content of a file Cmd , change screen Cmd I, information about file/folder - PowerPoint PPT Presentation

Transcript of Mac, Unix and physics programs Magne Guttormsen Department of Physics and SAFE

Page 1: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Mac, Unix and

physics programs

Magne GuttormsenDepartment of Physics and SAFE

University of Oslo

Page 2: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

Mac commands

●Cmd F, find a file name or content of a file

●Cmd , change screen

●Cmd I, information about file/folder

●Cmd ->| (tab), see running programs

●Cmd <- (back space), put file in trash

●Cmd K, mount a directory, e.g. smb://tid.uio.no/ or afp://safe-mac-01.uio.no

Use Finder to inspect your file system

Page 3: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

Mac set-up

To changesettings, click on SystemPreferences

Page 4: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

Hidden Unix

●Open a terminal (or X-terminal)

●Here, you can use Unix commands: ls, cd, cmd...

●Hidden dot-files, like .bashrc, is seen by ls -la in your home directory called e.g. /Users/magneg

●Go to desktop by cd Desktop, or programs by cd /Applications

●Unix programs starts by typing e.g. mama. Mac programs are started by clicking the icon (if you hate clicking, write e.g. open /Applications/Calculator.app)

Page 5: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

Organizing

●Drag your favourite icons to the dock

●Use View menu in Finder to organize the Desktop

●Make folders within e.g. Documents, to organize your documents etc.

Page 6: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

More Mac help

●USIT web pages: http://www.usit.uio.no/it/mac/

●Apple Norway: http://www.apple.com/no/

●Ask a friend

●Help menu on your Mac:

Page 7: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

More than 7000 Fink programs

●Web site: http://www.finkproject.org/

●All Unix Open source software for MacOs

●Some commands in Terminal window:

●Search for a program: fink list latex

●Update your database: fink selfupdate

●Update all old programs: fink update-all

●Install new package: fink install latex-make

Page 8: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

Run offline

●Type offline in a terminal window where your event files are located

●Load your sorting function

●Use Tape menu to select Disk file

●Use Spectra menu to Clear spectra

●Push I to get info

●Push Run, Sort, Files... to start

●When finished, push Dump

Page 9: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

Sorting essentials

●The dE and E energies for each event are read from the event file

●These are sorted into dE-E bananas by pointers

/* ****************************************************** *//* Banana matrices ALFNA and ALFGE fpr telescopes 1 and 5 *//* ****************************************************** */

if(telenu==1 && de<512 ){++*(pansp+e+de*2048);

}if(telenu==5 && de<512 ){

++*(pagsp+e+de*2048);}

Page 10: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Nuclear Physics Group seminars, Oslo 11th Nov. 2008

Run mama

Type mama in a terminal window

Page 11: Mac, Unix  and  physics programs Magne Guttormsen Department of Physics and SAFE

Summary●This was just a start...

●Several programs are essential for the Oslo method:

●Data taking: eventbuilder, sirius, spy, update

●Offline analyses: reduc, offline, kin, mama, root, paw

●Interpretation: fitone, robin, normalization, d2rho, counting, rhosigchi, thermo, combi, ...

●Other tools: c, c++, g95, latex , Excel, Word, Adobe, ...