42 useLAFromDB_ =
p.getParameter<
bool>(
"useLAFromDB");
43 doLorentzFromAlignment_ =
p.getParameter<
bool>(
"doLorentzFromAlignment");
46 auto c = setWhatProduced(
this, myname);
47 magfieldToken_ =
c.consumes();
48 pDDToken_ =
c.consumes();
49 hTTToken_ =
c.consumes();
50 templateDBobjectToken_ =
c.consumes();
51 if (useLAFromDB_ || doLorentzFromAlignment_) {
52 char const* laLabel = doLorentzFromAlignment_ ?
"fromAlignment" :
"";
63 if (useLAFromDB_ || doLorentzFromAlignment_) {
64 lorentzAngleProduct = &iRecord.
get(lorentzAngleToken_);
67 return std::make_unique<PixelCPETemplateReco>(pset_,
68 &iRecord.
get(magfieldToken_),
69 iRecord.
get(pDDToken_),
70 iRecord.
get(hTTToken_),
72 &iRecord.
get(templateDBobjectToken_));
86 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_
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_