00001 #ifndef _DQMOFFLINE_HCAL_HCALRECHITSDQMCLIENT_H_ 00002 #define _DQMOFFLINE_HCAL_HCALRECHITDQMSCLIENT_H_ 00003 00004 // -*- C++ -*- 00005 // 00006 // 00007 /* 00008 Description: This is a RecHits client meant to plot rechits quantities 00009 */ 00010 00011 // 00012 // Originally create by: Hongxuan Liu 00013 // May 2010 00014 // 00015 00016 #include <memory> 00017 #include <unistd.h> 00018 #include <FWCore/Framework/interface/EDAnalyzer.h> 00019 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00020 #include "DQMServices/Core/interface/MonitorElement.h" 00021 #include "DQMServices/Core/interface/DQMStore.h" 00022 #include "DataFormats/Common/interface/Handle.h" 00023 #include "FWCore/Framework/interface/Event.h" 00024 #include "FWCore/Framework/interface/EventSetup.h" 00025 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00026 #include "FWCore/ServiceRegistry/interface/Service.h" 00027 #include "DataFormats/Math/interface/LorentzVector.h" 00028 00029 #include <iostream> 00030 #include <fstream> 00031 #include <vector> 00032 00033 class DQMStore; 00034 class MonitorElement; 00035 00036 class HcalRecHitsDQMClient : public edm::EDAnalyzer { 00037 00038 private: 00039 DQMStore* dbe_; //dbe seems to be the standard name for this, I dont know why. We of course dont own it 00040 std::string outputFile_; 00041 00042 edm::ParameterSet conf_; 00043 00044 bool verbose_; 00045 bool debug_; 00046 00047 std::string dirName_; 00048 std::string dirNameJet_; 00049 std::string dirNameMET_; 00050 00051 public: 00052 explicit HcalRecHitsDQMClient(const edm::ParameterSet& ); 00053 virtual ~HcalRecHitsDQMClient(); 00054 00055 virtual void beginJob(void); 00056 virtual void endJob(); 00057 virtual void beginRun(const edm::Run& run, const edm::EventSetup& c); 00058 virtual void endRun(const edm::Run& run, const edm::EventSetup& c); 00059 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00060 virtual void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& c); 00061 virtual void runClient_(); 00062 00063 int HcalRecHitsEndjob(const std::vector<MonitorElement*> &hcalMEs); 00064 00065 }; 00066 00067 #endif