RecoTracker
TkSeedingLayers
plugins
SeedingLayersEDProducer.cc
Go to the documentation of this file.
1
#include "
TrackingTools/TransientTrackingRecHit/interface/SeedingLayerSetsHits.h
"
2
#include "
RecoTracker/TkSeedingLayers/interface/SeedingLayerSetsBuilder.h
"
3
4
#include "
FWCore/Framework/interface/stream/EDProducer.h
"
5
#include "
FWCore/Framework/interface/Event.h
"
6
#include "
FWCore/Framework/interface/MakerMacros.h
"
7
#include "
FWCore/Framework/interface/ConsumesCollector.h
"
8
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
9
10
class
dso_hidden
SeedingLayersEDProducer
:
public
edm::stream::EDProducer
<> {
11
public
:
12
SeedingLayersEDProducer
(
const
edm::ParameterSet
& iConfig);
13
~
SeedingLayersEDProducer
()
override
;
14
15
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
16
17
void
produce(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup)
override
;
18
19
private
:
20
SeedingLayerSetsBuilder
builder_
;
21
};
22
23
SeedingLayersEDProducer::SeedingLayersEDProducer
(
const
edm::ParameterSet
& iConfig)
24
: builder_(iConfig, consumesCollector()) {
25
produces<SeedingLayerSetsHits>();
26
}
27
SeedingLayersEDProducer::~SeedingLayersEDProducer
() {}
28
29
void
SeedingLayersEDProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
30
edm::ParameterSetDescription
desc
;
31
SeedingLayerSetsBuilder::fillDescriptions
(
desc
);
32
33
descriptions.
add
(
"seedingLayersEDProducer"
,
desc
);
34
}
35
36
void
SeedingLayersEDProducer::produce
(
edm::Event
&
iEvent
,
const
edm::EventSetup
& iSetup) {
37
auto
prod
=
builder_
.
hits
(
iEvent
, iSetup);
38
//prod->print();
39
40
iEvent
.put(
std::move
(
prod
));
41
}
42
43
DEFINE_FWK_MODULE
(
SeedingLayersEDProducer
);
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
EDProducer.h
SeedingLayersEDProducer
Definition:
SeedingLayersEDProducer.cc:10
MakerMacros.h
SeedingLayersEDProducer::produce
void produce(edm::Event &iEvent, const edm::EventSetup &iSetup) override
Definition:
SeedingLayersEDProducer.cc:36
SeedingLayerSetsBuilder::hits
std::unique_ptr< SeedingLayerSetsHits > hits(const edm::Event &ev, const edm::EventSetup &es)
Definition:
SeedingLayerSetsBuilder.cc:364
SeedingLayerSetsHits.h
DEFINE_FWK_MODULE
#define DEFINE_FWK_MODULE(type)
Definition:
MakerMacros.h:16
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
SeedingLayerSetsBuilder.h
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
dumpMFGeometry_cfg.prod
prod
Definition:
dumpMFGeometry_cfg.py:24
dso_hidden
#define dso_hidden
Definition:
Visibility.h:12
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
edm::ParameterSet
Definition:
ParameterSet.h:47
Event.h
iEvent
int iEvent
Definition:
GenABIO.cc:224
SeedingLayersEDProducer::SeedingLayersEDProducer
SeedingLayersEDProducer(const edm::ParameterSet &iConfig)
Definition:
SeedingLayersEDProducer.cc:23
edm::stream::EDProducer
Definition:
EDProducer.h:36
edm::EventSetup
Definition:
EventSetup.h:58
SeedingLayerSetsBuilder::fillDescriptions
static void fillDescriptions(edm::ParameterSetDescription &desc)
Definition:
SeedingLayerSetsBuilder.cc:244
SeedingLayersEDProducer::builder_
SeedingLayerSetsBuilder builder_
Definition:
SeedingLayersEDProducer.cc:20
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
eostools.move
def move(src, dest)
Definition:
eostools.py:511
SeedingLayersEDProducer::~SeedingLayersEDProducer
~SeedingLayersEDProducer() override
Definition:
SeedingLayersEDProducer.cc:27
SeedingLayerSetsBuilder
Definition:
SeedingLayerSetsBuilder.h:31
ConsumesCollector.h
SeedingLayersEDProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
SeedingLayersEDProducer.cc:29
ParameterSet.h
edm::Event
Definition:
Event.h:73
Generated for CMSSW Reference Manual by
1.8.16