CMS 3D CMS Logo

KFSwitching1DUpdatorESProducer.cc
Go to the documentation of this file.
1 
11 #include <memory>
12 
15 
20 
21 #include <string>
22 #include <memory>
23 
25 public:
27 
28  std::unique_ptr<TrajectoryStateUpdator> produce(const TrackingComponentsRecord&);
29 
30  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
31 
32 private:
33  const bool doEndCap_;
34 };
35 using namespace edm;
36 
38  : doEndCap_(p.getParameter<bool>("doEndCap")) {
39  std::string myname = p.getParameter<std::string>("ComponentName");
40  setWhatProduced(this, myname);
41 }
42 
43 std::unique_ptr<TrajectoryStateUpdator> KFSwitching1DUpdatorESProducer::produce(
44  const TrackingComponentsRecord& iRecord) {
45  return std::make_unique<KFSwitching1DUpdator>(doEndCap_);
46 }
47 
50  desc.add<bool>("doEndCap");
51  desc.add<std::string>("ComponentName");
52  descriptions.addDefault(desc);
53 }
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
void addDefault(ParameterSetDescription const &psetDescription)
KFSwitching1DUpdatorESProducer(const edm::ParameterSet &p)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
HLT enums.
std::unique_ptr< TrajectoryStateUpdator > produce(const TrackingComponentsRecord &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)