Code migrated from http://cmssw.cvs.cern.ch/cgi-bin/cmssw.cgi/UserCode/ferencek/MyAnalysis/tools/ with the exception of LimitCode/ and ResonanceShapesCode/ subdirectories