00001 #ifndef _ChargedHadronSpectra_PlotEcalRecHits_h_ 00002 #define _ChargedHadronSpectra_PlotEcalRecHits_h_ 00003 00004 #include <fstream> 00005 00006 namespace edm { class Event; class EventSetup; } 00007 class CaloCellGeometry; 00008 class CaloGeometry; 00009 00010 class PlotEcalRecHits 00011 { 00012 public: 00013 explicit PlotEcalRecHits(const edm::EventSetup & es, std::ofstream & file_); 00014 ~PlotEcalRecHits(); 00015 00016 void printEcalRecHits(const edm::Event& ev); 00017 00018 private: 00019 void printEcalRecHit (const CaloCellGeometry* cell, float energy); 00020 00021 std::ofstream & file; 00022 const CaloGeometry * theCaloGeometry; 00023 }; 00024 00025 #endif