File indexing completed on 2024-04-06 12:09:45
0001 #ifndef __DQMOffline_PFTau_PFMuonDQMAnalyzer__
0002 #define __DQMOffline_PFTau_PFMuonDQMAnalyzer__
0003
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0006
0007 #include "FWCore/Utilities/interface/EDGetToken.h"
0008 #include "FWCore/Utilities/interface/InputTag.h"
0009
0010 #include "DQMOffline/PFTau/interface/PFCandidateMonitor.h"
0011
0012 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0013
0014 class PFMuonDQMAnalyzer : public DQMEDAnalyzer {
0015 public:
0016 PFMuonDQMAnalyzer(const edm::ParameterSet ¶meterSet);
0017
0018 private:
0019 void analyze(edm::Event const &, edm::EventSetup const &) override;
0020
0021 void bookHistograms(DQMStore::IBooker &, edm::Run const &, edm::EventSetup const &) override;
0022
0023 edm::EDGetTokenT<edm::View<reco::Muon>> myCand_;
0024 edm::EDGetTokenT<edm::View<reco::Muon>> myMatchedCand_;
0025 edm::InputTag matchLabel_;
0026 edm::InputTag inputLabel_;
0027 std::string benchmarkLabel_;
0028 bool createEfficiencyHistos_;
0029
0030 double ptBase_;
0031 double ptNotPF_;
0032
0033 PFCandidateMonitor pfCandidateMonitor_;
0034
0035 edm::ParameterSet pSet_;
0036 std::string eventInfoFolder_;
0037 std::string subsystemname_;
0038
0039 int nBadEvents_;
0040 };
0041
0042 #endif