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