Source: http://dpnc.unige.ch/~mermod/Teaching/TP3_ROOT/CoursROOTMermod12.pdf