Main Page
Namespaces
Classes
Package Documentation
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Properties
Friends
Macros
Pages
src
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 "boost/shared_ptr.hpp"
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
{
21
//the following line is needed to tell the framework what
22
// data is being produced
23
std::string myName=iConfig.
getParameter
<std::string>(
"ComponentName"
);
24
setWhatProduced
(
this
,myName);
25
26
//now do what ever other initialization is needed
27
//conf_=iConfig;
28
}
29
30
31
ParametersDefinerForTPESProducer::~ParametersDefinerForTPESProducer
()
32
{
33
34
// do anything here that needs to be done at desctruction time
35
// (e.g. close files, deallocate resources etc.)
36
37
}
38
39
40
//
41
// member functions
42
//
43
44
// ------------ method called to produce the data ------------
45
ParametersDefinerForTPESProducer::ReturnType
46
ParametersDefinerForTPESProducer::produce
(
const
TrackAssociatorRecord
& iRecord)
47
{
48
ReturnType
parametersDefiner_ (
new
ParametersDefinerForTP
());
49
return
parametersDefiner_ ;
50
}
51
52
//define this as a plug-in
53
DEFINE_FWK_EVENTSETUP_MODULE
(
ParametersDefinerForTPESProducer
);
54
ParametersDefinerForTPESProducer
Definition:
ParametersDefinerForTPESProducer.h:14
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ParametersDefinerForTPESProducer::ParametersDefinerForTPESProducer
ParametersDefinerForTPESProducer(const edm::ParameterSet &p)
Definition:
ParametersDefinerForTPESProducer.cc:19
ParametersDefinerForTPESProducer::~ParametersDefinerForTPESProducer
virtual ~ParametersDefinerForTPESProducer()
Definition:
ParametersDefinerForTPESProducer.cc:31
TrackAssociatorRecord.h
ParametersDefinerForTPESProducer::produce
boost::shared_ptr< ParametersDefinerForTP > produce(const TrackAssociatorRecord &)
Definition:
ParametersDefinerForTPESProducer.cc:46
edm::ESProducer::setWhatProduced
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition:
ESProducer.h:115
ParameterSet.h
ParametersDefinerForTPESProducer.h
ESHandle.h
TrackAssociatorRecord
Definition:
TrackAssociatorRecord.h:20
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:56
ESProducer.h
ParametersDefinerForTP
Definition:
ParametersDefinerForTP.h:15
edm::ParameterSet
Definition:
ParameterSet.h:35
ModuleFactory.h
ParametersDefinerForTPESProducer::ReturnType
boost::shared_ptr< ParametersDefinerForTP > ReturnType
Definition:
ParametersDefinerForTPESProducer.h:15
Generated for CMSSW Reference Manual by
1.8.5