modify AutoMaticTopProducer for global tag function and runOnMC option