CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_6/src/DQM/DTMonitorClient/src/DTCreateSummaryHistos.h

Go to the documentation of this file.
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();
00052 
00054   void beginRun(const edm::Run& run, const edm::EventSetup& setup);
00055 
00057   void analyze(const edm::Event& e, const edm::EventSetup& c);
00058 
00060   void endJob();
00061 
00062 
00063  private:
00064 
00065   int nevents;
00066   std::string MainFolder;
00067 
00068   edm::ParameterSet parameters;
00069   edm::ESHandle<DTGeometry> muonGeom;
00070 
00071   // The file which contain the occupancy plot and the digi event plot
00072   TFile *theFile;
00073   
00074   // The *.ps file which contains the summary histos
00075   TPostScript *psFile;
00076   std::string PsFileName;
00077 
00078   // The histos to write in the *.ps file
00079   bool DataIntegrityHistos;
00080   bool DigiHistos;
00081   bool RecoHistos;
00082   bool ResoHistos;
00083   bool EfficiencyHistos;
00084   bool TestPulsesHistos;
00085   bool TriggerHistos;
00086   
00087   // The DDUId
00088   int DDUId;
00089   // The run number
00090   int runNumber;
00091 
00092 };
00093 
00094 #endif
00095   
00096