CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10/src/SimCalorimetry/EcalTrigPrimProducers/plugins/EcalTPInputAnalyzer.h

Go to the documentation of this file.
00001 #ifndef EcalTPInputAnalyzer_h
00002 #define EcalTPInputAnalyzer_h
00003 // -*- C++ -*-
00004 //
00005 // Class:      EcalTPInutAnalyzer
00006 // 
00012 //
00013 // Original Author:  Ursula Berthon
00014 //         Created:  Thu Jul 4 11:38:38 CEST 2005
00015 // $Id: EcalTPInputAnalyzer.h,v 1.2 2008/01/17 13:40:55 uberthon Exp $
00016 //
00017 //
00018 
00019 
00020 // system 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 <vector>
00029 #include <string>
00030 #include <TH1I.h>
00031 #include <TFile.h>
00032 
00033 
00034 //
00035 // class declaration
00036 //
00037 
00038 class EcalTPInputAnalyzer : public edm::EDAnalyzer {
00039    public:
00040       explicit EcalTPInputAnalyzer(const edm::ParameterSet&);
00041       ~EcalTPInputAnalyzer();
00042 
00043       virtual void analyze(const edm::Event&, const edm::EventSetup&);
00044       void endJob();
00045 
00046    private:
00047 
00048   // for histos of nr of hits
00049   std::vector<std::string> ecal_parts_;
00050   TH1I * ecal_et_[2];
00051   TH1I * ecal_tt_[2];
00052   TH1I * ecal_fgvb_[2];
00053   TH1I *histEndc,*histBar;
00054   TFile *histfile_;
00055   
00056   std::string ebLabel_;
00057   std::string eeLabel_;
00058   std::string producer_;
00059 
00060 };
00061 #endif