Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:27:55

0001 #ifndef ECALSIMPLETBANALYZER_H
0002 #define ECALSIMPLETBANALYZER_H
0003 
0004 /**\class EcalSimpleTBAnalyzer
0005 
0006  Description: <one line class summary>
0007 
0008  Implementation:
0009      <Notes on implementation>
0010 */
0011 //
0012 //
0013 
0014 // system include files
0015 #include <memory>
0016 
0017 // user include files
0018 #include "FWCore/Framework/interface/Frameworkfwd.h"
0019 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0020 
0021 #include "FWCore/Framework/interface/Event.h"
0022 #include "FWCore/Framework/interface/MakerMacros.h"
0023 
0024 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0025 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h"
0026 #include "DataFormats/EcalRecHit/interface/EcalRecHitCollections.h"
0027 #include "DataFormats/EcalDetId/interface/EBDetId.h"
0028 
0029 #include <string>
0030 //#include "TTree.h"
0031 #include "TH1.h"
0032 #include "TGraph.h"
0033 #include "TH2.h"
0034 #include <fstream>
0035 #include <map>
0036 //#include<stl_pair>
0037 
0038 class EcalSimpleTBAnalyzer : public edm::one::EDAnalyzer<> {
0039 public:
0040   explicit EcalSimpleTBAnalyzer(const edm::ParameterSet&);
0041   ~EcalSimpleTBAnalyzer() override;
0042 
0043   void analyze(const edm::Event&, const edm::EventSetup&) override;
0044   void beginJob() override;
0045   void endJob() override;
0046 
0047 private:
0048   std::string rootfile_;
0049   std::string digiCollection_;
0050   std::string digiProducer_;
0051   std::string hitCollection_;
0052   std::string hitProducer_;
0053   std::string hodoRecInfoCollection_;
0054   std::string hodoRecInfoProducer_;
0055   std::string tdcRecInfoCollection_;
0056   std::string tdcRecInfoProducer_;
0057   std::string eventHeaderCollection_;
0058   std::string eventHeaderProducer_;
0059 
0060   // Amplitude vs TDC offset
0061   TH2F* h_ampltdc;
0062 
0063   TH2F* h_Shape_;
0064 
0065   // Reconstructed energies
0066   TH1F* h_tableIsMoving;
0067   TH1F* h_e1x1;
0068   TH1F* h_e3x3;
0069   TH1F* h_e5x5;
0070 
0071   TH1F* h_e1x1_center;
0072   TH1F* h_e3x3_center;
0073   TH1F* h_e5x5_center;
0074 
0075   TH1F* h_e1e9;
0076   TH1F* h_e1e25;
0077   TH1F* h_e9e25;
0078 
0079   TH1F* h_bprofx;
0080   TH1F* h_bprofy;
0081 
0082   TH1F* h_qualx;
0083   TH1F* h_qualy;
0084 
0085   TH1F* h_slopex;
0086   TH1F* h_slopey;
0087 
0088   TH2F* h_mapx[25];
0089   TH2F* h_mapy[25];
0090 
0091   TH2F* h_e1e9_mapx;
0092   TH2F* h_e1e9_mapy;
0093 
0094   TH2F* h_e1e25_mapx;
0095   TH2F* h_e1e25_mapy;
0096 
0097   TH2F* h_e9e25_mapx;
0098   TH2F* h_e9e25_mapy;
0099 
0100   EBDetId xtalInBeam_;
0101 };
0102 
0103 #endif