Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Groups
Pages
FWCore
Framework
src
ComponentMaker.cc
Go to the documentation of this file.
1
#include "
FWCore/Framework/interface/ComponentMaker.h
"
2
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
3
4
#include <string>
5
#include <atomic>
6
7
namespace
edm {
8
namespace
eventsetup {
9
10
ComponentDescription
ComponentMakerBaseHelper::createComponentDescription
(
ParameterSet
const
& iConfiguration)
const
{
11
ComponentDescription
description
;
12
description.
type_
= iConfiguration.
getParameter
<
std::string
>(
"@module_type"
);
13
description.
label_
= iConfiguration.
getParameter
<
std::string
>(
"@module_label"
);
14
15
description.
pid_
= iConfiguration.
id
();
16
static
std::atomic<unsigned int>
s_id
{0};
17
description.
id_
=
s_id
++;
18
19
return
description
;
20
}
21
22
}
// namespace eventsetup
23
}
// namespace edm
edm::eventsetup::ComponentDescription::label_
std::string label_
Definition:
ComponentDescription.h:31
ComponentMaker.h
edm::ParameterSet::id
ParameterSetID id() const
Definition:
ParameterSet.cc:189
getPayloadData.description
string description
Definition:
getPayloadData.py:210
edm::eventsetup::ComponentDescription::pid_
ParameterSetID pid_
Definition:
ComponentDescription.h:35
AlCaHLTBitMon_QueryRunRegistry.string
string string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
ParameterSet.h
s_id
static const edm::ProductID s_id
Definition:
EventBase.cc:27
edm::eventsetup::ComponentDescription::type_
std::string type_
Definition:
ComponentDescription.h:32
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
edm::eventsetup::ComponentDescription::id_
unsigned int id_
Definition:
ComponentDescription.h:37
edm::ParameterSet
Definition:
ParameterSet.h:47
edm::eventsetup::ComponentDescription
Definition:
ComponentDescription.h:30
edm::eventsetup::ComponentMakerBaseHelper::createComponentDescription
ComponentDescription createComponentDescription(ParameterSet const &iConfiguration) const
Definition:
ComponentMaker.cc:10
Generated for CMSSW Reference Manual by
1.8.5