00001 #ifndef MuonEnergyDepositAnalyzer_H 00002 #define MuonEnergyDepositAnalyzer_H 00003 00004 00015 #include <memory> 00016 #include <fstream> 00017 #include "FWCore/Framework/interface/Frameworkfwd.h" 00018 #include "DQMOffline/Muon/src/MuonAnalyzerBase.h" 00019 #include "FWCore/Framework/interface/Event.h" 00020 #include "FWCore/Framework/interface/MakerMacros.h" 00021 #include "FWCore/ParameterSet/interface/ParameterSet.h" 00022 #include "FWCore/ServiceRegistry/interface/Service.h" 00023 #include "DQMServices/Core/interface/DQMStore.h" 00024 #include "DQMServices/Core/interface/MonitorElement.h" 00025 #include "RecoMuon/TrackingTools/interface/MuonServiceProxy.h" 00026 00027 00028 class MuonEnergyDepositAnalyzer : public MuonAnalyzerBase { 00029 public: 00030 00032 MuonEnergyDepositAnalyzer(const edm::ParameterSet&, MuonServiceProxy *theService); 00033 00035 virtual ~MuonEnergyDepositAnalyzer(); 00036 00038 void beginJob(DQMStore *dbe); 00039 00041 void analyze(const edm::Event&, const edm::EventSetup&, const reco::Muon& recoMu); 00042 00043 00044 private: 00045 // ----------member data --------------------------- 00046 00047 edm::ParameterSet parameters; 00048 // Switch for verbosity 00049 std::string metname; 00050 // STA Label 00051 edm::InputTag theSTACollectionLabel; 00052 00053 //histo binning parameters 00054 int emNoBin; 00055 double emNoMin; 00056 double emNoMax; 00057 00058 int emS9NoBin; 00059 double emS9NoMin; 00060 double emS9NoMax; 00061 00062 int hadNoBin; 00063 double hadNoMin; 00064 double hadNoMax; 00065 00066 int hadS9NoBin; 00067 double hadS9NoMin; 00068 double hadS9NoMax; 00069 00070 int hoNoBin; 00071 double hoNoMin; 00072 double hoNoMax; 00073 00074 int hoS9NoBin; 00075 double hoS9NoMin; 00076 double hoS9NoMax; 00077 00078 //the histos 00079 MonitorElement * ecalDepEnergyBarrel; 00080 MonitorElement * ecalS9DepEnergyBarrel; 00081 MonitorElement * hcalDepEnergyBarrel; 00082 MonitorElement * hcalS9DepEnergyBarrel; 00083 MonitorElement * ecalDepEnergyEndcap; 00084 MonitorElement * ecalS9DepEnergyEndcap; 00085 MonitorElement * hcalDepEnergyEndcap; 00086 MonitorElement * hcalS9DepEnergyEndcap; 00087 MonitorElement * hoDepEnergy; 00088 MonitorElement * hoS9DepEnergy; 00089 MonitorElement * ecalS9PointingMuDepEnergy_Glb; 00090 MonitorElement * hcalS9PointingMuDepEnergy_Glb; 00091 MonitorElement * hoS9PointingMuDepEnergy_Glb; 00092 MonitorElement * ecalS9PointingMuDepEnergy_Tk; 00093 MonitorElement * hcalS9PointingMuDepEnergy_Tk; 00094 MonitorElement * hoS9PointingMuDepEnergy_Tk; 00095 MonitorElement * ecalS9PointingMuDepEnergy_Sta; 00096 MonitorElement * hcalS9PointingMuDepEnergy_Sta; 00097 MonitorElement * hoS9PointingMuDepEnergy_Sta; 00098 00099 }; 00100 #endif