CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
MultipleScatteringParametrisationMakerESProducer.cc
Go to the documentation of this file.
7 
12 
14 public:
16 
17  static void fillDescriptions(edm::ConfigurationDescriptions& descriptions);
18 
19  std::unique_ptr<MultipleScatteringParametrisationMaker> produce(const TrackerMultipleScatteringRecord& iRecord);
20 
21 private:
24 };
25 
27  edm::ParameterSet const& iConfig) {
28  auto cc = setWhatProduced(this);
29  trackerToken_ = cc.consumes();
30  bfieldToken_ = cc.consumes();
31 }
32 
35  descriptions.addWithDefaultLabel(desc);
36 }
37 
38 std::unique_ptr<MultipleScatteringParametrisationMaker> MultipleScatteringParametrisationMakerESProducer::produce(
39  const TrackerMultipleScatteringRecord& iRecord) {
40  return std::make_unique<MultipleScatteringParametrisationMaker>(iRecord.get(trackerToken_),
41  iRecord.get(bfieldToken_));
42 }
43 
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
Definition: ESProducer.h:163
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bfieldToken_
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > trackerToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:60
std::unique_ptr< MultipleScatteringParametrisationMaker > produce(const TrackerMultipleScatteringRecord &iRecord)