Main Page
Namespaces
Classes
Package Documentation
src
SimTracker
TrackAssociation
plugins
CosmicParametersDefinerForTPESProducer.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/CosmicParametersDefinerForTPESProducer.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
CosmicParametersDefinerForTPESProducer::CosmicParametersDefinerForTPESProducer
(
const
edm::ParameterSet
&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
CosmicParametersDefinerForTPESProducer::~CosmicParametersDefinerForTPESProducer
() {
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
CosmicParametersDefinerForTPESProducer::ReturnType
CosmicParametersDefinerForTPESProducer::produce
(
37
const
TrackAssociatorRecord
&iRecord) {
38
return
std::make_unique<CosmicParametersDefinerForTP>();
39
}
40
41
// define this as a plug-in
42
DEFINE_FWK_EVENTSETUP_MODULE
(
CosmicParametersDefinerForTPESProducer
);
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:124
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CosmicParametersDefinerForTPESProducer
Definition:
CosmicParametersDefinerForTPESProducer.h:12
TrackAssociatorRecord.h
ParameterSet.h
ESHandle.h
TrackAssociatorRecord
Definition:
TrackAssociatorRecord.h:18
CosmicParametersDefinerForTPESProducer::produce
std::unique_ptr< CosmicParametersDefinerForTP > produce(const TrackAssociatorRecord &)
Definition:
CosmicParametersDefinerForTPESProducer.cc:36
CosmicParametersDefinerForTPESProducer.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
ESProducer.h
CosmicParametersDefinerForTPESProducer::CosmicParametersDefinerForTPESProducer
CosmicParametersDefinerForTPESProducer(const edm::ParameterSet &p)
Definition:
CosmicParametersDefinerForTPESProducer.cc:16
CosmicParametersDefinerForTPESProducer::ReturnType
std::unique_ptr< CosmicParametersDefinerForTP > ReturnType
Definition:
CosmicParametersDefinerForTPESProducer.h:13
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
CosmicParametersDefinerForTPESProducer::~CosmicParametersDefinerForTPESProducer
~CosmicParametersDefinerForTPESProducer() override
Definition:
CosmicParametersDefinerForTPESProducer.cc:26
Generated for CMSSW Reference Manual by
1.8.11