File indexing completed on 2024-04-06 12:08:11
0001 #ifndef RPCEventSummary_H
0002 #define RPCEventSummary_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 #include <string>
0012
0013 class RPCEventSummary : public DQMEDHarvester {
0014 public:
0015
0016 RPCEventSummary(const edm::ParameterSet &ps);
0017
0018
0019 ~RPCEventSummary() override;
0020
0021 protected:
0022 void beginJob() override;
0023 void dqmEndLuminosityBlock(DQMStore::IBooker &,
0024 DQMStore::IGetter &,
0025 edm::LuminosityBlock const &,
0026 edm::EventSetup const &) override;
0027 void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
0028
0029 private:
0030 void clientOperation(DQMStore::IGetter &igetter);
0031
0032 edm::ESGetToken<RunInfo, RunInfoRcd> runInfoToken_;
0033
0034 std::string eventInfoPath_, prefixDir_;
0035
0036
0037 bool enableReportSummary_;
0038 int prescaleFactor_, minimumEvents_;
0039
0040 bool init_, isIn_;
0041 bool offlineDQM_;
0042 int lumiCounter_;
0043 std::string globalFolder_, prefixFolder_;
0044
0045 int numberDisk_;
0046 bool doEndcapCertification_;
0047 std::pair<int, int> FEDRange_;
0048 int NumberOfFeds_;
0049
0050 enum RPCQualityFlags { DEAD = 6, PARTIALLY_DEAD = 5 };
0051 };
0052
0053 #endif