BCOV ring and holomorphic anomaly equation