Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef SUSY_HLT_Electron_BJet_H
0002 #define SUSY_HLT_Electron_BJet_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 // Electron
0013 #include "DataFormats/EgammaCandidates/interface/Electron.h"
0014 #include "DataFormats/EgammaCandidates/interface/ElectronFwd.h"
0015 
0016 #include "DataFormats/EgammaCandidates/interface/GsfElectron.h"
0017 #include "DataFormats/EgammaCandidates/interface/GsfElectronFwd.h"
0018 
0019 // Jets
0020 #include "DataFormats/JetReco/interface/CaloJet.h"
0021 #include "DataFormats/JetReco/interface/PFJet.h"
0022 
0023 // Trigger
0024 #include "DataFormats/Common/interface/TriggerResults.h"
0025 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
0026 #include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
0027 #include "DataFormats/HLTReco/interface/TriggerObject.h"
0028 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
0029 
0030 class SUSY_HLT_Electron_BJet : public DQMEDAnalyzer {
0031 public:
0032   SUSY_HLT_Electron_BJet(const edm::ParameterSet &ps);
0033   ~SUSY_HLT_Electron_BJet() override;
0034 
0035 protected:
0036   void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override;
0037   void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0038   void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override;
0039 
0040 private:
0041   // histos booking function
0042   void bookHistos(DQMStore::IBooker &);
0043 
0044   // variables from config file
0045   edm::EDGetTokenT<reco::GsfElectronCollection> theElectronCollection_;
0046   edm::EDGetTokenT<reco::PFJetCollection> thePfJetCollection_;
0047   edm::EDGetTokenT<reco::CaloJetCollection> theCaloJetCollection_;
0048   edm::EDGetTokenT<edm::TriggerResults> triggerResults_;
0049   edm::EDGetTokenT<trigger::TriggerEvent> theTrigSummary_;
0050 
0051   HLTConfigProvider fHltConfig;
0052 
0053   std::string HLTProcess_;
0054   std::string triggerPath_;
0055   edm::InputTag triggerFilterEle_;
0056   edm::InputTag triggerFilterJet_;
0057   double ptThrJet_;
0058   double etaThrJet_;
0059 
0060   // Histograms
0061   MonitorElement *h_triggerElePt;
0062   MonitorElement *h_triggerEleEta;
0063   MonitorElement *h_triggerElePhi;
0064 
0065   MonitorElement *h_triggerJetPt;
0066   MonitorElement *h_triggerJetEta;
0067   MonitorElement *h_triggerJetPhi;
0068 };
0069 
0070 #endif