To measure the precise position of beam strike on the front and back chamber and the number of beams passed through the middle block

Then one of the “Current and Flux Scorers” documented in the Application Developer’s Guide will probably be suitable. See the Basic Examples B3a/B3b for use of primitive scorers.