addressing comments 1-3 of Pavel: protecting against unset parameter and removing comments
enable running on AOD or MiniAOD, depending on flag
removing comment