CMS 3D CMS Logo

DTNoiseTask.h

Go to the documentation of this file.
00001 #ifndef DTNoiseTask_H
00002 #define DTNoiseTask_H
00003 
00012 #include <FWCore/Framework/interface/EDAnalyzer.h>
00013 #include "DQMServices/Core/interface/DQMStore.h"
00014 #include "DQMServices/Core/interface/MonitorElement.h"
00015 
00016 #include <DataFormats/MuonDetId/interface/DTChamberId.h>
00017 #include <DataFormats/MuonDetId/interface/DTSuperLayerId.h>
00018 #include <FWCore/Framework/interface/ESHandle.h>
00019 #include "FWCore/ParameterSet/interface/InputTag.h"
00020 
00021 
00022 namespace edm {
00023   class ParameterSet;
00024   class EventSetup;
00025   class Event;
00026 }
00027 
00028 class DQMStore;
00029 class DTGeometry;
00030 
00031 
00032 class DTNoiseTask : public edm::EDAnalyzer {
00033 public:
00035   DTNoiseTask(const edm::ParameterSet& ps);
00036 
00038   virtual ~DTNoiseTask();
00039 
00040   // Operations
00041 
00042 protected:
00044   void beginJob(const edm::EventSetup& c);
00045 
00046   void beginRun(const edm::Run&, const edm::EventSetup&);
00047 
00049   void beginLuminosityBlock(const edm::LuminosityBlock&  lumiSeg, const edm::EventSetup& context);
00050   
00052   void analyze(const edm::Event& e, const edm::EventSetup& c);
00053   
00055   void endJob();
00056 
00057 private:
00058   
00059   void bookHistos(DTChamberId chId);
00060   void bookHistos(DTSuperLayerId slId);
00061 
00062   // The label to retrieve the digis 
00063   edm::InputTag dtDigiLabel;
00064   // counter of processed events
00065   int evtNumber;
00066   //switch for time boxes filling
00067   bool doTimeBoxHistos;
00068   // Lable of 4D segments in the event
00069   std::string theRecHits4DLabel;
00070   //switch for segment veto
00071   bool doSegmentVeto;
00072 
00073   DQMStore *dbe;
00074   edm::ESHandle<DTGeometry> dtGeom;
00075 
00076   //tTrig map per Station
00077   std::map<DTChamberId, double> tTrigStMap;
00078 
00079   //the noise histos (Hz)
00080   std::map<DTChamberId, MonitorElement*> noiseHistos;
00081 
00082   //map for histo normalization
00083   std::map<DTChamberId, int> mapEvt;
00084 
00085   //the time boxes
00086   std::map<DTSuperLayerId, MonitorElement*> tbHistos;
00087 
00088 };
00089 #endif
00090 

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