File indexing completed on 2024-04-06 12:08:17
0001 #ifndef DQM_SiPixelMonitorClient_SiPixelDaqInfo_H
0002 #define DQM_SiPixelMonitorClient_SiPixelDaqInfo_H
0003
0004
0005 #include <fstream>
0006 #include <iostream>
0007 #include <memory>
0008
0009
0010 #include "DQMServices/Core/interface/DQMEDHarvester.h"
0011
0012 #include "CondFormats/DataRecord/interface/RunSummaryRcd.h"
0013 #include "CondFormats/RunInfo/interface/RunInfo.h"
0014 #include "DataFormats/FEDRawData/interface/FEDRawDataCollection.h"
0015
0016 class SiPixelDaqInfo : public DQMEDHarvester {
0017 public:
0018 explicit SiPixelDaqInfo(const edm::ParameterSet &);
0019 ~SiPixelDaqInfo() override;
0020
0021 private:
0022 void dqmEndLuminosityBlock(DQMStore::IBooker &,
0023 DQMStore::IGetter &,
0024 const edm::LuminosityBlock &,
0025 const edm::EventSetup &) override;
0026 void dqmEndJob(DQMStore::IBooker &, DQMStore::IGetter &) override;
0027
0028 MonitorElement *Fraction_;
0029 MonitorElement *FractionBarrel_;
0030 MonitorElement *FractionEndcap_;
0031
0032 std::pair<int, int> FEDRange_;
0033
0034 int NumberOfFeds_;
0035
0036 int NEvents_;
0037 int nFEDsBarrel_;
0038 int nFEDsEndcap_;
0039 std::string daqSource_;
0040 int FEDs_[40];
0041
0042 bool firstLumi;
0043
0044
0045 edm::EDGetTokenT<FEDRawDataCollection> daqSourceToken_;
0046 edm::ESGetToken<RunInfo, RunInfoRcd> runInfoToken_;
0047 };
0048
0049 #endif