CMS 3D CMS Logo

PixelTrackCleanerBySharedHitsESProducer.cc
Go to the documentation of this file.
1 // user include files
4 
6 
8 
10 public:
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 {
25  auto componentName = iConfig.getParameter<std::string>("ComponentName");
26  setWhatProduced(this, componentName);
27 }
28 
31  desc.add<std::string>("ComponentName", "pixelTrackCleanerBySharedHits");
32  desc.add<bool>("useQuadrupletAlgo", false);
33  descriptions.add("pixelTrackCleanerBySharedHits", desc);
34 }
35 
36 std::unique_ptr<PixelTrackCleaner> PixelTrackCleanerBySharedHitsESProducer::produce(const PixelTrackCleaner::Record& iRecord) {
37  return std::make_unique<PixelTrackCleanerBySharedHits>(useQuadrupletAlgo_);
38 }
39 
T getParameter(std::string const &) const
std::unique_ptr< PixelTrackCleaner > produce(const PixelTrackCleaner::Record &iRecord)
void setWhatProduced(T *iThis, const es::Label &iLabel=es::Label())
Definition: ESProducer.h:115
ParameterDescriptionBase * add(U const &iLabel, T const &value)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
void add(std::string const &label, ParameterSetDescription const &psetDescription)
PixelTrackCleanerBySharedHitsESProducer(const edm::ParameterSet &iConfig)