Monte Carlo Generator in ROOT and CMSSW