00001 #ifndef L1THCALTPG_H 00002 #define L1THCALTPG_H 00003 00004 /* 00005 * \file L1THCALTPG.h 00006 * 00007 * $Date: 2008/03/01 00:40:00 $ 00008 * $Revision: 1.4 $ 00009 * \author J. Berryhill 00010 * 00011 */ 00012 00013 // system include files 00014 #include <memory> 00015 #include <unistd.h> 00016 #include <iostream> 00017 #include <fstream> 00018 #include <vector> 00019 00020 // user 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 00029 #include "DQMServices/Core/interface/DQMStore.h" 00030 #include "DQMServices/Core/interface/MonitorElement.h" 00031 #include "FWCore/ServiceRegistry/interface/Service.h" 00032 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00033 00034 00035 #include "DataFormats/HcalDigi/interface/HcalTriggerPrimitiveDigi.h" 00036 00037 // 00038 // class decleration 00039 // 00040 00041 class L1THCALTPG : public edm::EDAnalyzer { 00042 00043 public: 00044 00045 // Constructor 00046 L1THCALTPG(const edm::ParameterSet& ps); 00047 00048 // Destructor 00049 virtual ~L1THCALTPG(); 00050 00051 protected: 00052 // Analyze 00053 void analyze(const edm::Event& e, const edm::EventSetup& c); 00054 00055 // BeginJob 00056 void beginJob(const edm::EventSetup& c); 00057 00058 // EndJob 00059 void endJob(void); 00060 00061 private: 00062 // ----------member data --------------------------- 00063 DQMStore * dbe; 00064 00065 // what we monitor 00066 MonitorElement *hcalTpEtEtaPhi_; 00067 MonitorElement *hcalTpOccEtaPhi_; 00068 MonitorElement *hcalTpRank_; 00069 00070 int nev_; // Number of events processed 00071 std::string outputFile_; //file name for ROOT ouput 00072 bool verbose_; 00073 bool monitorDaemon_; 00074 ofstream logFile_; 00075 edm::InputTag hcaltpgSource_; 00076 }; 00077 00078 #endif