Main Page
Namespaces
Classes
Package Documentation
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
{
30
public
:
31
ProductRegistryDumper
(
edm::ParameterSet
const
& iConfig,
edm::ActivityRegistry
& iAR);
32
};
33
34
}
35
}
36
37
//
38
// constants, enums and typedefs
39
//
40
41
//
42
// static data member definitions
43
//
44
45
//
46
// constructors and destructor
47
//
48
using namespace
edm::service
;
49
ProductRegistryDumper::ProductRegistryDumper
(
edm::ParameterSet
const
& iConfig,
edm::ActivityRegistry
& iAR)
50
{
51
iAR.
watchPostBeginJob
( [] () {
52
Service<ConstProductRegistry>
regService;
53
for
(
auto
const
&
branch
: regService->allBranchDescriptions()) {
54
if
(
branch
) {
55
edm::LogSystem
(
"ProductRegistry"
)<<*
branch
;
56
}
57
}
58
});
59
}
60
61
DEFINE_FWK_SERVICE
(
ProductRegistryDumper
);
ConstProductRegistry.h
edm::service
Definition:
TFileService.h:95
MicroEventContent_cff.branch
branch
Definition:
MicroEventContent_cff.py:118
edm::service::ProductRegistryDumper::ProductRegistryDumper
ProductRegistryDumper(edm::ParameterSet const &iConfig, edm::ActivityRegistry &iAR)
Definition:
ProductRegistryDumper.cc:49
edm::service::ProductRegistryDumper
Definition:
ProductRegistryDumper.cc:28
MessageLogger.h
edm::Service
Definition:
Service.h:30
ParameterSet.h
ServiceMaker.h
service
Definition:
service.py:1
Service.h
CPUTimer.h
DEFINE_FWK_SERVICE
#define DEFINE_FWK_SERVICE(type)
Definition:
ServiceMaker.h:113
ActivityRegistry.h
edm
HLT enums.
Definition:
AlignableModifier.h:17
edm::ParameterSet
Definition:
ParameterSet.h:36
ConfigurationDescriptions.h
edm::ActivityRegistry
Definition:
ActivityRegistry.h:87
edm::LogSystem
Definition:
MessageLogger.h:191
edm::ActivityRegistry::watchPostBeginJob
void watchPostBeginJob(PostBeginJob::slot_type const &iSlot)
convenience function for attaching to signal
Definition:
ActivityRegistry.h:115
Generated for CMSSW Reference Manual by
1.8.11