src
SimFastTiming
MtdAssociatorProducers
plugins
MtdSimLayerClusterToTPAssociatorByTrackIdProducer.cc
Go to the documentation of this file.
1
// system include files
2
#include <memory>
3
#include <string>
4
5
// user include files
6
#include "
FWCore/Framework/interface/global/EDProducer.h
"
7
8
#include "
FWCore/Framework/interface/Event.h
"
9
#include "
FWCore/Framework/interface/MakerMacros.h
"
10
#include "
FWCore/Framework/interface/ESHandle.h
"
11
12
#include "
FWCore/MessageLogger/interface/MessageLogger.h
"
13
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
14
#include "
FWCore/Utilities/interface/EDGetToken.h
"
15
16
#include "
MtdSimLayerClusterToTPAssociatorByTrackIdImpl.h
"
17
18
//
19
// Class declaration
20
//
21
22
class
MtdSimLayerClusterToTPAssociatorByTrackIdProducer
:
public
edm::global::EDProducer
<> {
23
public
:
24
explicit
MtdSimLayerClusterToTPAssociatorByTrackIdProducer
(
const
edm::ParameterSet
&);
25
~MtdSimLayerClusterToTPAssociatorByTrackIdProducer
()
override
;
26
27
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
&descriptions);
28
29
private
:
30
void
produce
(
edm::StreamID
,
edm::Event
&,
const
edm::EventSetup
&)
const override
;
31
};
32
33
MtdSimLayerClusterToTPAssociatorByTrackIdProducer::MtdSimLayerClusterToTPAssociatorByTrackIdProducer
(
34
const
edm::ParameterSet
&
pset
) {
35
// Register the product
36
produces<reco::MtdSimLayerClusterToTPAssociator>();
37
}
38
39
MtdSimLayerClusterToTPAssociatorByTrackIdProducer::~MtdSimLayerClusterToTPAssociatorByTrackIdProducer
() {}
40
41
void
MtdSimLayerClusterToTPAssociatorByTrackIdProducer::produce
(
edm::StreamID
,
42
edm::Event
&
iEvent
,
43
const
edm::EventSetup
&es)
const
{
44
auto
impl
= std::make_unique<MtdSimLayerClusterToTPAssociatorByTrackIdImpl>(
iEvent
.productGetter());
45
auto
toPut
= std::make_unique<reco::MtdSimLayerClusterToTPAssociator>(
std::move
(
impl
));
46
iEvent
.put(
std::move
(
toPut
));
47
}
48
49
void
MtdSimLayerClusterToTPAssociatorByTrackIdProducer::fillDescriptions
(
edm::ConfigurationDescriptions
&
cfg
) {
50
edm::ParameterSetDescription
desc
;
51
52
cfg
.add(
"mtdSimLayerClusterToTPAssociatorByTrackId"
,
desc
);
53
}
54
55
//define this as a plug-in
56
DEFINE_FWK_MODULE
(
MtdSimLayerClusterToTPAssociatorByTrackIdProducer
);
MtdSimLayerClusterToTPAssociatorByTrackIdProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
MtdSimLayerClusterToTPAssociatorByTrackIdProducer.cc:49
MessageLogger.h
edm::StreamID
Definition:
StreamID.h:30
Event.h
impl
Definition:
trackAlgoPriorityOrder.h:18
muonDTDigis_cfi.pset
pset
Definition:
muonDTDigis_cfi.py:27
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ParameterSet.h
MtdSimLayerClusterToTPAssociatorByTrackIdImpl.h
convertXMLtoSQLite_cfg.toPut
toPut
Definition:
convertXMLtoSQLite_cfg.py:41
iEvent
int iEvent
Definition:
GenABIO.cc:224
MtdSimLayerClusterToTPAssociatorByTrackIdProducer
Definition:
MtdSimLayerClusterToTPAssociatorByTrackIdProducer.cc:22
MtdSimLayerClusterToTPAssociatorByTrackIdProducer::produce
void produce(edm::StreamID, edm::Event &, const edm::EventSetup &) const override
Definition:
MtdSimLayerClusterToTPAssociatorByTrackIdProducer.cc:41
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:254
ESHandle.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::EventSetup
Definition:
EventSetup.h:56
edm::global::EDProducer
Definition:
EDProducer.h:32
looper.cfg
cfg
Definition:
looper.py:296
EDGetToken.h
MtdSimLayerClusterToTPAssociatorByTrackIdProducer::~MtdSimLayerClusterToTPAssociatorByTrackIdProducer
~MtdSimLayerClusterToTPAssociatorByTrackIdProducer() override
Definition:
MtdSimLayerClusterToTPAssociatorByTrackIdProducer.cc:39
EDProducer.h
MtdSimLayerClusterToTPAssociatorByTrackIdProducer::MtdSimLayerClusterToTPAssociatorByTrackIdProducer
MtdSimLayerClusterToTPAssociatorByTrackIdProducer(const edm::ParameterSet &)
Definition:
MtdSimLayerClusterToTPAssociatorByTrackIdProducer.cc:33
edm::ParameterSet
Definition:
ParameterSet.h:48
edm::Event
Definition:
Event.h:73
MakerMacros.h
eostools.move
def move(src, dest)
Definition:
eostools.py:511
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
Generated for CMSSW Reference Manual by
1.8.14