CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_0/src/RecoTBCalo/EcalSimpleTBAnalysis/interface/EcalSimple2007H4TBAnalyzer.h

Go to the documentation of this file.
00001 #ifndef ECALSIMPLE2007H4TBANALYZER_H
00002 #define ECALSIMPLE2007H4TBANALYZER_H
00003 
00011 //
00012 // $Id: EcalSimple2007H4TBAnalyzer.h,v 1.2 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/EEDetId.h"
00031 
00032 #include "Geometry/CaloGeometry/interface/CaloGeometry.h"
00033 
00034 #include <string>
00035 //#include "TTree.h"
00036 #include "TH1.h"
00037 #include "TGraph.h"
00038 #include "TH2.h"
00039 #include<fstream>
00040 #include<map>
00041 //#include<stl_pair>
00042 
00043 
00044 
00045 class EcalSimple2007H4TBAnalyzer : public edm::EDAnalyzer {
00046    public:
00047       explicit EcalSimple2007H4TBAnalyzer( const edm::ParameterSet& );
00048       ~EcalSimple2007H4TBAnalyzer();
00049 
00050 
00051       virtual void analyze( edm::Event const &, edm::EventSetup const & );
00052       virtual void beginRun(edm::Run const &, edm::EventSetup const&);
00053       virtual void endJob();
00054  private:
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_S6; 
00087       TH1F* h_bprofx; 
00088       TH1F* h_bprofy; 
00089       
00090       TH1F* h_qualx; 
00091       TH1F* h_qualy; 
00092       
00093       TH1F* h_slopex; 
00094       TH1F* h_slopey; 
00095       
00096       TH2F* h_mapx[25]; 
00097       TH2F* h_mapy[25]; 
00098 
00099       TH2F* h_e1e9_mapx;
00100       TH2F* h_e1e9_mapy;
00101 
00102       TH2F* h_e1e25_mapx;
00103       TH2F* h_e1e25_mapy;
00104 
00105       TH2F* h_e9e25_mapx;
00106       TH2F* h_e9e25_mapy;
00107 
00108       EEDetId xtalInBeam_;
00109       EBDetId xtalInBeamTmp;
00110       EEDetId Xtals5x5[25];
00111 
00112       const CaloGeometry* theTBGeometry_;
00113 };
00114 
00115 
00116 
00117 #endif