An EDAnalyzer for particle flow reconstruction