UnitTestService_H

Line Code
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
#ifdef EDM_ML_DEBUG
#undef EDM_ML_DEBUG
#endif

#include "FWCore/MessageLogger/interface/MessageLogger.h"
#include "FWCore/ParameterSet/interface/ParameterSet.h"
#include "FWCore/ServiceRegistry/interface/ActivityRegistry.h"

namespace edmtest {
  class UnitTestService_H {
  public:
    UnitTestService_H(edm::ParameterSet const& iConfig, edm::ActivityRegistry& iRegistry) {
      iRegistry.watchPreSourceNextTransition(
          []() { LogDebug("cat_S") << "Message from watchPreSourceNextTransition"; });
    }
  };
}  // namespace edmtest

#include "FWCore/ServiceRegistry/interface/ServiceMaker.h"
DEFINE_FWK_SERVICE(edmtest::UnitTestService_H);