00001 #ifndef Validation_EcalClusters_EgammaSuperClusters_h 00002 #define Validation_EcalClusters_EgammaSuperClusters_h 00003 00011 // 00012 // $Id: EgammaSuperClusters.h,v 1.7 2008/06/17 12:27:24 ferriff Exp $ 00013 // 00014 #include <string> 00015 00016 #include "FWCore/Framework/interface/Event.h" 00017 #include "FWCore/Framework/interface/EDAnalyzer.h" 00018 #include "FWCore/Framework/interface/Frameworkfwd.h" 00019 #include "FWCore/Framework/interface/MakerMacros.h" 00020 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00021 00022 #include "DQMServices/Core/interface/DQMStore.h" 00023 #include "DQMServices/Core/interface/MonitorElement.h" 00024 00025 class EgammaSuperClusters : public edm::EDAnalyzer 00026 { 00027 public: 00028 explicit EgammaSuperClusters( const edm::ParameterSet& ); 00029 ~EgammaSuperClusters(); 00030 00031 virtual void analyze( const edm::Event&, const edm::EventSetup& ); 00032 virtual void beginJob(edm::EventSetup const&); 00033 virtual void endJob(); 00034 00035 private: 00036 std::string outputFile_; 00037 std::string CMSSW_Version_; 00038 00039 bool verboseDBE_; 00040 DQMStore* dbe_; 00041 00042 edm::InputTag MCTruthCollection_; 00043 edm::InputTag barrelSuperClusterCollection_; 00044 edm::InputTag endcapSuperClusterCollection_; 00045 edm::InputTag barrelRecHitCollection_; 00046 edm::InputTag endcapRecHitCollection_; 00047 00048 MonitorElement* hist_EB_SC_Size_; 00049 MonitorElement* hist_EE_SC_Size_; 00050 00051 double hist_min_Size_; 00052 double hist_max_Size_; 00053 int hist_bins_Size_; 00054 00055 MonitorElement* hist_EB_SC_NumBC_; 00056 MonitorElement* hist_EE_SC_NumBC_; 00057 00058 double hist_min_NumBC_; 00059 double hist_max_NumBC_; 00060 int hist_bins_NumBC_; 00061 00062 MonitorElement* hist_EB_SC_ET_; 00063 MonitorElement* hist_EE_SC_ET_; 00064 00065 double hist_min_ET_; 00066 double hist_max_ET_; 00067 int hist_bins_ET_; 00068 00069 MonitorElement* hist_EB_SC_Eta_; 00070 MonitorElement* hist_EE_SC_Eta_; 00071 00072 double hist_min_Eta_; 00073 double hist_max_Eta_; 00074 int hist_bins_Eta_; 00075 00076 MonitorElement* hist_EB_SC_Phi_; 00077 MonitorElement* hist_EE_SC_Phi_; 00078 00079 double hist_min_Phi_; 00080 double hist_max_Phi_; 00081 int hist_bins_Phi_; 00082 00083 MonitorElement* hist_EB_SC_S1toS9_; 00084 MonitorElement* hist_EE_SC_S1toS9_; 00085 00086 double hist_min_S1toS9_; 00087 double hist_max_S1toS9_; 00088 int hist_bins_S1toS9_; 00089 00090 MonitorElement* hist_EB_SC_S25toE_; 00091 MonitorElement* hist_EE_SC_S25toE_; 00092 00093 double hist_min_S25toE_; 00094 double hist_max_S25toE_; 00095 int hist_bins_S25toE_; 00096 00097 MonitorElement* hist_EB_SC_EToverTruth_; 00098 MonitorElement* hist_EE_SC_EToverTruth_; 00099 00100 double hist_min_EToverTruth_; 00101 double hist_max_EToverTruth_; 00102 int hist_bins_EToverTruth_; 00103 00104 MonitorElement* hist_EB_SC_deltaEta_; 00105 MonitorElement* hist_EE_SC_deltaEta_; 00106 00107 double hist_min_deltaEta_; 00108 double hist_max_deltaEta_; 00109 int hist_bins_deltaEta_; 00110 00111 float ecalEta(float EtaParticle , float Zvertex, float plane_Radius); 00112 }; 00113 #endif