RecoPixelVertexing
PixelTrackFitting
plugins
PixelTrackCleanerBySharedHitsESProducer.cc
Go to the documentation of this file.
1
// user include files
2
#include "
FWCore/Framework/interface/ModuleFactory.h
"
3
#include "
FWCore/Framework/interface/ESProducer.h
"
4
5
#include "
FWCore/Framework/interface/ESHandle.h
"
6
7
#include "
RecoPixelVertexing/PixelTrackFitting/interface/PixelTrackCleanerBySharedHits.h
"
8
9
class
PixelTrackCleanerBySharedHitsESProducer
:
public
edm::ESProducer
{
10
public
:
11
PixelTrackCleanerBySharedHitsESProducer
(
const
edm::ParameterSet
& iConfig);
12
~PixelTrackCleanerBySharedHitsESProducer
()
override
=
default
;
13
14
static
void
fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions);
15
16
std::unique_ptr<PixelTrackCleaner>
produce
(
const
PixelTrackCleaner::Record
& iRecord);
17
18
private
:
19
const
bool
useQuadrupletAlgo_
;
20
};
21
22
PixelTrackCleanerBySharedHitsESProducer::PixelTrackCleanerBySharedHitsESProducer
(
const
edm::ParameterSet
& iConfig)
23
: useQuadrupletAlgo_(iConfig.getParameter<
bool
>(
"useQuadrupletAlgo"
)) {
24
auto
componentName = iConfig.
getParameter
<
std::string
>(
"ComponentName"
);
25
setWhatProduced
(
this
, componentName);
26
}
27
28
void
PixelTrackCleanerBySharedHitsESProducer::fillDescriptions
(
edm::ConfigurationDescriptions
& descriptions) {
29
edm::ParameterSetDescription
desc
;
30
desc
.add<
std::string
>(
"ComponentName"
,
"pixelTrackCleanerBySharedHits"
);
31
desc
.add<
bool
>(
"useQuadrupletAlgo"
,
false
);
32
descriptions.
add
(
"pixelTrackCleanerBySharedHits"
,
desc
);
33
}
34
35
std::unique_ptr<PixelTrackCleaner>
PixelTrackCleanerBySharedHitsESProducer::produce
(
36
const
PixelTrackCleaner::Record
& iRecord) {
37
return
std::make_unique<PixelTrackCleanerBySharedHits>(
useQuadrupletAlgo_
);
38
}
39
40
#include "
FWCore/PluginManager/interface/ModuleDef.h
"
41
#include "
FWCore/Framework/interface/MakerMacros.h
"
42
DEFINE_FWK_EVENTSETUP_MODULE
(
PixelTrackCleanerBySharedHitsESProducer
);
electrons_cff.bool
bool
Definition:
electrons_cff.py:393
ESHandle.h
PixelTrackCleanerBySharedHitsESProducer
Definition:
PixelTrackCleanerBySharedHitsESProducer.cc:9
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition:
ESProducer.h:163
edm::ParameterSetDescription
Definition:
ParameterSetDescription.h:52
ESProducer.h
MakerMacros.h
edm::ConfigurationDescriptions::add
void add(std::string const &label, ParameterSetDescription const &psetDescription)
Definition:
ConfigurationDescriptions.cc:57
CkfComponentsRecord
Definition:
CkfComponentsRecord.h:22
PixelTrackCleanerBySharedHitsESProducer::produce
std::unique_ptr< PixelTrackCleaner > produce(const PixelTrackCleaner::Record &iRecord)
Definition:
PixelTrackCleanerBySharedHitsESProducer.cc:35
edm::ConfigurationDescriptions
Definition:
ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition:
AlCaHLTBitMon_QueryRunRegistry.py:256
PixelTrackCleanerBySharedHitsESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition:
PixelTrackCleanerBySharedHitsESProducer.cc:28
edm::ParameterSet
Definition:
ParameterSet.h:47
ModuleDef.h
ModuleFactory.h
submitPVResolutionJobs.desc
string desc
Definition:
submitPVResolutionJobs.py:251
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition:
ModuleFactory.h:60
PixelTrackCleanerBySharedHitsESProducer::useQuadrupletAlgo_
const bool useQuadrupletAlgo_
Definition:
PixelTrackCleanerBySharedHitsESProducer.cc:19
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
Definition:
ParameterSet.h:303
PixelTrackCleanerBySharedHitsESProducer::~PixelTrackCleanerBySharedHitsESProducer
~PixelTrackCleanerBySharedHitsESProducer() override=default
edm::ESProducer
Definition:
ESProducer.h:104
PixelTrackCleanerBySharedHits.h
PixelTrackCleanerBySharedHitsESProducer::PixelTrackCleanerBySharedHitsESProducer
PixelTrackCleanerBySharedHitsESProducer(const edm::ParameterSet &iConfig)
Definition:
PixelTrackCleanerBySharedHitsESProducer.cc:22
Generated for CMSSW Reference Manual by
1.8.16