SUSY_HLT_VBF_Mu

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98
#ifndef SUSY_HLT_VBF_Mu_H
#define SUSY_HLT_VBF_Mu_H

// event
#include "FWCore/Framework/interface/Event.h"
#include "FWCore/Framework/interface/EventSetup.h"

// DQM
#include "DQMServices/Core/interface/DQMEDAnalyzer.h"
#include "DQMServices/Core/interface/DQMStore.h"

// MET
#include "DataFormats/METReco/interface/CaloMET.h"
#include "DataFormats/METReco/interface/CaloMETCollection.h"
#include "DataFormats/METReco/interface/PFMET.h"
#include "DataFormats/METReco/interface/PFMETCollection.h"

// Muon
#include "DataFormats/MuonReco/interface/Muon.h"
#include "DataFormats/MuonReco/interface/MuonFwd.h"

// Jets
#include "DataFormats/JetReco/interface/CaloJet.h"
#include "DataFormats/JetReco/interface/PFJet.h"

// Trigger
#include "DataFormats/Common/interface/TriggerResults.h"
#include "DataFormats/HLTReco/interface/TriggerEvent.h"
#include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
#include "DataFormats/HLTReco/interface/TriggerObject.h"
#include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"

class SUSY_HLT_VBF_Mu : public DQMEDAnalyzer {
public:
  SUSY_HLT_VBF_Mu(const edm::ParameterSet &ps);
  ~SUSY_HLT_VBF_Mu() override;

protected:
  void dqmBeginRun(edm::Run const &, edm::EventSetup const &) override;
  void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
  void analyze(edm::Event const &e, edm::EventSetup const &eSetup) override;

private:
  // histos booking function
  void bookHistos(DQMStore::IBooker &);

  // variables from config file
  edm::EDGetTokenT<reco::MuonCollection> theMuonCollection_;
  edm::EDGetTokenT<reco::PFJetCollection> thePfJetCollection_;
  edm::EDGetTokenT<reco::CaloJetCollection> theCaloJetCollection_;
  edm::EDGetTokenT<edm::TriggerResults> triggerResults_;
  edm::EDGetTokenT<trigger::TriggerEvent> theTrigSummary_;
  edm::EDGetTokenT<reco::PFMETCollection> thePfMETCollection_;
  edm::EDGetTokenT<reco::CaloMETCollection> theCaloMETCollection_;
  HLTConfigProvider fHltConfig;

  std::string HLTProcess_;
  std::string triggerPath_;
  edm::InputTag triggerMetFilter_;
  edm::InputTag triggerDiJetFilter_;
  edm::InputTag triggerHTFilter_;
  edm::InputTag triggerMuFilter_;
  edm::InputTag triggerCaloMETFilter_;
  double ptThrJet_;
  double etaThrJet_;
  double ptThrJetTrig_;
  double etaThrJetTrig_;
  double metCut_;
  double deltaetaVBFJets;
  double dijet;
  double dijetOff;
  double pfmetOnlinethreshold;
  double muonOnlinethreshold;
  double htOnlinethreshold;
  double mjjOnlinethreshold;
  // Histograms
  MonitorElement *h_triggerMuPt;
  MonitorElement *h_triggerMuEta;
  MonitorElement *h_triggerMuPhi;
  MonitorElement *h_triggerCaloMet;
  MonitorElement *h_triggerMet;
  MonitorElement *h_triggerMetPhi;
  MonitorElement *h_Met;
  MonitorElement *h_ht;
  MonitorElement *h_DiJetMass;
  MonitorElement *h_den_muonpt;
  MonitorElement *h_num_muonpt;
  MonitorElement *h_den_muoneta;
  MonitorElement *h_num_muoneta;
  MonitorElement *h_den_mjj;
  MonitorElement *h_num_mjj;
  MonitorElement *h_den_ht;
  MonitorElement *h_num_ht;
  MonitorElement *h_den_met;
  MonitorElement *h_num_met;
};

#endif