00001 #ifndef QcdPhotonsDQM_H 00002 #define QcdPhotonsDQM_H 00003 00004 00015 #include "FWCore/Framework/interface/Frameworkfwd.h" 00016 #include "FWCore/Framework/interface/EDAnalyzer.h" 00017 00018 // Trigger stuff 00019 #include "DataFormats/Common/interface/TriggerResults.h" 00020 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h" 00021 00022 #include "DataFormats/EgammaCandidates/interface/Photon.h" 00023 00024 class DQMStore; 00025 class MonitorElement; 00026 00027 class QcdPhotonsDQM : public edm::EDAnalyzer { 00028 public: 00029 00031 QcdPhotonsDQM(const edm::ParameterSet&); 00032 00034 virtual ~QcdPhotonsDQM(); 00035 00037 void beginJob(); 00038 00040 void beginRun( const edm::Run& , const edm::EventSetup& ); 00041 00043 void analyze(const edm::Event&, const edm::EventSetup&); 00044 00045 // Divide histograms 00046 void endRun(const edm::Run&, const edm::EventSetup&); 00047 00049 void endJob(void); 00050 00051 private: 00052 00053 // ----------member data --------------------------- 00054 00055 DQMStore* theDbe; 00056 00057 HLTConfigProvider hltConfigProvider_; 00058 bool isValidHltConfig_; 00059 00060 // Switch for verbosity 00061 std::string logTraceName; 00062 00063 // Variables from config file 00064 std::string theTriggerPathToPass; 00065 std::vector<std::string> thePlotTheseTriggersToo; 00066 std::string theHltMenu; 00067 std::string theTriggerResultsCollection; 00068 edm::InputTag thePhotonCollectionLabel; 00069 edm::InputTag theCaloJetCollectionLabel; 00070 edm::InputTag theVertexCollectionLabel; 00071 double theMinCaloJetPt; 00072 double theMinPhotonEt; 00073 bool theRequirePhotonFound; 00074 double thePlotPhotonMaxEt; 00075 double thePlotPhotonMaxEta; 00076 double thePlotJetMaxEta; 00077 00078 int num_events_in_run; 00079 00080 // Histograms 00081 MonitorElement* h_triggers_passed; 00082 MonitorElement* h_photon_et; 00083 MonitorElement* h_photon_eta; 00084 MonitorElement* h_photon_count_bar; 00085 MonitorElement* h_photon_count_end; 00086 MonitorElement* h_jet_pt; 00087 MonitorElement* h_jet_eta; 00088 MonitorElement* h_jet_count; 00089 MonitorElement* h_deltaPhi_photon_jet; 00090 MonitorElement* h_deltaPhi_jet_jet2; 00091 MonitorElement* h_deltaEt_photon_jet; 00092 MonitorElement* h_jet2_ptOverPhotonEt; 00093 MonitorElement* h_jet2_pt; 00094 MonitorElement* h_jet2_eta; 00095 MonitorElement* h_deltaPhi_photon_jet2; 00096 MonitorElement* h_deltaR_jet_jet2; 00097 MonitorElement* h_deltaR_photon_jet2; 00098 00099 MonitorElement* h_photon_et_jetcs; 00100 MonitorElement* h_photon_et_jetco; 00101 MonitorElement* h_photon_et_jetfs; 00102 MonitorElement* h_photon_et_jetfo; 00103 00104 MonitorElement* h_photon_et_ratio_co_cs; 00105 MonitorElement* h_photon_et_ratio_fo_fs; 00106 MonitorElement* h_photon_et_ratio_cs_fs; 00107 MonitorElement* h_photon_et_ratio_co_fs; 00108 MonitorElement* h_photon_et_ratio_cs_fo; 00109 MonitorElement* h_photon_et_ratio_co_fo; 00110 }; 00111 #endif