00001 #ifndef SiPixelHistoricInfoReader_H 00002 #define SiPixelHistoricInfoReader_H 00003 00004 00005 #include "FWCore/Framework/interface/Frameworkfwd.h" 00006 #include "FWCore/Framework/interface/EDAnalyzer.h" 00007 #include "FWCore/Framework/interface/Event.h" 00008 #include "FWCore/Framework/interface/EventSetup.h" 00009 #include "FWCore/Framework/interface/ESHandle.h" 00010 #include "FWCore/Framework/interface/Run.h" 00011 #include "FWCore/ServiceRegistry/interface/Service.h" 00012 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00013 00014 #include "TString.h" 00015 #include "TObjArray.h" 00016 #include "TFile.h" 00017 00018 00019 class SiPixelHistoricInfoReader : public edm::EDAnalyzer { 00020 typedef std::vector<std::string> vstring; 00021 00022 public: 00023 explicit SiPixelHistoricInfoReader(const edm::ParameterSet&); 00024 ~SiPixelHistoricInfoReader(); 00025 00026 virtual void beginJob(); 00027 virtual void beginRun(const edm::Run&, const edm::EventSetup&) ; 00028 virtual void analyze(const edm::Event&, const edm::EventSetup&); 00029 virtual void endRun(const edm::Run&, const edm::EventSetup&) ; 00030 virtual void endJob(); 00031 00032 std::string getMEregionString(uint32_t) const; 00033 void plot(); 00034 00035 private: 00036 edm::ParameterSet parameterSet_; 00037 00038 bool firstBeginRun_; 00039 bool printDebug_; 00040 00041 bool variable_[20]; 00042 std::vector<std::string> variables_; 00043 00044 std::vector<uint32_t> allDetIds; 00045 TString hisID, title; 00046 TObjArray* AllDetHistograms; 00047 00048 bool normEvents_; 00049 00050 bool makePlots_; 00051 std::string typePlots_; 00052 std::string outputDir_; 00053 std::string outputFile_; 00054 TFile* outputDirFile_; 00055 }; 00056 00057 #endif