I the early days of Mu2e we wrote event generator modules to include histotgrams that document the generator's actions. We now prefer separate modules - a clean generator module and an accompanying analyzer module. The reason is that this makes it possible to run just the analyzer module and point it at an existing data product.
There are some event generators that still are organized the old way. One example is:
https://github.com/Mu2e/Offline/blob/main/EventGenerator/src/RPCGun_module.cc
As I discover more I will edit this comment to add them (and to mark then as resolved when they are resolved ).