src
FWCore
Services
plugins
ProductRegistryDumper.cc
Go to the documentation of this file.
1
// -*- C++ -*-
2
//
3
// Package: FWCore/Services
4
// Class : ProductRegistryDumper
5
//
6
// Implementation:
7
// [Notes on implementation]
8
//
9
// Original Author: Christopher Jones
10
// Created: Thu, 23 Mar 2017 18:32:17 GMT
11
//
12
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
#include "
FWCore/ParameterSet/interface/ConfigurationDescriptions.h
"
15
#include "
FWCore/ServiceRegistry/interface/ActivityRegistry.h
"
16
#include "
FWCore/ServiceRegistry/interface/Service.h
"
17
#include "
FWCore/Utilities/interface/CPUTimer.h
"
18
#include "
FWCore/ServiceRegistry/interface/ServiceMaker.h
"
19
#include "
FWCore/Framework/interface/ConstProductRegistry.h
"
20
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
21
22
// system include files
23
24
// user include files
25
26
namespace
edm
{
27
namespace
service
{
28
class
ProductRegistryDumper
{
29
public
:
30
ProductRegistryDumper
(
edm::ParameterSet
const
& iConfig,
edm::ActivityRegistry
& iAR);
31
};
32
33
}
// namespace service
34
}
// namespace edm
35
36
//
37
// constants, enums and typedefs
38
//
39
40
//
41
// static data member definitions
42
//
43
44
//
45
// constructors and destructor
46
//
47
using namespace
edm::service
;
48
ProductRegistryDumper::ProductRegistryDumper
(
edm::ParameterSet
const
& iConfig,
edm::ActivityRegistry
& iAR) {
49
iAR.
watchPostBeginJob
([]() {
50
Service<ConstProductRegistry>
regService;
51
for
(
auto
const
&
branch
: regService->allBranchDescriptions()) {
52
if
(
branch
) {
53
edm::LogSystem
(
"ProductRegistry"
) << *
branch
;
54
}
55
}
56
});
57
}
58
59
DEFINE_FWK_SERVICE
(
ProductRegistryDumper
);
ConstProductRegistry.h
edm::service
Definition:
TFileService.h:95
MicroEventContent_cff.branch
branch
Definition:
MicroEventContent_cff.py:205
edm::LogSystem
Log< level::System, false > LogSystem
Definition:
MessageLogger.h:130
edm::service::ProductRegistryDumper::ProductRegistryDumper
ProductRegistryDumper(edm::ParameterSet const &iConfig, edm::ActivityRegistry &iAR)
Definition:
ProductRegistryDumper.cc:48
edm::service::ProductRegistryDumper
Definition:
ProductRegistryDumper.cc:28
edm::Service
Definition:
Service.h:30
MessageLogger.h
ParameterSet.h
ServiceMaker.h
service
Definition:
service.py:1
Service.h
CPUTimer.h
DEFINE_FWK_SERVICE
#define DEFINE_FWK_SERVICE(type)
Definition:
ServiceMaker.h:97
ActivityRegistry.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
edm::ParameterSet
Definition:
ParameterSet.h:48
ConfigurationDescriptions.h
edm::ActivityRegistry
Definition:
ActivityRegistry.h:152
edm::ActivityRegistry::watchPostBeginJob
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
Definition:
ActivityRegistry.h:185
Generated for CMSSW Reference Manual by
1.8.14