00001 #ifndef L1TCSCTPG_H 00002 #define L1TCSCTPG_H 00003 00004 /* 00005 * \file L1TCSCTPG.h 00006 * 00007 * $Date: 2009/11/19 14:30:34 $ 00008 * $Revision: 1.4 $ 00009 * \author J. Berryhill 00010 * 00011 */ 00012 00013 // system include files 00014 #include <memory> 00015 #include <unistd.h> 00016 00017 // user include files 00018 #include "FWCore/Framework/interface/Frameworkfwd.h" 00019 #include "FWCore/Framework/interface/EDAnalyzer.h" 00020 00021 #include "FWCore/Framework/interface/Event.h" 00022 #include "FWCore/Framework/interface/MakerMacros.h" 00023 00024 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00025 00026 #include "DQMServices/Core/interface/DQMStore.h" 00027 #include "DQMServices/Core/interface/MonitorElement.h" 00028 #include "FWCore/ServiceRegistry/interface/Service.h" 00029 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00030 00031 #include "DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigi.h" 00032 #include "DataFormats/CSCDigi/interface/CSCCorrelatedLCTDigiCollection.h" 00033 00034 #include <iostream> 00035 #include <fstream> 00036 #include <vector> 00037 00038 // 00039 // class decleration 00040 // 00041 00042 class L1TCSCTPG : public edm::EDAnalyzer { 00043 00044 public: 00045 00046 // Constructor 00047 L1TCSCTPG(const edm::ParameterSet& ps); 00048 00049 // Destructor 00050 virtual ~L1TCSCTPG(); 00051 00052 protected: 00053 // Analyze 00054 void analyze(const edm::Event& e, const edm::EventSetup& c); 00055 00056 // BeginJob 00057 void beginJob(void); 00058 00059 // EndJob 00060 void endJob(void); 00061 00062 private: 00063 // ----------member data --------------------------- 00064 DQMStore * dbe; 00065 00066 MonitorElement* csctpgpattern; 00067 MonitorElement* csctpgquality; 00068 MonitorElement* csctpgwg; 00069 MonitorElement* csctpgstrip; 00070 MonitorElement* csctpgstriptype; 00071 MonitorElement* csctpgbend; 00072 MonitorElement* csctpgbx; 00073 00074 int nev_; // Number of events processed 00075 std::string outputFile_; //file name for ROOT ouput 00076 bool verbose_; 00077 bool monitorDaemon_; 00078 ofstream logFile_; 00079 edm::InputTag csctpgSource_; 00080 }; 00081 00082 #endif