00001 // framework & common header files 00002 #include "FWCore/Framework/interface/EDAnalyzer.h" 00003 #include "FWCore/Framework/interface/Event.h" 00004 #include "FWCore/Framework/interface/EventSetup.h" 00005 #include "FWCore/Framework/interface/Run.h" 00006 00007 // particle data table 00008 #include "SimGeneral/HepPDTRecord/interface/ParticleDataTable.h" 00009 #include "FWCore/Framework/interface/ESHandle.h" 00010 00011 //DQM services 00012 #include "DQMServices/Core/interface/DQMStore.h" 00013 #include "FWCore/ServiceRegistry/interface/Service.h" 00014 #include "DQMServices/Core/interface/MonitorElement.h" 00015 #include <iostream> 00016 #include <stdlib.h> 00017 00018 class HiBasicGenTest : public edm::EDAnalyzer 00019 { 00020 public: 00021 explicit HiBasicGenTest(const edm::ParameterSet&); 00022 virtual ~HiBasicGenTest(); 00023 virtual void beginJob(); 00024 virtual void endJob(); 00025 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00026 virtual void beginRun(const edm::Run&, const edm::EventSetup&); 00027 virtual void endRun(const edm::Run&, const edm::EventSetup&); 00028 00029 private: 00030 00031 DQMStore *dbe; 00032 00033 MonitorElement *dnchdeta[3]; 00034 MonitorElement *dnchdpt[3]; 00035 MonitorElement *b[3]; 00036 MonitorElement *dnchdphi[3]; 00037 MonitorElement *rp; 00038 00039 edm::ESHandle < ParticleDataTable > pdt; 00040 00041 };