A set of useful C++ scripts for LHC analyses