File indexing completed on 2024-04-06 12:07:15
0001 #ifndef IntegrityClient_H
0002 #define IntegrityClient_H
0003
0004 #include "DQWorkerClient.h"
0005 #include "FWCore/Framework/interface/ESHandle.h"
0006 #include "FWCore/Framework/interface/EventSetup.h"
0007 #include "CondFormats/EcalObjects/interface/EcalChannelStatus.h"
0008 #include "CondFormats/DataRecord/interface/EcalChannelStatusRcd.h"
0009
0010 namespace ecaldqm {
0011 class IntegrityClient : public DQWorkerClient {
0012 public:
0013 IntegrityClient();
0014 ~IntegrityClient() override {}
0015
0016 void producePlots(ProcessType) override;
0017 void endLuminosityBlock(edm::LuminosityBlock const&, edm::EventSetup const&) override;
0018
0019 private:
0020 void setParams(edm::ParameterSet const&) override;
0021 edm::ESGetToken<EcalChannelStatus, EcalChannelStatusRcd> chStatusToken;
0022 const EcalChannelStatus* chStatus;
0023 void setTokens(edm::ConsumesCollector&) override;
0024
0025 float errFractionThreshold_;
0026 int processedEvents;
0027 };
0028 }
0029
0030 #endif