CMS 3D CMS Logo

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:166
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
uint32_t cc[maxCellsPerHit]
Definition: gpuFishbone.h:49
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > bfieldToken_
edm::ESGetToken< GeometricSearchTracker, TrackerRecoGeometryRecord > trackerToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
Definition: ModuleFactory.h:61
std::unique_ptr< MultipleScatteringParametrisationMaker > produce(const TrackerMultipleScatteringRecord &iRecord)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const