File indexing completed on 2024-04-06 12:09:24
0001 #ifndef _DQMOFFLINE_HCAL_HCALNOISERATESCLIENT_H_
0002 #define _DQMOFFLINE_HCAL_HCALNOISERATESCLIENT_H_
0003
0004
0005
0006
0007
0008
0009
0010
0011
0012
0013
0014
0015
0016 #include "DQMServices/Core/interface/DQMEDAnalyzer.h"
0017 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0018 #include "DQMServices/Core/interface/DQMStore.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 <memory>
0025 #include <unistd.h>
0026
0027 #include <fstream>
0028 #include <iostream>
0029 #include <vector>
0030
0031 class HcalNoiseRatesClient : public DQMEDHarvester {
0032 private:
0033 std::string outputFile_;
0034
0035 edm::ParameterSet conf_;
0036
0037 bool verbose_;
0038 bool debug_;
0039
0040 std::string dirName_;
0041 std::string dirNameJet_;
0042 std::string dirNameMET_;
0043
0044 public:
0045 explicit HcalNoiseRatesClient(const edm::ParameterSet &);
0046 ~HcalNoiseRatesClient() override;
0047
0048 void beginJob(void) override;
0049 void dqmEndJob(DQMStore::IBooker &,
0050 DQMStore::IGetter &) override;
0051 void beginRun(const edm::Run &run, const edm::EventSetup &c) override;
0052
0053 int NoiseRatesEndjob(const std::vector<MonitorElement *> &hcalMEs);
0054 };
0055
0056 #endif