RecoLocalFastTime
FTLClusterizer
plugins
MTDCPEESProducer.cc
Go to the documentation of this file.
1
#include "
RecoLocalFastTime/Records/interface/MTDCPERecord.h
"
2
#include "
RecoLocalFastTime/FTLClusterizer/interface/MTDClusterParameterEstimator.h
"
3
#include "
RecoLocalFastTime/FTLClusterizer/interface/MTDCPEBase.h
"
4
5
#include "
Geometry/Records/interface/MTDDigiGeometryRecord.h
"
6
7
#include "
FWCore/Framework/interface/EventSetup.h
"
8
#include "
FWCore/Framework/interface/ESHandle.h
"
9
#include "
FWCore/Framework/interface/ModuleFactory.h
"
10
#include "
FWCore/Framework/interface/ESProducer.h
"
11
#include "
FWCore/ParameterSet/interface/ParameterSet.h
"
12
13
#include <string>
14
#include <memory>
15
16
using namespace
edm
;
17
18
class
MTDCPEESProducer
:
public
edm::ESProducer
{
19
public
:
20
MTDCPEESProducer
(
const
edm::ParameterSet
&
p
);
21
~
MTDCPEESProducer
()
override
=
default
;
22
23
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
24
25
std::unique_ptr<MTDClusterParameterEstimator> produce(
const
MTDCPERecord
&);
26
27
private
:
28
edm::ParameterSet
pset_
;
29
edm::ESGetToken<MTDGeometry, MTDDigiGeometryRecord>
ddToken_
;
30
};
31
32
MTDCPEESProducer::MTDCPEESProducer
(
const
edm::ParameterSet
&
p
) {
33
pset_ =
p
;
34
setWhatProduced(
this
,
"MTDCPEBase"
).setConsumes(ddToken_);
35
}
36
37
// Configuration descriptions
38
void
MTDCPEESProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
39
edm::ParameterSetDescription
desc;
40
descriptions.
add
(
"MTDCPEESProducer"
, desc);
41
}
42
43
std::unique_ptr<MTDClusterParameterEstimator>
MTDCPEESProducer::produce
(
const
MTDCPERecord
& iRecord) {
44
return
std::make_unique<MTDCPEBase>(pset_, iRecord.
get
(ddToken_));
45
}
46
47
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
48
#include "
FWCore/Framework/interface/MakerMacros.h
"
49
50
DEFINE_FWK_EVENTSETUP_MODULE
(
MTDCPEESProducer
);
ESHandle.h
MTDCPERecord
Definition:
MTDCPERecord.h:10
MTDCPERecord.h
MTDCPEESProducer::pset_
edm::ParameterSet pset_
Definition:
MTDCPEESProducer.cc:28
edm
HLT enums.
Definition:
AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ESProducer.h
MTDDigiGeometryRecord.h
MakerMacros.h
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
MTDCPEESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
MTDCPEESProducer.cc:38
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:112
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
MTDCPEESProducer::ddToken_
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > ddToken_
Definition:
MTDCPEESProducer.cc:29
MTDCPEESProducer
Definition:
MTDCPEESProducer.cc:18
edm::ParameterSet
Definition:
ParameterSet.h:36
MTDCPEBase.h
ModuleDef.h
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord >
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
EventSetup.h
MTDClusterParameterEstimator.h
MTDCPEESProducer::produce
std::unique_ptr< MTDClusterParameterEstimator > produce(const MTDCPERecord &)
Definition:
MTDCPEESProducer.cc:43
MTDCPEESProducer::MTDCPEESProducer
MTDCPEESProducer(const edm::ParameterSet &p)
Definition:
MTDCPEESProducer.cc:32
edm::ESProducer
Definition:
ESProducer.h:101
ParameterSet.h
Generated for CMSSW Reference Manual by
1.8.16