Code to produce and ntuplize MC for the HGCAL project