00001 #ifndef ESRecoSummary_h 00002 #define ESRecoSummary_h 00003 00004 // system include files 00005 #include <memory> 00006 00007 // user include files 00008 #include "FWCore/Framework/interface/Frameworkfwd.h" 00009 #include "FWCore/Framework/interface/EDAnalyzer.h" 00010 00011 #include "FWCore/Framework/interface/ESHandle.h" 00012 #include "FWCore/Framework/interface/Event.h" 00013 #include "FWCore/Framework/interface/MakerMacros.h" 00014 00015 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00016 #include "FWCore/ServiceRegistry/interface/Service.h" 00017 #include "CommonTools/UtilAlgos/interface/TFileService.h" 00018 00019 // DQM includes 00020 #include "DQMServices/Core/interface/DQMStore.h" 00021 #include "DQMServices/Core/interface/MonitorElement.h" 00022 00023 // ROOT include 00024 #include "TFile.h" 00025 #include "TH1.h" 00026 #include "TH2.h" 00027 #include "TProfile.h" 00028 #include "TProfile2D.h" 00029 00030 00031 // Less than operator for sorting EcalRecHits according to energy. 00032 class ecalRecHitLess : public std::binary_function<EcalRecHit, EcalRecHit, bool> 00033 { 00034 public: 00035 bool operator()(EcalRecHit x, EcalRecHit y) 00036 { 00037 return (x.energy() > y.energy()); 00038 } 00039 }; 00040 00041 00042 class ESRecoSummary : public edm::EDAnalyzer { 00043 00044 public: 00045 explicit ESRecoSummary(const edm::ParameterSet&); 00046 ~ESRecoSummary(); 00047 00048 00049 private: 00050 virtual void beginJob() ; 00051 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00052 virtual void endJob() ; 00053 00054 // DQM Store ------------------- 00055 DQMStore* dqmStore_; 00056 00057 std::string prefixME_; 00058 00059 // PRESHOWER ---------------------------------------------- 00060 MonitorElement* h_recHits_ES_energyMax; 00061 MonitorElement* h_recHits_ES_time; 00062 00063 MonitorElement* h_esClusters_energy_plane1; 00064 MonitorElement* h_esClusters_energy_plane2; 00065 MonitorElement* h_esClusters_energy_ratio; 00066 00067 protected: 00068 00069 00070 // ----------member data --------------------------- 00071 edm::InputTag superClusterCollection_EE_; 00072 edm::InputTag esRecHitCollection_; 00073 edm::InputTag esClusterCollectionX_ ; 00074 edm::InputTag esClusterCollectionY_ ; 00075 00076 00077 }; 00078 00079 00080 #endif