Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 13:13:19

0001 // -*- c++ -*-
0002 #ifndef HLTTauDQMPathSummaryPlotter_h
0003 #define HLTTauDQMPathSummaryPlotter_h
0004 
0005 #include "DQMOffline/Trigger/interface/HLTTauDQMPlotter.h"
0006 #include "DQMOffline/Trigger/interface/HistoWrapper.h"
0007 
0008 #include <vector>
0009 
0010 class HLTTauDQMPath;
0011 namespace edm {
0012   class TriggerResults;
0013 }
0014 namespace trigger {
0015   class TriggerEvent;
0016 }
0017 
0018 class HLTTauDQMPathSummaryPlotter : private HLTTauDQMPlotter {
0019 public:
0020   HLTTauDQMPathSummaryPlotter(const edm::ParameterSet& pset,
0021                               bool doRefAnalysis,
0022                               const std::string& dqmBaseFolder,
0023                               double hltMatchDr);
0024   ~HLTTauDQMPathSummaryPlotter();
0025 
0026   using HLTTauDQMPlotter::isValid;
0027 
0028   void setPathObjects(const std::vector<const HLTTauDQMPath*>& pathObjects) { pathObjects_ = pathObjects; }
0029   void bookHistograms(HistoWrapper& iWrapper, DQMStore::IBooker& iBooker);
0030 
0031   void analyze(const edm::TriggerResults& triggerResults,
0032                const trigger::TriggerEvent& triggerEvent,
0033                const HLTTauDQMOfflineObjects& refCollection);
0034 
0035 private:
0036   const double hltMatchDr_;
0037   const bool doRefAnalysis_;
0038 
0039   std::vector<const HLTTauDQMPath*> pathObjects_;
0040 
0041   MonitorElement* all_events;
0042   MonitorElement* accepted_events;
0043 };
0044 #endif