00001 // -*- C++ -*- 00002 // 00003 // Package: L1RCTTestAnalyzer 00004 // Class: L1RCTTestAnalyzer 00005 // 00013 // 00014 // Original Author: pts/47 00015 // Created: Thu Jul 13 21:38:08 CEST 2006 00016 // $Id: L1RCTTestAnalyzer.h,v 1.10 2008/05/02 16:53:01 jleonard Exp $ 00017 // 00018 // 00019 00020 00021 // system include files 00022 #include <memory> 00023 #include <iostream> 00024 // user include files 00025 #include "FWCore/Framework/interface/Frameworkfwd.h" 00026 #include "FWCore/Framework/interface/EDAnalyzer.h" 00027 00028 #include "FWCore/Framework/interface/Event.h" 00029 #include "FWCore/Framework/interface/MakerMacros.h" 00030 00031 #include "FWCore/ServiceRegistry/interface/Service.h" 00032 #include "PhysicsTools/UtilAlgos/interface/TFileService.h" 00033 00034 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00035 00036 #include "DataFormats/L1CaloTrigger/interface/L1CaloCollections.h" 00037 #include "DataFormats/EcalDigi/interface/EcalDigiCollections.h" 00038 #include "DataFormats/HcalDigi/interface/HcalDigiCollections.h" 00039 00040 #include "TH1F.h" 00041 #include "TH2F.h" 00042 00043 // 00044 // class declaration 00045 // 00046 00047 class L1RCTTestAnalyzer : public edm::EDAnalyzer { 00048 public: 00049 explicit L1RCTTestAnalyzer(const edm::ParameterSet&); 00050 ~L1RCTTestAnalyzer(); 00051 00052 00053 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00054 private: 00055 // ----------member data --------------------------- 00056 std::string m_HepMCProduct; 00057 bool showEmCands; 00058 bool showRegionSums; 00059 edm::InputTag ecalDigisLabel; 00060 edm::InputTag hcalDigisLabel; 00061 edm::InputTag rctDigisLabel; 00062 00063 TH1F * h_emRank; 00064 TH1F * h_emRankOutOfTime; 00065 TH1F * h_emIeta; 00066 TH1F * h_emIphi; 00067 TH1F * h_emIso; 00068 TH2F * h_emRankInIetaIphi; 00069 // add isolated/non-iso? 00070 TH2F * h_emIsoInIetaIphi; 00071 TH2F * h_emNonIsoInIetaIphi; 00072 TH1F * h_emCandTimeSample; 00073 00074 TH1F * h_regionSum; 00075 TH1F * h_regionIeta; 00076 TH1F * h_regionIphi; 00077 TH1F * h_regionMip; 00078 TH2F * h_regionSumInIetaIphi; 00079 // add bits in ieta/iphi? tau, overflow, mip, quiet, finegrain? 00080 // (is fine grain same thing as mip??) 00081 TH2F * h_regionFGInIetaIphi; 00082 00083 TH1F * h_towerMip; 00084 00085 TH1F * h_ecalTimeSample; 00086 TH1F * h_hcalTimeSample; 00087 00088 }; 00089 00090 // 00091 // constants, enums and typedefs 00092 // 00093 00094 // 00095 // static data member definitions 00096 //