hyperfunk/mastercode-tools — pull request #44 by keesjandevries (2012-08-26 14:18:44+00:00)
Title: Ssi

Hi Sam,

This is the large pull request that I announced a week ago. I think it makes most sense to have a look at `modules/histogram_processing.py`, and see what the functionalities are from there.

The major improvements:
1) KOhack: This is big. I made a class, which allows one to have all the information in one object, en pass it to functions and so on. I think this is the best solution. You will see that it gets switched on and off, depending on the plot in the for loops. This class is also spread into other classes, like mcspace. Good news is that I consistently used KOhack, so that if you type 'git grep KOhack', you should get most of the places where it appears.

2) in order to get the log scales right, also at the level of DataHistos.py (and related functions), I made a function that initialises the histograms, as opposed to copying the histograms&properties from the root file. This is mainly to make sure that the log scales are treated correctly.

3) A nice new functionality: smoothing with the ROOT smoothing functionality. For every histo you can specify what to smooth. It will become obvious if you look at config/smooth_coordinates.py

Please take a look if you have time. I really apologise for not updating regularly and dumping everything in one big pull request. The good news is that you only get to see the final ( m_neu, ssi ) plot machinery, i.e. the KOhack, rather than all the iterations :p

Looking forward to developing MC++ now!

CHeers,
Kees