CMS 3D CMS Logo

List of all members | Public Member Functions | Static Public Member Functions | Private Attributes
edm::service::TestService Class Reference

Public Member Functions

void preBeginProcessBlock (GlobalContext const &)
 
void preEndProcessBlock (GlobalContext const &)
 
void preGlobalBeginLumi (GlobalContext const &)
 
void preGlobalBeginRun (GlobalContext const &)
 
void preGlobalEndLumi (GlobalContext const &)
 
void preGlobalEndRun (GlobalContext const &)
 
 TestService (const ParameterSet &, ActivityRegistry &)
 

Static Public Member Functions

static void fillDescriptions (edm::ConfigurationDescriptions &)
 

Private Attributes

bool printTestMessageLoggerErrors_
 

Detailed Description

Definition at line 23 of file TestService.cc.

Constructor & Destructor Documentation

◆ TestService()

TestService::TestService ( const ParameterSet iPS,
ActivityRegistry iRegistry 
)

Definition at line 49 of file TestService.cc.

50  : printTestMessageLoggerErrors_(iPS.getUntrackedParameter<bool>("printTestMessageLoggerErrors")) {
51  iRegistry.watchPreBeginProcessBlock(this, &TestService::preBeginProcessBlock);
52 
53  iRegistry.watchPreEndProcessBlock(this, &TestService::preEndProcessBlock);
54 
55  iRegistry.watchPreGlobalBeginRun(this, &TestService::preGlobalBeginRun);
56 
57  iRegistry.watchPreGlobalEndRun(this, &TestService::preGlobalEndRun);
58 
59  iRegistry.watchPreGlobalBeginLumi(this, &TestService::preGlobalBeginLumi);
60 
61  iRegistry.watchPreGlobalEndLumi(this, &TestService::preGlobalEndLumi);
62 }

References preBeginProcessBlock(), preEndProcessBlock(), preGlobalBeginLumi(), preGlobalBeginRun(), preGlobalEndLumi(), preGlobalEndRun(), edm::ActivityRegistry::watchPreBeginProcessBlock(), edm::ActivityRegistry::watchPreEndProcessBlock(), edm::ActivityRegistry::watchPreGlobalBeginLumi(), edm::ActivityRegistry::watchPreGlobalBeginRun(), edm::ActivityRegistry::watchPreGlobalEndLumi(), and edm::ActivityRegistry::watchPreGlobalEndRun().

Member Function Documentation

◆ fillDescriptions()

void TestService::fillDescriptions ( edm::ConfigurationDescriptions descriptions)
static

Definition at line 64 of file TestService.cc.

64  {
66  desc.addUntracked<bool>("printTestMessageLoggerErrors", false)
67  ->setComment("Prints MessageLogger errors to test formatting of such messages when printed from Services");
68  descriptions.add("TestService", desc);
69 }

References edm::ConfigurationDescriptions::add(), and submitPVResolutionJobs::desc.

◆ preBeginProcessBlock()

void TestService::preBeginProcessBlock ( GlobalContext const &  )

Definition at line 71 of file TestService.cc.

71  {
73  edm::LogError("TestMessageLogger") << "test message from TestService::preBeginProcessBlock";
74  }
75 }

References printTestMessageLoggerErrors_.

Referenced by TestService().

◆ preEndProcessBlock()

void TestService::preEndProcessBlock ( GlobalContext const &  )

Definition at line 77 of file TestService.cc.

77  {
79  edm::LogError("TestMessageLogger") << "test message from TestService::preEndProcessBlock";
80  }
81 }

References printTestMessageLoggerErrors_.

Referenced by TestService().

◆ preGlobalBeginLumi()

void TestService::preGlobalBeginLumi ( GlobalContext const &  gc)

Definition at line 95 of file TestService.cc.

95  {
97  edm::LogError("TestMessageLogger") << "test message from TestService::preGlobalBeginLumi";
98  }
99 }

References printTestMessageLoggerErrors_.

Referenced by TestService().

◆ preGlobalBeginRun()

void TestService::preGlobalBeginRun ( GlobalContext const &  )

Definition at line 83 of file TestService.cc.

83  {
85  edm::LogError("TestMessageLogger") << "test message from TestService::preGlobalBeginRun";
86  }
87 }

References printTestMessageLoggerErrors_.

Referenced by TestService().

◆ preGlobalEndLumi()

void TestService::preGlobalEndLumi ( GlobalContext const &  gc)

Definition at line 101 of file TestService.cc.

101  {
103  edm::LogError("TestMessageLogger") << "test message from TestService::preGlobalEndLumi";
104  }
105 }

References printTestMessageLoggerErrors_.

Referenced by TestService().

◆ preGlobalEndRun()

void TestService::preGlobalEndRun ( GlobalContext const &  )

Definition at line 89 of file TestService.cc.

89  {
91  edm::LogError("TestMessageLogger") << "test message from TestService::preGlobalEndRun";
92  }
93 }

References printTestMessageLoggerErrors_.

Referenced by TestService().

Member Data Documentation

◆ printTestMessageLoggerErrors_

bool edm::service::TestService::printTestMessageLoggerErrors_
private
edm::service::TestService::preBeginProcessBlock
void preBeginProcessBlock(GlobalContext const &)
Definition: TestService.cc:71
edm::service::TestService::preGlobalBeginLumi
void preGlobalBeginLumi(GlobalContext const &)
Definition: TestService.cc:95
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
edm::service::TestService::printTestMessageLoggerErrors_
bool printTestMessageLoggerErrors_
Definition: TestService.cc:42
edm::service::TestService::preGlobalEndLumi
void preGlobalEndLumi(GlobalContext const &)
Definition: TestService.cc:101
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:57
edm::service::TestService::preGlobalEndRun
void preGlobalEndRun(GlobalContext const &)
Definition: TestService.cc:89
edm::service::TestService::preEndProcessBlock
void preEndProcessBlock(GlobalContext const &)
Definition: TestService.cc:77
edm::LogError
Log< level::Error, false > LogError
Definition: MessageLogger.h:123
edm::service::TestService::preGlobalBeginRun
void preGlobalBeginRun(GlobalContext const &)
Definition: TestService.cc:83
submitPVResolutionJobs.desc
string desc
Definition: submitPVResolutionJobs.py:251