Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:21:00

0001 #ifndef SUSY_HLT_DiJet_MET_H
0002 #define SUSY_HLT_DiJet_MET_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 // Muon
0013 #include "DataFormats/MuonReco/interface/Muon.h"
0014 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0015 
0016 // MET
0017 #include "DataFormats/METReco/interface/CaloMET.h"
0018 #include "DataFormats/METReco/interface/CaloMETCollection.h"
0019 #include "DataFormats/METReco/interface/PFMET.h"
0020 #include "DataFormats/METReco/interface/PFMETCollection.h"
0021 
0022 // Jets
0023 #include "DataFormats/JetReco/interface/CaloJet.h"
0024 #include "DataFormats/JetReco/interface/PFJet.h"
0025 
0026 // Trigger
0027 #include "DataFormats/Common/interface/TriggerResults.h"
0028 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
0029 #include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
0030 #include "DataFormats/HLTReco/interface/TriggerObject.h"
0031 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
0032 
0033 class SUSY_HLT_DiJet_MET : public DQMEDAnalyzer {
0034 public:
0035   SUSY_HLT_DiJet_MET(const edm::ParameterSet &ps);
0036   ~SUSY_HLT_DiJet_MET() override;
0037 
0038 protected:
0039   void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override;
0040   void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0041   void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override;
0042 
0043 private:
0044   // histos booking function
0045   void bookHistos(DQMStore::IBooker &);
0046 
0047   // variables from config file
0048   edm::EDGetTokenT<reco::PFMETCollection> thePfMETCollection_;
0049   edm::EDGetTokenT<reco::CaloMETCollection> theCaloMETCollection_;
0050   edm::EDGetTokenT<reco::PFJetCollection> thePfJetCollection_;
0051   edm::EDGetTokenT<reco::CaloJetCollection> theCaloJetCollection_;
0052   edm::EDGetTokenT<edm::TriggerResults> triggerResults_;
0053   edm::EDGetTokenT<trigger::TriggerEvent> theTrigSummary_;
0054 
0055   HLTConfigProvider fHltConfig;
0056 
0057   std::string HLTProcess_;
0058   std::string triggerPath_;
0059   std::string triggerPathAuxiliaryForHadronic_;
0060   edm::InputTag triggerFilter_;
0061   edm::InputTag triggerJetFilter_;
0062   double ptThrJetTrig_;
0063   double etaThrJetTrig_;
0064   double ptThrJet_;
0065   double etaThrJet_;
0066   double metCut_;
0067 
0068   // Histograms
0069   MonitorElement *h_pfMetPhi;
0070   MonitorElement *h_pfJetPt;
0071   MonitorElement *h_pfJetEta;
0072   MonitorElement *h_pfJetPhi;
0073   MonitorElement *h_pfJet1Jet2DPhi;
0074   MonitorElement *h_caloMetvsPFMet;
0075   MonitorElement *h_triggerMet;
0076   MonitorElement *h_triggerMetPhi;
0077   MonitorElement *h_triggerJetPt;
0078   MonitorElement *h_triggerJetEta;
0079   MonitorElement *h_triggerJetPhi;
0080   MonitorElement *h_pfMetTurnOn_num;
0081   MonitorElement *h_pfMetTurnOn_den;
0082   MonitorElement *h_pfJet2PtTurnOn_num;
0083   MonitorElement *h_pfJet2PtTurnOn_den;
0084 };
0085 
0086 #endif