File indexing completed on 2024-04-06 12:12:48
0001 #ifndef FWCore_MessageService_test_UnitTestClient_SLumi_h
0002 #define FWCore_MessageService_test_UnitTestClient_SLumi_h
0003
0004 #include "FWCore/Framework/interface/Frameworkfwd.h"
0005 #include "FWCore/Framework/interface/one/EDAnalyzer.h"
0006 #include "FWCore/MessageLogger/interface/MessageLogger.h"
0007
0008 #include "FWCore/ParameterSet/interface/ParameterSet.h"
0009
0010 namespace edm {
0011 class ParameterSet;
0012 }
0013
0014 namespace edmtest {
0015
0016 class UTC_SL1 : public edm::one::EDAnalyzer<> {
0017 public:
0018 explicit UTC_SL1(edm::ParameterSet const &p) {
0019 identifier = p.getUntrackedParameter<int>("identifier", 99);
0020 edm::GroupLogStatistics("grouped_cat");
0021 }
0022
0023 void analyze(edm::Event const &e, edm::EventSetup const &c) override;
0024
0025 private:
0026 int identifier;
0027 static bool enableNotYetCalled;
0028 static int n;
0029 };
0030
0031 class UTC_SL2 : public edm::one::EDAnalyzer<> {
0032 public:
0033 explicit UTC_SL2(edm::ParameterSet const &p) { identifier = p.getUntrackedParameter<int>("identifier", 98); }
0034
0035 void analyze(edm::Event const &e, edm::EventSetup const &c) override;
0036
0037 private:
0038 int identifier;
0039 static int n;
0040 };
0041
0042 class UTC_SLUMMARY : public edm::one::EDAnalyzer<edm::one::WatchLuminosityBlocks> {
0043 public:
0044 explicit UTC_SLUMMARY(edm::ParameterSet const &) {}
0045
0046 void analyze(edm::Event const &e, edm::EventSetup const &c) override;
0047
0048 void beginLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &c) override {}
0049 void endLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &c) override;
0050
0051 private:
0052 };
0053
0054 }
0055
0056 #endif