CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
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 ( const ParameterSet iPS,
ActivityRegistry iRegistry 
)

Definition at line 49 of file TestService.cc.

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().

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 }
void preGlobalBeginLumi(GlobalContext const &)
Definition: TestService.cc:95
void preGlobalEndLumi(GlobalContext const &)
Definition: TestService.cc:101
void preEndProcessBlock(GlobalContext const &)
Definition: TestService.cc:77
void preGlobalEndRun(GlobalContext const &)
Definition: TestService.cc:89
void preBeginProcessBlock(GlobalContext const &)
Definition: TestService.cc:71
void preGlobalBeginRun(GlobalContext const &)
Definition: TestService.cc:83

Member Function Documentation

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

Definition at line 64 of file TestService.cc.

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

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 }
ParameterDescriptionBase * addUntracked(U const &iLabel, T const &value)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
void TestService::preBeginProcessBlock ( GlobalContext const &  )

Definition at line 71 of file TestService.cc.

References printTestMessageLoggerErrors_.

Referenced by TestService().

71  {
73  edm::LogError("TestMessageLogger") << "test message from TestService::preBeginProcessBlock";
74  }
75 }
Log< level::Error, false > LogError
void TestService::preEndProcessBlock ( GlobalContext const &  )

Definition at line 77 of file TestService.cc.

References printTestMessageLoggerErrors_.

Referenced by TestService().

77  {
79  edm::LogError("TestMessageLogger") << "test message from TestService::preEndProcessBlock";
80  }
81 }
Log< level::Error, false > LogError
void TestService::preGlobalBeginLumi ( GlobalContext const &  gc)

Definition at line 95 of file TestService.cc.

References printTestMessageLoggerErrors_.

Referenced by TestService().

95  {
97  edm::LogError("TestMessageLogger") << "test message from TestService::preGlobalBeginLumi";
98  }
99 }
Log< level::Error, false > LogError
void TestService::preGlobalBeginRun ( GlobalContext const &  )

Definition at line 83 of file TestService.cc.

References printTestMessageLoggerErrors_.

Referenced by TestService().

83  {
85  edm::LogError("TestMessageLogger") << "test message from TestService::preGlobalBeginRun";
86  }
87 }
Log< level::Error, false > LogError
void TestService::preGlobalEndLumi ( GlobalContext const &  gc)

Definition at line 101 of file TestService.cc.

References printTestMessageLoggerErrors_.

Referenced by TestService().

101  {
103  edm::LogError("TestMessageLogger") << "test message from TestService::preGlobalEndLumi";
104  }
105 }
Log< level::Error, false > LogError
void TestService::preGlobalEndRun ( GlobalContext const &  )

Definition at line 89 of file TestService.cc.

References printTestMessageLoggerErrors_.

Referenced by TestService().

89  {
91  edm::LogError("TestMessageLogger") << "test message from TestService::preGlobalEndRun";
92  }
93 }
Log< level::Error, false > LogError

Member Data Documentation

bool edm::service::TestService::printTestMessageLoggerErrors_
private