add AutoPAG class to do pt analysis