File indexing completed on 2024-04-06 12:09:51
0001 #ifndef HotlineDQM_H
0002 #define HotlineDQM_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/MuonReco/interface/Muon.h"
0014 #include "DataFormats/MuonReco/interface/MuonFwd.h"
0015
0016
0017 #include "DataFormats/METReco/interface/PFMET.h"
0018 #include "DataFormats/METReco/interface/PFMETCollection.h"
0019 #include "DataFormats/METReco/interface/CaloMET.h"
0020 #include "DataFormats/METReco/interface/CaloMETCollection.h"
0021
0022
0023 #include "DataFormats/JetReco/interface/PFJet.h"
0024 #include "DataFormats/JetReco/interface/CaloJet.h"
0025
0026
0027 #include "DataFormats/EgammaCandidates/interface/Photon.h"
0028 #include "DataFormats/EgammaCandidates/interface/PhotonFwd.h"
0029
0030
0031 #include "DataFormats/Common/interface/TriggerResults.h"
0032 #include "DataFormats/HLTReco/interface/TriggerObject.h"
0033 #include "DataFormats/HLTReco/interface/TriggerEvent.h"
0034 #include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
0035 #include "DataFormats/HLTReco/interface/TriggerEventWithRefs.h"
0036 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
0037
0038 class HotlineDQM : public DQMEDAnalyzer {
0039 public:
0040 HotlineDQM(const edm::ParameterSet& ps);
0041 ~HotlineDQM() override;
0042
0043 static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
0044
0045 protected:
0046 void bookHistograms(DQMStore::IBooker&, edm::Run const&, edm::EventSetup const&) override;
0047 void analyze(edm::Event const& e, edm::EventSetup const& eSetup) override;
0048
0049 private:
0050
0051 edm::EDGetTokenT<reco::MuonCollection> theMuonCollection_;
0052 edm::EDGetTokenT<reco::PFMETCollection> thePfMETCollection_;
0053 edm::EDGetTokenT<reco::CaloMETCollection> theMETCollection_;
0054 edm::EDGetTokenT<reco::CaloJetCollection> theCaloJetCollection_;
0055 edm::EDGetTokenT<reco::PhotonCollection> thePhotonCollection_;
0056 edm::EDGetTokenT<edm::TriggerResults> triggerResults_;
0057 edm::EDGetTokenT<trigger::TriggerEvent> theTrigSummary_;
0058
0059 std::string triggerPath_;
0060 edm::InputTag triggerFilter_;
0061
0062 bool useMuons, useMet, usePFMet, useHT, usePhotons;
0063
0064
0065 MonitorElement* h_MuPt;
0066 MonitorElement* h_PhotonPt;
0067 MonitorElement* h_HT;
0068 MonitorElement* h_MetPt;
0069 MonitorElement* h_PFMetPt;
0070
0071 MonitorElement* h_OnlineMuPt;
0072 MonitorElement* h_OnlinePhotonPt;
0073 MonitorElement* h_OnlineHT;
0074 MonitorElement* h_OnlineMetPt;
0075 MonitorElement* h_OnlinePFMetPt;
0076 };
0077
0078 #endif