Made a function for calculating G from counting

put analyzeFramesMask and analyzeMask into DataSet.roiMasks.analyze....