CMS 3D CMS Logo

DTResolutionAnalysisTask.h

Go to the documentation of this file.
00001 #ifndef DTResolutionAnalysisTask_H
00002 #define DTResolutionAnalysisTask_H
00003 
00018 #include "FWCore/Framework/interface/Frameworkfwd.h"
00019 #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
00020 #include <FWCore/Framework/interface/EDAnalyzer.h>
00021 #include "FWCore/Framework/interface/ESHandle.h"
00022 
00023 
00024 #include <string>
00025 #include <map>
00026 #include <vector>
00027 
00028 class DQMStore;
00029 class MonitorElement;
00030 class DTGeometry;
00031 
00032 class DTResolutionAnalysisTask: public edm::EDAnalyzer{
00033 public:
00035   DTResolutionAnalysisTask(const edm::ParameterSet& pset);
00036 
00038   virtual ~DTResolutionAnalysisTask();
00039 
00041   void beginJob(const edm::EventSetup& c);
00042 
00044   void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
00045 
00047   void endJob();
00048 
00049   // Operations
00050   void analyze(const edm::Event& event, const edm::EventSetup& setup);
00051   
00052  
00053 protected:
00054 
00055 private:
00056   DQMStore* theDbe;
00057 
00058   edm::ESHandle<DTGeometry> dtGeom;
00059   
00060   int prescaleFactor;
00061   int resetCycle;
00062 
00063   // Lable of 4D segments in the event
00064   std::string theRecHits4DLabel;
00065   // Lable of 1D rechits in the event
00066   std::string theRecHitLabel;
00067   
00068   // Book a set of histograms for a give chamber
00069   void bookHistos(DTSuperLayerId slId);
00070   // Fill a set of histograms for a give chamber 
00071   void fillHistos(DTSuperLayerId slId,
00072                   float distExtr,
00073                   float residual);
00074 
00075   std::map<DTSuperLayerId, std::vector<MonitorElement*> > histosPerSL;
00076 };
00077 #endif
00078 

Generated on Tue Jun 9 17:32:40 2009 for CMSSW by  doxygen 1.5.4