43 useLAFromDB_ =
p.getParameter<
bool>(
"useLAFromDB");
44 doLorentzFromAlignment_ =
p.getParameter<
bool>(
"doLorentzFromAlignment");
47 auto c = setWhatProduced(
this, myname);
48 magfieldToken_ =
c.consumes();
49 pDDToken_ =
c.consumes();
50 hTTToken_ =
c.consumes();
51 templateDBobjectToken_ =
c.consumes();
52 templateStoreToken_ =
c.consumes();
53 if (useLAFromDB_ || doLorentzFromAlignment_) {
54 char const* laLabel = doLorentzFromAlignment_ ?
"fromAlignment" :
"";
65 if (useLAFromDB_ || doLorentzFromAlignment_) {
66 lorentzAngleProduct = &iRecord.
get(lorentzAngleToken_);
69 return std::make_unique<PixelCPETemplateReco>(pset_,
70 &iRecord.
get(magfieldToken_),
71 iRecord.
get(pDDToken_),
72 iRecord.
get(hTTToken_),
74 &iRecord.
get(templateStoreToken_),
75 &iRecord.
get(templateDBobjectToken_));
89 descriptions.
add(
"_templates_default",
desc);
edm::ESGetToken< SiPixelTemplateDBObject, SiPixelTemplateDBObjectESProducerRcd > templateDBobjectToken_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
bool doLorentzFromAlignment_
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
edm::ESGetToken< std::vector< SiPixelTemplateStore >, SiPixelTemplateDBObjectESProducerRcd > templateStoreToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
PixelCPETemplateRecoESProducer(const edm::ParameterSet &p)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_