Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:18:56

0001 #ifndef SUSY_HLT_PhotonHT_H
0002 #define SUSY_HLT_PhotonHT_H
0003 
0004 // event
0005 #include "FWCore/Framework/interface/Event.h"
0006 #include "FWCore/Framework/interface/EventSetup.h"
0007 
0008 // DQM
0009 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0010 #include "DQMServices/Core/interface/DQMStore.h"
0011 
0012 // MET
0013 #include "DataFormats/METReco/interface/PFMET.h"
0014 #include "DataFormats/METReco/interface/PFMETCollection.h"
0015 
0016 // Photon
0017 #include "DataFormats/EgammaCandidates/interface/Photon.h"
0018 
0019 // Trigger
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_PhotonHT : public DQMEDAnalyzer {
0030 public:
0031   SUSY_HLT_PhotonHT(const edm::ParameterSet &ps);
0032   ~SUSY_HLT_PhotonHT() 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   // histos booking function
0040   void bookHistos(DQMStore::IBooker &);
0041 
0042   // variables from config file
0043   edm::EDGetTokenT<reco::PFMETCollection> thePfMETCollection_;
0044   edm::EDGetTokenT<reco::PhotonCollection> thePhotonCollection_;
0045   edm::EDGetTokenT<edm::TriggerResults> triggerResults_;
0046   edm::EDGetTokenT<trigger::TriggerEvent> theTrigSummary_;
0047 
0048   std::string triggerPath_;
0049   std::string triggerPathAuxiliaryForHadronic_;
0050   edm::InputTag triggerFilterPhoton_;
0051   edm::InputTag triggerFilterHt_;
0052   double ptThrOffline_;
0053   double htThrOffline_;
0054 
0055   // Histograms
0056   MonitorElement *h_photonPt;
0057   MonitorElement *h_ht;
0058   MonitorElement *h_htTurnOn_num;
0059   MonitorElement *h_htTurnOn_den;
0060   MonitorElement *h_photonTurnOn_num;
0061   MonitorElement *h_photonTurnOn_den;
0062 };
0063 
0064 #endif