CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_9_patch3/src/Calibration/EcalAlCaRecoProducers/interface/AlCaECALRecHitReducer.h

Go to the documentation of this file.
00001 #ifndef _ALCAECALRECHITREDUCER_H
00002 #define _ALCAECALRECHITREDUCER_H
00003 
00004 // -*- C++ -*-
00005 //
00006 // Package:    AlCaECALRecHitReducer
00007 // Class:      AlCaECALRecHitReducer
00008 // 
00017 //
00018 // Original Author:  Lorenzo AGOSTINO
00019 //         Created:  Mon Jul 17 18:07:01 CEST 2006
00020 // $Id: AlCaECALRecHitReducer.h,v 1.1 2012/07/12 18:49:41 shervin Exp $
00021 //
00022 //
00023 
00024 
00025 // system include files
00026 #include <memory>
00027 
00028 // user include files
00029 #include "FWCore/Framework/interface/Frameworkfwd.h"
00030 #include "FWCore/Framework/interface/EDProducer.h"
00031 
00032 #include "FWCore/Framework/interface/Event.h"
00033 #include "FWCore/Framework/interface/MakerMacros.h"
00034 #include "FWCore/Utilities/interface/InputTag.h"
00035 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00036 
00037 //PG #include "TH2.h"
00038 //PG #include "TFile.h"
00039 //PG #include "TCanvas.h"
00040 
00044 
00045 class AlCaECALRecHitReducer : public edm::EDProducer {
00046    public:
00048       explicit AlCaECALRecHitReducer(const edm::ParameterSet&);
00049       ~AlCaECALRecHitReducer();
00050 
00051  
00052 //PG       void beginJob (const edm::EventSetup&)
00053 //PG         {
00054 //PG           std::cerr << "saveTest beginJob" << std::endl ;
00055 //PG           m_failMap = new TH2F ("failMap","failMap",100,0,100,100,0,100) ;
00056 //PG           std::cerr << "saveTest beginJob " << m_failMap->GetEntries () << std::endl ;
00057 //PG         }
00059       virtual void produce(edm::Event &, const edm::EventSetup&);
00060 //PG       void endJob () 
00061 //PG         {
00062 //PG           std::cerr << "saveTest endJob" << std::endl ;
00063 //PG           TCanvas c1 ;
00064 //PG           c1.cd () ;
00065 //PG           m_failMap->Draw ("BOX") ;
00066 //PG           c1.Print ("fail.eps","eps") ;
00067 //PG           TDirectory * curr = gDirectory ;
00068 //PG           TFile * saveTest = new TFile ("fail.root","recreate") ;
00069 //PG           saveTest->cd () ;
00070 //PG           m_failMap->Write () ;
00071 //PG           curr->cd () ;
00072 //PG           saveTest->Close () ;
00073 //PG         }
00074 
00075    private:
00076       // ----------member data ---------------------------
00077 
00078   
00079   edm::InputTag ebRecHitsLabel_;
00080   edm::InputTag eeRecHitsLabel_;
00081   edm::InputTag esRecHitsLabel_;
00082   edm::InputTag electronLabel_;
00083   std::string alcaBarrelHitsCollection_;
00084   std::string alcaEndcapHitsCollection_;
00085   std::string alcaPreshowerHitsCollection_;
00086   int etaSize_;
00087   int phiSize_;
00088   float weight_;
00089   int esNstrips_;
00090   int esNcolumns_;
00091 
00092   bool selectByEleNum_;
00093   int minEleNumber_;
00094   double minElePt_;
00095 
00096 //PG  TH2F * m_failMap ;
00097 
00098 };
00099 
00100 #endif