UTC_SL1

UTC_SL2

UTC_SLUMMARY

Macros

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56
#ifndef FWCore_MessageService_test_UnitTestClient_SLumi_h
#define FWCore_MessageService_test_UnitTestClient_SLumi_h

#include "FWCore/Framework/interface/Frameworkfwd.h"
#include "FWCore/Framework/interface/one/EDAnalyzer.h"
#include "FWCore/MessageLogger/interface/MessageLogger.h"

#include "FWCore/ParameterSet/interface/ParameterSet.h"

namespace edm {
  class ParameterSet;
}

namespace edmtest {

  class UTC_SL1 : public edm::one::EDAnalyzer<> {
  public:
    explicit UTC_SL1(edm::ParameterSet const &p) {
      identifier = p.getUntrackedParameter<int>("identifier", 99);
      edm::GroupLogStatistics("grouped_cat");
    }

    void analyze(edm::Event const &e, edm::EventSetup const &c) override;

  private:
    int identifier;
    static bool enableNotYetCalled;
    static int n;
  };

  class UTC_SL2 : public edm::one::EDAnalyzer<> {
  public:
    explicit UTC_SL2(edm::ParameterSet const &p) { identifier = p.getUntrackedParameter<int>("identifier", 98); }

    void analyze(edm::Event const &e, edm::EventSetup const &c) override;

  private:
    int identifier;
    static int n;
  };

  class UTC_SLUMMARY : public edm::one::EDAnalyzer<edm::one::WatchLuminosityBlocks> {
  public:
    explicit UTC_SLUMMARY(edm::ParameterSet const &) {}

    void analyze(edm::Event const &e, edm::EventSetup const &c) override;

    void beginLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &c) override {}
    void endLuminosityBlock(edm::LuminosityBlock const &lb, edm::EventSetup const &c) override;

  private:
  };

}  // namespace edmtest

#endif  // FWCore_MessageService_test_UnitTestClient_SLumi_h