00001 #ifndef SiStripQualityStatistics_H 00002 #define SiStripQualityStatistics_H 00003 00004 // system include files 00005 //#include <memory> 00006 00007 // user include files 00008 #include "FWCore/Framework/interface/Frameworkfwd.h" 00009 #include "FWCore/Framework/interface/EDAnalyzer.h" 00010 #include "FWCore/Framework/interface/Event.h" 00011 #include "FWCore/Framework/interface/EventSetup.h" 00012 #include "FWCore/Framework/interface/ESHandle.h" 00013 #include "FWCore/ServiceRegistry/interface/Service.h" 00014 #include "FWCore/MessageLogger/interface/MessageLogger.h" 00015 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00016 #include "CalibFormats/SiStripObjects/interface/SiStripQuality.h" 00017 #include "CommonTools/TrackerMap/interface/TrackerMap.h" 00018 #include "CalibTracker/SiStripCommon/interface/SiStripDetInfoFileReader.h" 00019 #include "FWCore/ParameterSet/interface/FileInPath.h" 00020 #include "DQM/SiStripCommon/interface/TkHistoMap.h" 00021 00022 #include <sstream> 00023 00024 class SiStripQualityStatistics : public edm::EDAnalyzer { 00025 00026 public: 00027 explicit SiStripQualityStatistics( const edm::ParameterSet& ); 00028 ~SiStripQualityStatistics(){}; 00029 00030 void analyze( const edm::Event&, const edm::EventSetup& ); 00031 void endJob(); 00032 00033 private: 00034 00035 void SetBadComponents(int,int,SiStripQuality::BadComponent&); 00036 00037 unsigned long long m_cacheID_; 00038 std::string dataLabel_; 00039 std::string TkMapFileName_; 00040 edm::FileInPath fp_; 00041 bool saveTkHistoMap_; 00042 //Global Info 00043 int NTkBadComponent[4]; //k: 0=BadModule, 1=BadFiber, 2=BadApv, 3=BadStrips 00044 int NBadComponent[4][19][4]; 00045 //legend: NBadComponent[i][j][k]= SubSystem i, layer/disk/wheel j, BadModule/Fiber/Apv k 00046 // i: 0=TIB, 1=TID, 2=TOB, 3=TEC 00047 // k: 0=BadModule, 1=BadFiber, 2=BadApv, 3=BadStrips 00048 std::stringstream ssV[4][19]; 00049 00050 TrackerMap * tkMap, *tkMapFullIOVs; 00051 SiStripDetInfoFileReader* reader; 00052 TkHistoMap* tkhisto; 00053 }; 00054 #endif