Back to home page

Project CMSSW displayed by LXR

 
 

    


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

0001 #ifndef DQMOffline_PFTau_PFMETMonitor_h
0002 #define DQMOffline_PFTau_PFMETMonitor_h
0003 
0004 #include "DQMOffline/PFTau/interface/Benchmark.h"
0005 #include "DQMOffline/PFTau/interface/CandidateBenchmark.h"
0006 #include "DQMOffline/PFTau/interface/MatchCandidateBenchmark.h"
0007 #include "DataFormats/METReco/interface/METCollection.h"
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009 
0010 #include <vector>
0011 class PFMETMonitor : public Benchmark {
0012 public:
0013   PFMETMonitor(Benchmark::Mode mode = Benchmark::DEFAULT);
0014 
0015   ~PFMETMonitor() override;
0016 
0017   /// set the parameters locally
0018   void setParameters(Benchmark::Mode mode,
0019                      float ptmin,
0020                      float ptmax,
0021                      float etamin,
0022                      float etamax,
0023                      float phimin,
0024                      float phimax,
0025                      bool metSpHistos);
0026 
0027   /// set the parameters accessing them from ParameterSet
0028   void setParameters(const edm::ParameterSet &parameterSet);
0029 
0030   /// set directory (to use in ROOT)
0031   void setDirectory(TDirectory *dir) override;
0032 
0033   /// book histograms
0034   void setup(DQMStore::IBooker &b);
0035   void setup(DQMStore::IBooker &b, const edm::ParameterSet &parameterSet);
0036 
0037   void fillOne(const reco::MET &met, const reco::MET &matchedMet, float &minVal, float &maxVal);
0038 
0039   void fillOne(const reco::MET &met,
0040                const reco::MET &matchedMet,
0041                float &minVal,
0042                float &maxVal,
0043                const edm::ParameterSet &parameterSet);
0044 
0045 protected:
0046   TH1F *px_;
0047   TH1F *sumEt_;
0048   TH1F *delta_ex_;
0049   TH2F *delta_ex_VS_set_;
0050   TH2F *delta_set_VS_set_;
0051   TH2F *delta_set_Over_set_VS_set_;
0052 
0053   TProfile *profile_delta_ex_VS_set_;
0054   TProfile *profile_delta_set_VS_set_;
0055   TProfile *profile_delta_set_Over_set_VS_set_;
0056 
0057   TProfile *profileRMS_delta_ex_VS_set_;
0058   TProfile *profileRMS_delta_set_VS_set_;
0059   TProfile *profileRMS_delta_set_Over_set_VS_set_;
0060 
0061   CandidateBenchmark candBench_;
0062   MatchCandidateBenchmark matchCandBench_;
0063 
0064   bool createMETSpecificHistos_;
0065   bool histogramBooked_;
0066 };
0067 #endif