CMS 3D CMS Logo

PixelTrackCleanerBySharedHitsESProducer.cc
Go to the documentation of this file.
1 // user include files
4 
6 
8 
10 public:
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 
23  : useQuadrupletAlgo_(iConfig.getParameter<bool>("useQuadrupletAlgo")) {
24  auto componentName = iConfig.getParameter<std::string>("ComponentName");
25  setWhatProduced(this, componentName);
26 }
27 
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 
electrons_cff.bool
bool
Definition: electrons_cff.py:372
edm::ParameterSetDescription::add
ParameterDescriptionBase * add(U const &iLabel, T const &value)
Definition: ParameterSetDescription.h:95
ESHandle.h
PixelTrackCleanerBySharedHitsESProducer
Definition: PixelTrackCleanerBySharedHitsESProducer.cc:9
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
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:36
ModuleDef.h
edm::ParameterSet::getParameter
T getParameter(std::string const &) const
ModuleFactory.h
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
PixelTrackCleanerBySharedHitsESProducer::useQuadrupletAlgo_
const bool useQuadrupletAlgo_
Definition: PixelTrackCleanerBySharedHitsESProducer.cc:19
PixelTrackCleanerBySharedHitsESProducer::~PixelTrackCleanerBySharedHitsESProducer
~PixelTrackCleanerBySharedHitsESProducer() override=default
edm::ESProducer
Definition: ESProducer.h:101
PixelTrackCleanerBySharedHits.h
PixelTrackCleanerBySharedHitsESProducer::PixelTrackCleanerBySharedHitsESProducer
PixelTrackCleanerBySharedHitsESProducer(const edm::ParameterSet &iConfig)
Definition: PixelTrackCleanerBySharedHitsESProducer.cc:22