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 }
KFSwitching1DUpdatorESProducer::KFSwitching1DUpdatorESProducer
KFSwitching1DUpdatorESProducer(const edm::ParameterSet &p)
Definition: KFSwitching1DUpdatorESProducer.cc:37
KFSwitching1DUpdatorESProducer::fillDescriptions
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
Definition: KFSwitching1DUpdatorESProducer.cc:48
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
edm
HLT enums.
Definition: AlignableModifier.h:19
AlCaHLTBitMon_ParallelJobs.p
p
Definition: AlCaHLTBitMon_ParallelJobs.py:153
edm::ESProducer::setWhatProduced
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:138
edm::ParameterSetDescription
Definition: ParameterSetDescription.h:52
ESProducer.h
KFSwitching1DUpdatorESProducer::produce
std::unique_ptr< TrajectoryStateUpdator > produce(const TrackingComponentsRecord &)
Definition: KFSwitching1DUpdatorESProducer.cc:43
KFSwitching1DUpdator.h
IdealMagneticFieldRecord.h
edm::ConfigurationDescriptions
Definition: ConfigurationDescriptions.h:28
AlCaHLTBitMon_QueryRunRegistry.string
string
Definition: AlCaHLTBitMon_QueryRunRegistry.py:256
edm::ParameterSet
Definition: ParameterSet.h:36
MagneticField.h
ModuleFactory.h
KFSwitching1DUpdatorESProducer
Definition: KFSwitching1DUpdatorESProducer.cc:24
DEFINE_FWK_EVENTSETUP_MODULE
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
TrackingComponentsRecord.h
EventSetup.h
edm::ESProducer
Definition: ESProducer.h:101
ParameterSet.h
KFSwitching1DUpdatorESProducer::doEndCap_
const bool doEndCap_
Definition: KFSwitching1DUpdatorESProducer.cc:33
edm::ConfigurationDescriptions::addDefault
void addDefault(ParameterSetDescription const &psetDescription)
Definition: ConfigurationDescriptions.cc:99
TrackingComponentsRecord
Definition: TrackingComponentsRecord.h:12