Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2024-04-06 12:09:38

0001 #ifndef TriggerMatchEfficiencyPlotter_H
0002 #define TriggerMatchEfficiencyPlotter_H
0003 /** \class TriggerMatch monitor
0004  *  *
0005  *   *  DQM monitoring source for Trigger matching efficiency plotter  feature added to miniAOD
0006  *    *
0007  *     *  \author Bibhuprasad Mahakud (Purdue University, West Lafayette, USA)
0008  *      */
0009 
0010 #include "FWCore/Framework/interface/Frameworkfwd.h"
0011 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0012 #include "DataFormats/Common/interface/Handle.h"
0013 #include <FWCore/Framework/interface/ESHandle.h>
0014 #include <FWCore/Framework/interface/Event.h>
0015 #include <FWCore/Framework/interface/MakerMacros.h>
0016 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0017 #include <FWCore/Framework/interface/LuminosityBlock.h>
0018 
0019 #include "DQMServices/Core/interface/DQMStore.h"
0020 #include "FWCore/ServiceRegistry/interface/Service.h"
0021 #include "FWCore/Framework/interface/Run.h"
0022 
0023 #include <memory>
0024 #include <iostream>
0025 #include <string>
0026 #include <vector>
0027 #include <map>
0028 #include "TH1F.h"
0029 
0030 class TriggerMatchEfficiencyPlotter : public DQMEDHarvester {
0031 public:
0032   /// Constructor
0033   TriggerMatchEfficiencyPlotter(const edm::ParameterSet& ps);
0034 
0035   /// Destructor
0036   ~TriggerMatchEfficiencyPlotter() override;
0037 
0038 protected:
0039   /// DQM Client Diagnostic
0040   void dqmEndJob(DQMStore::IBooker&, DQMStore::IGetter&) override;  //performed in the endJob
0041 
0042 private:
0043   edm::ParameterSet parameters;
0044 
0045   std::string triggerhistName1_;
0046   std::string triggerhistName2_;
0047 
0048   // efficiency histograms
0049   MonitorElement* h_eff_Path1_eta_tight;
0050   MonitorElement* h_eff_Path1_pt_tight;
0051   MonitorElement* h_eff_Path1_phi_tight;
0052 
0053   MonitorElement* h_eff_Path2_eta_tight;
0054   MonitorElement* h_eff_Path2_pt_tight;
0055   MonitorElement* h_eff_Path2_phi_tight;
0056 
0057   std::string theFolder;
0058 };
0059 
0060 #endif