CMS 3D CMS Logo

/afs/cern.ch/work/a/aaltunda/public/www/CMSSW_5_3_14/src/DQMOffline/CalibMuon/interface/DTtTrigDBValidation.h

Go to the documentation of this file.
00001 #ifndef DTtTrigDBValidation_H
00002 #define DTtTrigDBValidation_H
00003 
00004 #include "FWCore/Framework/interface/Frameworkfwd.h"
00005 #include "FWCore/Framework/interface/EDAnalyzer.h"
00006 #include "FWCore/Framework/interface/ESHandle.h"
00007 #include "FWCore/Framework/interface/MakerMacros.h"
00008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
00009 #include "FWCore/ServiceRegistry/interface/Service.h"
00010 #include "DQMServices/Core/interface/DQMStore.h"
00011 #include "DQMServices/Core/interface/MonitorElement.h"
00012 #include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h"
00013 
00014 #include "DataFormats/MuonDetId/interface/DTSuperLayerId.h"
00015 #include "Geometry/DTGeometry/interface/DTGeometry.h"
00016 
00017 #include <string>
00018 #include <fstream>
00019 #include <vector>
00020 
00021 //class DTTtrig;
00022 class TFile;
00023 
00024 class DTtTrigDBValidation : public edm::EDAnalyzer {
00025 
00026 public:
00028   DTtTrigDBValidation(const edm::ParameterSet& pset);
00029 
00031   virtual ~DTtTrigDBValidation();
00032 
00034   void beginRun(edm::Run const&, edm::EventSetup const&);
00035   void endRun(edm::Run const&, edm::EventSetup const&);
00036   void analyze(edm::Event const&, edm::EventSetup const&) {}
00037   void endJob();
00038 
00039 private:
00040 
00041   // Switch for verbosity
00042   std::string metname_;
00043   // The DB label
00044   std::string labelDBRef_;
00045   std::string labelDB_;
00046 
00047   int lowerLimit_;
00048   int higherLimit_;
00049 
00050   // The file which will contain the difference plots
00051   bool outputMEsInRootFile_;
00052   std::string outputFileName_;
00053 
00054   DQMStore* dbe_;
00055   // The DTGeometry
00056   edm::ESHandle<DTGeometry> dtGeom_;
00057 
00058   // Map of the tTrig and sigma by super-layer
00059   std::map<DTSuperLayerId, std::pair<float,float> > tTrigRefMap_;
00060   std::map<DTSuperLayerId, std::pair<float,float> > tTrigMap_;
00061 
00062   // Map of the tTrig difference histos by (wheel,sector)
00063   std::map<std::pair<int,int>, MonitorElement* > tTrigDiffHistos_;
00064   std::map<int, MonitorElement* > tTrigDiffWheel_;
00065 
00066   void bookHistos(int,int);
00067   void bookHistos(int wheel);
00068   // Compute the station from the bin number of mean and sigma histos
00069   int stationFromBin(int bin) const;
00070   // Compute the sl from the bin number of mean and sigma histos
00071   int slFromBin(int bin) const;
00072 };
00073 #endif