00001 #ifndef DTCreateSummaryHistos_H 00002 #define DTCreateSummaryHistos_H 00003 00004 00016 #include "FWCore/Framework/interface/Frameworkfwd.h" 00017 #include <FWCore/Framework/interface/EDAnalyzer.h> 00018 #include "DataFormats/Common/interface/Handle.h" 00019 #include <FWCore/Framework/interface/ESHandle.h> 00020 #include <FWCore/Framework/interface/Event.h> 00021 #include <FWCore/Framework/interface/MakerMacros.h> 00022 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00023 00024 #include "DQMServices/Core/interface/DQMStore.h" 00025 #include "FWCore/ServiceRegistry/interface/Service.h" 00026 00027 00028 #include <memory> 00029 #include <iostream> 00030 #include <fstream> 00031 #include <string> 00032 #include <vector> 00033 #include <map> 00034 #include "TPostScript.h" 00035 00036 class DTGeometry; 00037 00038 class DTCreateSummaryHistos: public edm::EDAnalyzer{ 00039 00040 public: 00041 00043 DTCreateSummaryHistos(const edm::ParameterSet& ps); 00044 00046 virtual ~DTCreateSummaryHistos(); 00047 00048 protected: 00049 00051 void beginJob(const edm::EventSetup& c); 00052 00054 void analyze(const edm::Event& e, const edm::EventSetup& c); 00055 00057 void endJob(); 00058 00059 00060 private: 00061 00062 int nevents; 00063 std::string MainFolder; 00064 00065 edm::ParameterSet parameters; 00066 edm::ESHandle<DTGeometry> muonGeom; 00067 00068 // The file which contain the occupancy plot and the digi event plot 00069 TFile *theFile; 00070 00071 // The *.ps file which contains the summary histos 00072 TPostScript *psFile; 00073 std::string PsFileName; 00074 00075 // The histos to write in the *.ps file 00076 bool DataIntegrityHistos; 00077 bool DigiHistos; 00078 bool RecoHistos; 00079 bool ResoHistos; 00080 bool EfficiencyHistos; 00081 bool TestPulsesHistos; 00082 bool TriggerHistos; 00083 00084 // The DDUId 00085 int DDUId; 00086 // The run number 00087 int runNumber; 00088 00089 }; 00090 00091 #endif 00092 00093