Back to home page

Project CMSSW displayed by LXR

 
 

    


File indexing completed on 2021-02-14 14:33:01

0001 #ifndef HCALVALIDATION_CALOTOWERS_NOISERATESCLIENT
0002 #define HCALVALIDATION_CALOTOWERS_NOISERATESCLIENT
0003 
0004 // -*- C++ -*-
0005 //
0006 //
0007 /*
0008  Description: This is a NoiseRates client meant to plot noiserates quantities
0009 */
0010 
0011 //
0012 // Originally create by: Hongxuan Liu
0013 //                        May 2010
0014 //
0015 
0016 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0017 #include "DQMServices/Core/interface/DQMStore.h"
0018 #include "DataFormats/Common/interface/Handle.h"
0019 #include "DataFormats/Math/interface/LorentzVector.h"
0020 #include "FWCore/Framework/interface/Event.h"
0021 #include "FWCore/Framework/interface/EventSetup.h"
0022 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0023 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0024 #include "FWCore/ServiceRegistry/interface/Service.h"
0025 #include <memory>
0026 #include <unistd.h>
0027 
0028 #include <fstream>
0029 #include <iostream>
0030 #include <vector>
0031 
0032 class NoiseRatesClient : public DQMEDHarvester {
0033 private:
0034   std::string outputFile_;
0035 
0036   edm::ParameterSet conf_;
0037 
0038   bool verbose_;
0039   bool debug_;
0040 
0041   std::string dirName_;
0042   std::string dirNameJet_;
0043   std::string dirNameMET_;
0044 
0045 public:
0046   explicit NoiseRatesClient(const edm::ParameterSet &);
0047   ~NoiseRatesClient() override;
0048 
0049   void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
0050   virtual void runClient_(DQMStore::IBooker &, DQMStore::IGetter &);
0051 
0052   int NoiseRatesEndjob(const std::vector<MonitorElement *> &hcalMEs);
0053 };
0054 
0055 #endif