CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/RecoEcal/EgammaClusterProducers/interface/EgammaSimpleAnalyzer.h

Go to the documentation of this file.
00001 #ifndef RecoEcal_EgammaClusterProducers_EgammaSimpleAnalyzer_h
00002 #define RecoEcal_EgammaClusterProducers_EgammaSimpleAnalyzer_h
00003 
00010 //
00011 // $Id: EgammaSimpleAnalyzer.h,v 1.8 2009/12/18 20:45:01 wmtan Exp $
00012 //
00013 
00014 
00015 // system include files
00016 #include <memory>
00017 
00018 // user include files
00019 #include "FWCore/Framework/interface/Frameworkfwd.h"
00020 #include "FWCore/Framework/interface/EDAnalyzer.h"
00021 
00022 #include "FWCore/Framework/interface/Event.h"
00023 #include "FWCore/Framework/interface/MakerMacros.h"
00024 
00025 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00026 
00027 #include <string>
00028 #include "TH1.h"
00029 class TFile;
00030 
00031 //
00032 // class declaration
00033 //
00034 
00035 class EgammaSimpleAnalyzer : public edm::EDAnalyzer {
00036    public:
00037       explicit EgammaSimpleAnalyzer( const edm::ParameterSet& );
00038       ~EgammaSimpleAnalyzer();
00039 
00040 
00041       virtual void analyze( const edm::Event&, const edm::EventSetup& );
00042       virtual void beginJob();
00043       virtual void endJob();
00044  private:
00045 
00046       std::string outputFile_; // output file
00047 
00048       std::string islandBarrelBasicClusterCollection_;
00049       std::string islandBarrelBasicClusterProducer_;
00050       std::string islandBarrelBasicClusterShapes_;
00051 
00052       std::string islandEndcapBasicClusterCollection_;
00053       std::string islandEndcapBasicClusterProducer_;
00054       std::string islandEndcapBasicClusterShapes_;
00055 
00056       std::string islandEndcapSuperClusterCollection_;
00057       std::string islandEndcapSuperClusterProducer_;
00058 
00059       std::string correctedIslandEndcapSuperClusterCollection_;
00060       std::string correctedIslandEndcapSuperClusterProducer_;
00061 
00062       std::string hybridSuperClusterCollection_;
00063       std::string hybridSuperClusterProducer_;
00064 
00065       std::string correctedHybridSuperClusterCollection_;
00066       std::string correctedHybridSuperClusterProducer_;
00067 
00068       // root file to store histograms
00069       TFile*  rootFile_;
00070 
00071       // min and max of energy histograms
00072       double xMinHist_;
00073       double xMaxHist_;
00074       int    nbinHist_;
00075 
00076       // data members for histograms to be filled
00077 
00078       // per event quantities
00079       TH1F* h1_nIslandEBBC_;
00080       TH1F* h1_nIslandEEBC_;
00081       TH1F* h1_nIslandEESC_;
00082       TH1F* h1_nHybridSC_;
00083 
00084       TH1F* h1_islandEBBCe9over25_;
00085       TH1F* h1_islandEBBCe5x5_;
00086       TH1F* h1_islandEBBCEnergy_;
00087       TH1F* h1_islandEBBCXtals_;
00088 
00089       TH1F* h1_islandEEBCe5x5_;
00090       TH1F* h1_islandEEBCEnergy_;
00091       TH1F* h1_islandEEBCXtals_;
00092 
00093       TH1F* h1_islandEESCEnergy_;
00094       TH1F* h1_corrIslandEESCEnergy_;
00095       TH1F* h1_corrIslandEESCET_;
00096       TH1F* h1_islandEESCClusters_;
00097 
00098       TH1F* h1_hybridSCEnergy_;
00099       TH1F* h1_corrHybridSCEnergy_;
00100       TH1F* h1_corrHybridSCET_;
00101       TH1F* h1_corrHybridSCEta_;
00102       TH1F* h1_corrHybridSCPhi_;
00103       TH1F* h1_hybridSCClusters_;
00104 
00105 };
00106 #endif