package to extrackt the kfactor for each individual event.