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
const
edm::ParameterSet
pset_
;
29
const
edm::ESGetToken<MTDGeometry, MTDDigiGeometryRecord>
ddToken_
;
30
};
31
32
MTDCPEESProducer::MTDCPEESProducer
(
const
edm::ParameterSet
&
p
)
33
: pset_(
p
), ddToken_(setWhatProduced(this,
"MTDCPEBase"
).consumes()) {}
34
35
// Configuration descriptions
36
void
MTDCPEESProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
37
edm::ParameterSetDescription
desc
;
38
descriptions.
add
(
"MTDCPEESProducer"
,
desc
);
39
}
40
41
std::unique_ptr<MTDClusterParameterEstimator>
MTDCPEESProducer::produce
(
const
MTDCPERecord
& iRecord) {
42
return
std::make_unique<MTDCPEBase>(
pset_
, iRecord.
get
(
ddToken_
));
43
}
44
45
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
46
#include "
FWCore/Framework/interface/MakerMacros.h
"
47
48
DEFINE_FWK_EVENTSETUP_MODULE
(
MTDCPEESProducer
);
ESHandle.h
MTDCPERecord
Definition:
MTDCPERecord.h:10
MTDCPERecord.h
edm
HLT enums.
Definition:
AlignableModifier.h:19
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:36
MTDCPEESProducer::ddToken_
const edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord > ddToken_
Definition:
MTDCPEESProducer.cc:29
fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::eventsetup::DependentRecordImplementation::get
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
Definition:
DependentRecordImplementation.h:109
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
MTDCPEESProducer
Definition:
MTDCPEESProducer.cc:18
edm::ParameterSet
Definition:
ParameterSet.h:47
AlCaHLTBitMon_ParallelJobs.p
def p
Definition:
AlCaHLTBitMon_ParallelJobs.py:153
MTDCPEBase.h
ModuleDef.h
edm::ESGetToken< MTDGeometry, MTDDigiGeometryRecord >
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
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:41
MTDCPEESProducer::MTDCPEESProducer
MTDCPEESProducer(const edm::ParameterSet &p)
Definition:
MTDCPEESProducer.cc:32
edm::ESProducer
Definition:
ESProducer.h:104
ParameterSet.h
MTDCPEESProducer::pset_
const edm::ParameterSet pset_
Definition:
MTDCPEESProducer.cc:28
Generated for CMSSW Reference Manual by
1.8.16