Skip to content

Installing ROOT from Source

August 24, 2010
tags: ,

Installing ROOT from Source

* building
* compiling
* installing
* source

Getting the Source

ROOT’s source can be downloaded for each of the releases and unpacked with

gzip -dc root_.source.tar.gz | tar -xf -

Alternatively one can download ROOT’s source from Subversion.
Subversion

Unlike many other projects, ROOT’s trunk is expected to always work. It is a snapshot of the current development; we appreciate feedback and people (you!) using it. The main advantages of using the trunk are:

* you get the most recent features
* you can easily benefit from bug fixes should you find one
* to fix or extend ROOT you can change ROOT’s sources yourself and send the changes (svn diff) as feedback

The trunk can be obtained from our public Subversion repository:

svn co http://root.cern.ch/svn/root/trunk root

A specific tag can be obtained using:

svn co http://root.cern.ch/svn/root/tags/v5-26-00b root-5.26.00b

Getting Ready to Build

To successfully build ROOT a number of prerequisite packages must be installed. Check the prerequisites page for the list of packages needed for your platform.

You may want to compile features into ROOT, which depends on third party libraries. Make sure you meet all demands for additional features before trying to enable them (see below).

Otherwise, before proceeding, read the rest below.
Choosing the installation method

There are two main methods of installing ROOT from source: location independent and location dependent. The former is advised for a personal installation of ROOT, while the later for a system wide installation. Both ways are described below.
Location independent installation

You want to install in a generic directory, depending solely on environment variables PATH and LD_LIBRARY_PATH.

1. Get the sources of the latest ROOT (see above)
2. Type the build commands:

cd root
./configure –help
./configure [] [set arch appropriately if no proper default]
(g)make [or, make -j n for n core machines]

3. Add bin/ to PATH and lib/ to LD_LIBRARY_PATH. For the sh shell family do:

. bin/thisroot.sh

and for the csh shell family do:

source bin/thisroot.csh

4. Try running ROOT:

root

source: http://root.cern.ch/drupal/content/installing-root-source

PYTHIA

August 24, 2010

I will give some useful information for those who wish to run Pythia.
For those who wish to run PYTHIA but haven’t already done it lately, it would be more fruitful for you to go through the following preparation.

1. Go to the PYTHIA webpage: http://www.thep.lu.se/~torbjorn/Pythia.html

2. Download the PYTHIA source file by clicking * The current version of the PYTHIA code (6.4.21)

[you get a Fortran file called: pythia6421.f]

3. Extract the driver code GR@PPA_sample.f from my attachment into the same directory.

4. Generate an executable file by typing g77 -w -o run GR@PPA_sample.f pythia6421.f

(and return, of course! It takes a few minutes to complete.) [The above compiling command "g77" works for my MAC OS X system. If you use Linux, do: f77 -w -o run GR@PPA_sample.f pythia6421.f Otherwise, you need to change the compiling command according to your Fortran compiler, such as f90, f95, f2c, fc, gnu etc. ]

You should now get an executable file called “run”.

5. Run the executable file by typing:
run
(and return)
[In some machine setting, you may need to type ./run ]

If you succeed in every step, you should be pleased to see something on your screen. (Wait for a minute for the final result). The last step is to try to make sense out of it.

Latex Equation in Physics

March 1, 2010

m \ddot{x} = \underbrace{-k x}_{\text{Hooke’s law}} – \underbrace{b \dot{x}}_{\text{\color{red}friction}}

m \ddot{x} = \underbrace{-k x}_{\text{Hooke's law}}-\underbrace{b \dot{x}}_{\text{\color{red}friction}}

PDG: physics constants

February 27, 2010

Looking beyond the LHC

February 27, 2010

Looking beyond the LHC

Earlier this year more than 100 experimentalists, theorists and machine physicists gathered at a CERN Theory Institute to investigate the impact of early LHC data on the field of particle physics, with particular focus on future accelerators and experiments.

Résumé

Du LHC à un futur collisionneur

Plus de cent physiciens – expérimentateurs, théoriciens ou physiciens des accélérateurs – ont participé à un séminaire au CERN pour étudier l’incidence des premières données du LHC sur la préparation des futurs accélérateurs et expériences. Le but était de donner à la communauté de la physique des particules des outils pour fixer des priorités entre les options. Des résultats inédits dans les premières données du LHC ouvriront des perspectives stimulantes, qui devront être explorées par une nouvelle grande machine. Afin de tirer parti au mieux des possibilités, la communauté de la physique des particules devra s’unir et motiver par des arguments solides la construction d’une telle machine. Le séminaire était l’occasion d’en discuter dès à présent, avant qu’on ne dispose des premiers résultats du LHC.

Fig. 1.
Fig. 1.

Read more…

Exercises on High Energy Physics

February 27, 2010

Exercises on High Energy Physics

Contents

Constants and Formula used in High Energy Physics

Exercise 1 – Atoms

Exercise 2 – Nuclei

Exercise 3 – Particle Waves and Relativity

Exercise 4 – Virtual Particles

Exercise 5 – Accelerators

Exercise 6 – Particle Beam


Physics today

February 27, 2010

Physics, physique, physik, …

Follow

Get every new post delivered to your Inbox.