00001 #ifndef ECALSIMPLETBANALYZER_H 00002 #define ECALSIMPLETBANALYZER_H 00003 00011 // 00012 // $Id: EcalSimpleTBAnalyzer.h,v 1.5 2010/01/04 15:09:12 ferriff Exp $ 00013 // 00014 00015 00016 00017 // system include files 00018 #include <memory> 00019 00020 // user include files 00021 #include "FWCore/Framework/interface/Frameworkfwd.h" 00022 #include "FWCore/Framework/interface/EDAnalyzer.h" 00023 00024 #include "FWCore/Framework/interface/Event.h" 00025 #include "FWCore/Framework/interface/MakerMacros.h" 00026 00027 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00028 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h" 00029 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h" 00030 #include "DataFormats/EcalDetId/interface/EBDetId.h" 00031 00032 #include <string> 00033 //#include "TTree.h" 00034 #include "TH1.h" 00035 #include "TGraph.h" 00036 #include "TH2.h" 00037 #include<fstream> 00038 #include<map> 00039 //#include<stl_pair> 00040 00041 00042 00043 class EcalSimpleTBAnalyzer : public edm::EDAnalyzer { 00044 public: 00045 explicit EcalSimpleTBAnalyzer( const edm::ParameterSet& ); 00046 ~EcalSimpleTBAnalyzer(); 00047 00048 00049 virtual void analyze( const edm::Event&, const edm::EventSetup& ); 00050 virtual void beginJob(); 00051 virtual void endJob(); 00052 private: 00053 00054 00055 std::string rootfile_; 00056 std::string digiCollection_; 00057 std::string digiProducer_; 00058 std::string hitCollection_; 00059 std::string hitProducer_; 00060 std::string hodoRecInfoCollection_; 00061 std::string hodoRecInfoProducer_; 00062 std::string tdcRecInfoCollection_; 00063 std::string tdcRecInfoProducer_; 00064 std::string eventHeaderCollection_; 00065 std::string eventHeaderProducer_; 00066 00067 // Amplitude vs TDC offset 00068 TH2F* h_ampltdc; 00069 00070 TH2F* h_Shape_; 00071 00072 // Reconstructed energies 00073 TH1F* h_tableIsMoving; 00074 TH1F* h_e1x1; 00075 TH1F* h_e3x3; 00076 TH1F* h_e5x5; 00077 00078 TH1F* h_e1x1_center; 00079 TH1F* h_e3x3_center; 00080 TH1F* h_e5x5_center; 00081 00082 TH1F* h_e1e9; 00083 TH1F* h_e1e25; 00084 TH1F* h_e9e25; 00085 00086 TH1F* h_bprofx; 00087 TH1F* h_bprofy; 00088 00089 TH1F* h_qualx; 00090 TH1F* h_qualy; 00091 00092 TH1F* h_slopex; 00093 TH1F* h_slopey; 00094 00095 TH2F* h_mapx[25]; 00096 TH2F* h_mapy[25]; 00097 00098 TH2F* h_e1e9_mapx; 00099 TH2F* h_e1e9_mapy; 00100 00101 TH2F* h_e1e25_mapx; 00102 TH2F* h_e1e25_mapy; 00103 00104 TH2F* h_e9e25_mapx; 00105 TH2F* h_e9e25_mapy; 00106 00107 EBDetId xtalInBeam_; 00108 }; 00109 00110 00111 00112 #endif