Main Page
Namespaces
Classes
Package Documentation
SimTracker
TrackAssociation
plugins
CosmicParametersDefinerForTPESProducer.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/CosmicParametersDefinerForTPESProducer.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
CosmicParametersDefinerForTPESProducer::CosmicParametersDefinerForTPESProducer
(
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
CosmicParametersDefinerForTPESProducer::~CosmicParametersDefinerForTPESProducer
()
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
CosmicParametersDefinerForTPESProducer::ReturnType
46
CosmicParametersDefinerForTPESProducer::produce
(
const
TrackAssociatorRecord
& iRecord)
47
{
48
return
std::make_unique<CosmicParametersDefinerForTP>();
49
}
50
51
//define this as a plug-in
52
DEFINE_FWK_EVENTSETUP_MODULE
(
CosmicParametersDefinerForTPESProducer
);
53
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:116
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
CosmicParametersDefinerForTPESProducer
Definition:
CosmicParametersDefinerForTPESProducer.h:14
TrackAssociatorRecord.h
ParameterSet.h
ESHandle.h
TrackAssociatorRecord
Definition:
TrackAssociatorRecord.h:18
CosmicParametersDefinerForTPESProducer::produce
std::unique_ptr< CosmicParametersDefinerForTP > produce(const TrackAssociatorRecord &)
Definition:
CosmicParametersDefinerForTPESProducer.cc:46
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:19
CosmicParametersDefinerForTPESProducer::ReturnType
std::unique_ptr< CosmicParametersDefinerForTP > ReturnType
Definition:
CosmicParametersDefinerForTPESProducer.h:15
edm::ParameterSet
Definition:
ParameterSet.h:36
ModuleFactory.h
CosmicParametersDefinerForTPESProducer::~CosmicParametersDefinerForTPESProducer
~CosmicParametersDefinerForTPESProducer() override
Definition:
CosmicParametersDefinerForTPESProducer.cc:31
Generated for CMSSW Reference Manual by
1.8.11