File indexing completed on 2024-04-06 12:08:11
0001 #ifndef RPCMonitorClient_RPCDataCertification_H
0002 #define RPCMonitorClient_RPCDataCertification_H
0003
0004 #include "FWCore/ServiceRegistry/interface/Service.h"
0005 #include "DQMServices/Core/interface/DQMStore.h"
0006 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0007 #include "CondFormats/RunInfo/interface/RunInfo.h"
0008 #include "CondFormats/RunInfo/interface/RunSummary.h"
0009 #include "CondFormats/DataRecord/interface/RunSummaryRcd.h"
0010
0011 class RPCDataCertification : public DQMEDHarvester {
0012 public:
0013 RPCDataCertification(const edm::ParameterSet& pset);
0014 ~RPCDataCertification() override = default;
0015
0016 protected:
0017 void beginJob() override;
0018 void dqmEndLuminosityBlock(DQMStore::IBooker&,
0019 DQMStore::IGetter&,
0020 edm::LuminosityBlock const&,
0021 edm::EventSetup const&) override;
0022 void dqmEndJob(DQMStore::IBooker&, DQMStore::IGetter&) override;
0023
0024 private:
0025 void myBooker(DQMStore::IBooker&);
0026 void checkFED(edm::EventSetup const&);
0027
0028 edm::ESGetToken<RunInfo, RunInfoRcd> runInfoToken_;
0029
0030 MonitorElement* CertMap_;
0031 MonitorElement* totalCertFraction;
0032 constexpr static int nWheels_ = 5;
0033 MonitorElement* certWheelFractions[nWheels_];
0034 constexpr static int nDisks_ = 10;
0035 MonitorElement* certDiskFractions[nDisks_];
0036 std::pair<int, int> FEDRange_;
0037 int numberOfDisks_;
0038 int NumberOfFeds_;
0039 bool init_, offlineDQM_;
0040 double defaultValue_;
0041 };
0042
0043 #endif