00001 #ifndef ECALTBVALIDATION_H 00002 #define ECALTBVALIDATION_H 00003 00004 #include <memory> 00005 #include "FWCore/Framework/interface/Frameworkfwd.h" 00006 #include "FWCore/Framework/interface/EDAnalyzer.h" 00007 #include "FWCore/Framework/interface/Event.h" 00008 #include "FWCore/Framework/interface/MakerMacros.h" 00009 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00010 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h" 00011 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" 00012 #include "DataFormats/EcalDetId/interface/EBDetId.h" 00013 00014 #include "DQMServices/Core/interface/DQMStore.h" 00015 #include "DQMServices/Core/interface/MonitorElement.h" 00016 00017 //#include "TFile.h" 00018 //#include "TH1.h" 00019 //#include "TH2.h" 00020 00021 class EcalTBValidation : public edm::EDAnalyzer { 00022 public: 00023 explicit EcalTBValidation( const edm::ParameterSet& ); 00024 ~EcalTBValidation(); 00025 00026 virtual void analyze( const edm::Event&, const edm::EventSetup& ); 00027 virtual void beginJob(); 00028 virtual void endJob(); 00029 00030 private: 00031 00032 bool verbose_; 00033 DQMStore* dbe_; 00034 00035 int data_; 00036 int xtalInBeam_; 00037 //std::string rootfile_; 00038 std::string digiCollection_; 00039 std::string digiProducer_; 00040 std::string hitCollection_; 00041 std::string hitProducer_; 00042 std::string hodoRecInfoCollection_; 00043 std::string hodoRecInfoProducer_; 00044 std::string tdcRecInfoCollection_; 00045 std::string tdcRecInfoProducer_; 00046 std::string eventHeaderCollection_; 00047 std::string eventHeaderProducer_; 00048 00049 // histos 00050 //TH2F *h_xib, *h_ampltdc, *h_Shape; 00051 //TH1F *h_hodoX, *h_hodoY; 00052 //TH1F *h_e1x1, *h_e3x3, *h_e5x5; 00053 //TH1F *h_e1e9, *h_e1e25, *h_e9e25; 00054 //TH1F *h_e1x1_center, *h_e3x3_center, *h_e5x5_center; 00055 //TH2F *h_e1vsX, *h_e1vsY; 00056 //TH2F *h_e1e9vsX, *h_e1e9vsY; 00057 //TH2F *h_e1e25vsX, *h_e1e25vsY; 00058 //TH2F *h_e9e25vsX, *h_e9e25vsY; 00059 00060 MonitorElement* meETBxib_; 00061 MonitorElement* meETBampltdc_; 00062 MonitorElement* meETBShape_; 00063 MonitorElement* meETBhodoX_; 00064 MonitorElement* meETBhodoY_; 00065 MonitorElement* meETBe1x1_; 00066 MonitorElement* meETBe3x3_; 00067 MonitorElement* meETBe5x5_; 00068 MonitorElement* meETBe1e9_; 00069 MonitorElement* meETBe1e25_; 00070 MonitorElement* meETBe9e25_; 00071 MonitorElement* meETBe1x1_center_; 00072 MonitorElement* meETBe3x3_center_; 00073 MonitorElement* meETBe5x5_center_; 00074 MonitorElement* meETBe1vsX_; 00075 MonitorElement* meETBe1vsY_; 00076 MonitorElement* meETBe1e9vsX_; 00077 MonitorElement* meETBe1e9vsY_; 00078 MonitorElement* meETBe1e25vsX_; 00079 MonitorElement* meETBe1e25vsY_; 00080 MonitorElement* meETBe9e25vsX_; 00081 MonitorElement* meETBe9e25vsY_; 00082 00083 }; 00084 00085 00086 00087 00088 #endif