src
FWCore
TestProcessor
src
oneTimeInitialization.cc
Go to the documentation of this file.
1
2
#include "
oneTimeInitialization.h
"
3
4
#include "
FWCore/PluginManager/interface/PluginManager.h
"
5
#include "
FWCore/PluginManager/interface/standard.h
"
6
#include "
FWCore/Concurrency/interface/ThreadsController.h
"
7
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
8
#include "
DataFormats/Provenance/interface/ParentageRegistry.h
"
9
10
namespace
{
11
12
bool
oneTimeInitializationImpl() {
13
edmplugin::PluginManager::configure
(
edmplugin::standard::config
());
14
15
static
std::unique_ptr<edm::ThreadsController> tsiPtr = std::make_unique<edm::ThreadsController>(1);
16
17
// register the empty parentage vector , once and for all
18
edm::ParentageRegistry::instance
()->
insertMapped
(
edm::Parentage
());
19
20
// register the empty parameter set, once and for all.
21
edm::ParameterSet
().
registerIt
();
22
return
true
;
23
}
24
}
//namespace
25
26
namespace
edm::testprocessor
{
27
bool
oneTimeInitialization
() {
28
static
const
bool
s_init{oneTimeInitializationImpl()};
29
return
s_init;
30
}
31
}
// namespace edm::testprocessor
edm::Parentage
Definition:
Parentage.h:25
edm::testprocessor
Definition:
oneTimeInitialization.cc:26
edmplugin::PluginManager::configure
static PluginManager & configure(const Config &)
Definition:
PluginManager.cc:318
ParentageRegistry.h
ParameterSet.h
edm::ParameterSet::registerIt
ParameterSet const & registerIt()
Definition:
ParameterSet.cc:113
edmplugin::standard::config
PluginManager::Config config()
Definition:
standard.cc:21
oneTimeInitialization.h
ThreadsController.h
PluginManager.h
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::ParentageRegistry::instance
static ParentageRegistry * instance()
Definition:
ParentageRegistry.cc:5
edm::ParentageRegistry::insertMapped
bool insertMapped(value_type const &v)
Definition:
ParentageRegistry.cc:25
standard.h
edm::testprocessor::oneTimeInitialization
bool oneTimeInitialization()
Definition:
oneTimeInitialization.cc:27
Generated for CMSSW Reference Manual by
1.8.14