File indexing completed on 2024-04-06 12:18:56
0001 #ifndef SUSY_HLT_PhotonMET_H
0002 #define SUSY_HLT_PhotonMET_H
0003
0004
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/EventSetup.h"
0007
0008
0009 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0010 #include "DQMServices/Core/interface/DQMStore.h"
0011
0012
0013 #include "DataFormats/METReco/interface/PFMET.h"
0014 #include "DataFormats/METReco/interface/PFMETCollection.h"
0015
0016
0017 #include "DataFormats/EgammaCandidates/interface/Photon.h"
0018
0019
0020 #include "DataFormats/Common/interface/TriggerResults.h"
0021 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
0022 #include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
0023 #include "DataFormats/HLTReco/interface/TriggerObject.h"
0024
0025 namespace reco {
0026 typedef std::vector<reco::Photon> PhotonCollection;
0027 }
0028
0029 class SUSY_HLT_PhotonMET : public DQMEDAnalyzer {
0030 public:
0031 SUSY_HLT_PhotonMET(const edm::ParameterSet &ps);
0032 ~SUSY_HLT_PhotonMET() override;
0033
0034 protected:
0035 void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0036 void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override;
0037
0038 private:
0039
0040 void bookHistos(DQMStore::IBooker &);
0041
0042
0043 edm::EDGetTokenT<reco::PFMETCollection> thePfMETCollection_;
0044 edm::EDGetTokenT<reco::PhotonCollection> thePhotonCollection_;
0045 edm::EDGetTokenT<edm::TriggerResults> triggerResults_;
0046
0047 std::string triggerPath_;
0048 std::string triggerPathBase_;
0049 edm::InputTag triggerFilterPhoton_;
0050 edm::InputTag triggerFilterMET_;
0051 double ptThrOffline_;
0052 double metThrOffline_;
0053
0054
0055 MonitorElement *h_recoPhotonPt;
0056 MonitorElement *h_recoMet;
0057 MonitorElement *h_metTurnOn_num;
0058 MonitorElement *h_metTurnOn_den;
0059 MonitorElement *h_photonTurnOn_num;
0060 MonitorElement *h_photonTurnOn_den;
0061 };
0062
0063 #endif