fix data type of set_pixel()
change structure of hit_generator to the two different modules types
add the functionality to the MPA front end chip