Update pgsAnalysis.C