Go to the documentation of this file.
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< MagneticField, IdealMagneticFieldRecord > magfieldToken_
PixelCPETemplateRecoESProducer(const edm::ParameterSet &p)
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
bool doLorentzFromAlignment_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< SiPixelTemplateDBObject, SiPixelTemplateDBObjectESProducerRcd > templateDBobjectToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_