Main Page
Namespaces
Classes
Package Documentation
SimTracker
TrackAssociation
plugins
ParametersDefinerForTPESProducer.cc
Go to the documentation of this file.
1
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
2
#include "
SimTracker/Records/interface/TrackAssociatorRecord.h
"
3
#include "
SimTracker/TrackAssociation/plugins/ParametersDefinerForTPESProducer.h
"
4
#include "
FWCore/Framework/interface/ESProducer.h
"
5
6
// system include files
7
#include <memory>
8
#include <memory>
9
10
#include "
FWCore/Framework/interface/ModuleFactory.h
"
11
#include "
FWCore/Framework/interface/ESProducer.h
"
12
#include "
FWCore/Framework/interface/ESHandle.h
"
13
14
#include "
SimTracker/Records/interface/TrackAssociatorRecord.h
"
15
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
16
17
18
19
ParametersDefinerForTPESProducer::ParametersDefinerForTPESProducer
(
const
edm::ParameterSet
& iConfig)
20
: pset_(iConfig)
21
{
22
//the following line is needed to tell the framework what
23
// data is being produced
24
std::string
myName=iConfig.
getParameter
<
std::string
>(
"ComponentName"
);
25
setWhatProduced
(
this
,myName);
26
27
//now do what ever other initialization is needed
28
//conf_=iConfig;
29
}
30
31
32
ParametersDefinerForTPESProducer::~ParametersDefinerForTPESProducer
()
33
{
34
35
// do anything here that needs to be done at desctruction time
36
// (e.g. close files, deallocate resources etc.)
37
38
}
39
40
41
//
42
// member functions
43
//
44
45
// ------------ method called to produce the data ------------
46
ParametersDefinerForTPESProducer::ReturnType
47
ParametersDefinerForTPESProducer::produce
(
const
TrackAssociatorRecord
& iRecord)
48
{
49
ReturnType
parametersDefiner_ (
new
ParametersDefinerForTP
(
pset_
));
50
return
parametersDefiner_ ;
51
}
52
53
//define this as a plug-in
54
DEFINE_FWK_EVENTSETUP_MODULE
(
ParametersDefinerForTPESProducer
);
55
ParametersDefinerForTPESProducer
Definition:
ParametersDefinerForTPESProducer.h:14
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:255
ParametersDefinerForTPESProducer::ParametersDefinerForTPESProducer
ParametersDefinerForTPESProducer(const edm::ParameterSet &p)
Definition:
ParametersDefinerForTPESProducer.cc:19
TrackAssociatorRecord.h
ParametersDefinerForTPESProducer::produce
std::shared_ptr< ParametersDefinerForTP > produce(const TrackAssociatorRecord &)
Definition:
ParametersDefinerForTPESProducer.cc:47
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
ParameterSet.h
ParametersDefinerForTPESProducer::ReturnType
std::shared_ptr< ParametersDefinerForTP > ReturnType
Definition:
ParametersDefinerForTPESProducer.h:15
ParametersDefinerForTPESProducer.h
ESHandle.h
TrackAssociatorRecord
Definition:
TrackAssociatorRecord.h:18
ParametersDefinerForTPESProducer::~ParametersDefinerForTPESProducer
~ParametersDefinerForTPESProducer() override
Definition:
ParametersDefinerForTPESProducer.cc:32
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
ParametersDefinerForTP
Definition:
ParametersDefinerForTP.h:19
ParametersDefinerForTPESProducer::pset_
edm::ParameterSet pset_
Definition:
ParametersDefinerForTPESProducer.h:22
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
Generated for CMSSW Reference Manual by
1.8.11