CMS 3D CMS Logo

DTDeadChannelTest.h

Go to the documentation of this file.
00001 #ifndef DTDeadChannelTest_H
00002 #define DTDeadChannelTest_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 #include <FWCore/Framework/interface/LuminosityBlock.h>
00024 
00025 #include "DQMServices/Core/interface/DQMStore.h"
00026 #include "DQMServices/Core/interface/MonitorElement.h"
00027 #include "FWCore/ServiceRegistry/interface/Service.h"
00028 
00029 
00030 #include <memory>
00031 #include <iostream>
00032 #include <fstream>
00033 #include <string>
00034 #include <vector>
00035 #include <map>
00036 
00037 class DTGeometry;
00038 class DTChamberId;
00039 class DTSuperLayerId;
00040 class DTLayerId;
00041 class DTTtrig;
00042 
00043 class DTDeadChannelTest: public edm::EDAnalyzer{
00044 
00045 public:
00046 
00048   DTDeadChannelTest(const edm::ParameterSet& ps);
00049   
00051   virtual ~DTDeadChannelTest();
00052 
00053 protected:
00054 
00056   void beginJob(const edm::EventSetup& c);
00057 
00059   void analyze(const edm::Event& e, const edm::EventSetup& c);
00060 
00062   void endJob();
00063 
00065   void bookHistos(const DTLayerId & ch, int firstWire, int lastWire);
00066 
00068   std::string getMEName(std::string histoTag, const DTChamberId & chId);
00069 
00070 
00071   void beginLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& context) ;
00072 
00074   void endLuminosityBlock(edm::LuminosityBlock const& lumiSeg, edm::EventSetup const& c);
00075 
00076 
00077 
00078 
00079 private:
00080 
00081   int nevents;
00082   unsigned int nLumiSegs;
00083   int prescaleFactor;
00084   int run;
00085 
00086   DQMStore* dbe;
00087 
00088   edm::ParameterSet parameters;
00089   edm::ESHandle<DTGeometry> muonGeom;
00090   edm::ESHandle<DTTtrig> tTrigMap;
00091 
00092   std::map< std::string , MonitorElement* > OccupancyDiffHistos;
00093   
00094 };
00095 
00096 #endif

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