How to set the PrimaryGeneratorAction to ensure a certain dose satisfy

I want wo know how to achive a certain dose of Primary particles. Thank you for your help!