Major update of the physics selection and trigger analysis class