Bunch of functions and scripts related to physics analysis.