![]() |
![]() |
00001 #ifndef ValidationHcalSimHitsClient_H 00002 #define ValidationHcalSimHitsClient_H 00003 00004 // -*- C++ -*- 00005 // 00006 // 00007 /* 00008 Description: This is a SImHit CLient code 00009 */ 00010 00011 // 00012 // Originally create by: Bhawna Gomber 00013 // 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 HcalSimHitsClient : 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 static const int nType = 25; 00047 static const int nTime = 4; 00048 static const int nType1 = 4; 00049 00050 std::string dirName_; 00051 00052 public: 00053 explicit HcalSimHitsClient(const edm::ParameterSet& ); 00054 virtual ~HcalSimHitsClient(); 00055 00056 virtual void beginJob(void); 00057 virtual void endJob(); 00058 virtual void beginRun(const edm::Run& run, const edm::EventSetup& c); 00059 virtual void endRun(const edm::Run& run, const edm::EventSetup& c); 00060 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00061 virtual void endLuminosityBlock(const edm::LuminosityBlock& lumiSeg, const edm::EventSetup& c); 00062 virtual void runClient_(); 00063 00064 int SimHitsEndjob(const std::vector<MonitorElement*> &hcalMEs); 00065 00066 }; 00067 00068 #endif