00001 #ifndef SiStripMonitorClient_SiStripDaqInfo_h 00002 #define SiStripMonitorClient_SiStripDaqInfo_h 00003 // -*- C++ -*- 00004 // 00005 // Package: SiStripMonitorClient 00006 // Class : SiStripDaqInfo 00007 // 00016 // 00017 // Author: Suchandra Dutta 00018 // Created: Thu Dec 11 17:50:00 CET 2008 00019 // 00020 00021 #include <string> 00022 00023 #include "FWCore/Framework/interface/EDAnalyzer.h" 00024 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00025 #include "FWCore/Framework/interface/ESHandle.h" 00026 #include "FWCore/Framework/interface/LuminosityBlock.h" 00027 #include "FWCore/Framework/interface/Run.h" 00028 #include "FWCore/Framework/interface/EventSetup.h" 00029 00030 #include <iostream> 00031 #include <fstream> 00032 #include <string> 00033 #include <vector> 00034 #include <map> 00035 00036 class DQMStore; 00037 class MonitorElement; 00038 class SiStripFedCabling; 00039 00040 class SiStripDaqInfo: public edm::EDAnalyzer { 00041 00042 public: 00043 00045 SiStripDaqInfo(const edm::ParameterSet& ps); 00046 00048 virtual ~SiStripDaqInfo(); 00049 00050 private: 00051 00053 void beginJob(edm::EventSetup const& eSetup); 00054 00056 void beginRun(edm::Run const& run, edm::EventSetup const& eSetup); 00057 00059 00060 void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& iSetup); 00061 00063 00064 void analyze(edm::Event const&, edm::EventSetup const&); 00065 00066 00067 00068 private: 00069 void readFedIds(const edm::ESHandle<SiStripFedCabling>& fedcabling); 00070 void readSubdetFedFractions(std::vector<int>& fed_ids); 00071 00072 00073 std::map<std::string,std::vector<unsigned short> > subDetFedMap; 00074 00075 DQMStore* dqmStore_; 00076 MonitorElement * DaqFraction_; 00077 MonitorElement * DaqFractionTIB_; 00078 MonitorElement * DaqFractionTOB_; 00079 MonitorElement * DaqFractionTIDF_; 00080 MonitorElement * DaqFractionTIDB_; 00081 MonitorElement * DaqFractionTECF_; 00082 MonitorElement * DaqFractionTECB_; 00083 00084 unsigned long long m_cacheID_; 00085 int nFedTotal; 00086 00087 }; 00088 #endif