CMS 3D CMS Logo

/data/refman/pasoursint/CMSSW_5_3_10_patch1/src/DQMOffline/CalibMuon/interface/DTPreCalibrationTask.h

Go to the documentation of this file.
00001 #ifndef DTPreCalibrationTask_H
00002 #define DTPreCalibrationTask_H
00003 
00013 #include "FWCore/Framework/interface/Frameworkfwd.h"
00014 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00015 #include <FWCore/Framework/interface/EDAnalyzer.h>
00016 #include <FWCore/Framework/interface/ESHandle.h>
00017 #include "FWCore/Framework/interface/MakerMacros.h"
00018 #include "FWCore/ServiceRegistry/interface/Service.h"
00019 #include "DQMServices/Core/interface/DQMStore.h"
00020 #include "DQMServices/Core/interface/MonitorElement.h"
00021 #include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h"
00022 
00023 #include <string>
00024 #include <map>
00025 #include <vector>
00026 
00027 
00028 class DQMStore;
00029 class MonitorElement;
00030 
00031 class DTPreCalibrationTask: public edm::EDAnalyzer{
00032 
00033 public:
00034 
00036   DTPreCalibrationTask(const edm::ParameterSet& ps);
00037   
00039   virtual ~DTPreCalibrationTask();
00040 
00042   void beginJob();
00043  
00045   void analyze(const edm::Event& e, const edm::EventSetup& c);
00046 
00048   void bookTimeBoxes(int wheel, int sector);
00049   void bookOccupancyPlot(int wheel, int sector);
00050 
00052   void endJob();
00053 
00054 private:
00055 
00056   DQMStore* dbe;
00057   std::string digiLabel;
00058   int  minTriggerWidth;
00059   int  maxTriggerWidth;
00060   bool saveFile;
00061   std::string outputFileName;
00062   std::string folderName;
00063 
00064   // Time boxes map
00065   std::map<std::pair<int,int>, MonitorElement* > TimeBoxes;
00066 
00067   // Occupancy plot map
00068   std::map<std::pair<int,int>, MonitorElement* > OccupancyHistos;
00069 
00070 };
00071 #endif