File indexing completed on 2024-04-06 12:08:11
0001 #ifndef RPCMonitorClient_RPCDCSSummary_H
0002 #define RPCMonitorClient_RPCDCSSummary_H
0003
0004 #include "DQMServices/Core/interface/DQMStore.h"
0005 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0006 #include "CondFormats/RunInfo/interface/RunInfo.h"
0007 #include "CondFormats/RunInfo/interface/RunSummary.h"
0008 #include "CondFormats/DataRecord/interface/RunSummaryRcd.h"
0009 #include <map>
0010
0011 class RPCDCSSummary : public DQMEDHarvester {
0012 public:
0013 RPCDCSSummary(const edm::ParameterSet &);
0014 ~RPCDCSSummary() 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 checkDCSbit(edm::EventSetup const &);
0027
0028 edm::ESGetToken<RunInfo, RunInfoRcd> runInfoToken_;
0029
0030 bool init_;
0031 double defaultValue_;
0032
0033 bool offlineDQM_;
0034
0035 MonitorElement *DCSMap_;
0036 MonitorElement *totalDCSFraction;
0037 constexpr static int nWheels_ = 5;
0038 MonitorElement *dcsWheelFractions[nWheels_];
0039 constexpr static int nDisks_ = 10;
0040 MonitorElement *dcsDiskFractions[nDisks_];
0041 std::pair<int, int> FEDRange_;
0042 int numberOfDisks_;
0043 int NumberOfFeds_;
0044 };
0045
0046 #endif