File indexing completed on 2024-04-06 12:09:51
0001
0002
0003 #ifndef DQMOffline_Trigger_HLTTauDQMOfflineSource_h
0004 #define DQMOffline_Trigger_HLTTauDQMOfflineSource_h
0005
0006 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0007 #include "DataFormats/Common/interface/Handle.h"
0008 #include "FWCore/Framework/interface/Event.h"
0009 #include "FWCore/Framework/interface/EventSetup.h"
0010 #include "DataFormats/Common/interface/TriggerResults.h"
0011 #include "HLTrigger/HLTcore/interface/HLTConfigProvider.h"
0012 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0013
0014
0015 #include "DQMOffline/Trigger/interface/HistoWrapper.h"
0016 #include "DQMOffline/Trigger/interface/HLTTauDQML1Plotter.h"
0017 #include "DQMOffline/Trigger/interface/HLTTauDQMPathPlotter.h"
0018 #include "DQMOffline/Trigger/interface/HLTTauDQMPathSummaryPlotter.h"
0019 #include "DQMOffline/Trigger/interface/HLTTauDQMTagAndProbePlotter.h"
0020
0021 #include "CommonTools/TriggerUtils/interface/GenericTriggerEventFlag.h"
0022
0023 #include <regex>
0024
0025
0026
0027
0028
0029 class HLTTauDQMOfflineSource : public DQMEDAnalyzer {
0030 public:
0031 HLTTauDQMOfflineSource(const edm::ParameterSet&);
0032 ~HLTTauDQMOfflineSource() override;
0033
0034 protected:
0035 void dqmBeginRun(const edm::Run& r, const edm::EventSetup& c) override;
0036 void bookHistograms(DQMStore::IBooker& iBooker, const edm::Run& r, const edm::EventSetup& c) override;
0037 void analyze(const edm::Event& e, const edm::EventSetup& c) override;
0038
0039 private:
0040 std::string hltProcessName_;
0041 edm::InputTag triggerResultsSrc_;
0042 edm::EDGetTokenT<edm::TriggerResults> triggerResultsToken_;
0043 edm::InputTag triggerEventSrc_;
0044 edm::EDGetTokenT<trigger::TriggerEvent> triggerEventToken_;
0045
0046
0047 const std::string pathRegex_;
0048 const int nPtBins_, nEtaBins_, nPhiBins_;
0049 const double ptMax_, highPtMax_, l1MatchDr_, hltMatchDr_;
0050 const std::string dqmBaseFolder_;
0051
0052 HistoWrapper* iWrapper;
0053
0054 HLTConfigProvider HLTCP_;
0055
0056
0057 bool doRefAnalysis_;
0058 struct RefObject {
0059 int objID;
0060 edm::EDGetTokenT<LVColl> token;
0061 };
0062 std::vector<RefObject> refObjects_;
0063 bool tagAndProbe_;
0064 std::vector<edm::ParameterSet> tagAndProbePaths;
0065
0066
0067 int counterEvt_;
0068 const int prescaleEvt_;
0069
0070
0071 std::unique_ptr<HLTTauDQML1Plotter> l1Plotter_;
0072 std::vector<HLTTauDQMPathPlotter> pathPlotters_;
0073 std::unique_ptr<HLTTauDQMPathSummaryPlotter> pathSummaryPlotter_;
0074 std::vector<std::unique_ptr<HLTTauDQMTagAndProbePlotter> > tagandprobePlotters_;
0075 };
0076
0077 #endif