46 useLAWidthFromDB_ =
p.getParameter<
bool>(
"useLAWidthFromDB");
49 char const* laLabel =
"";
51 laLabel =
"fromAlignment";
55 UseErrorsFromTemplates_ =
p.getParameter<
bool>(
"UseErrorsFromTemplates");
58 auto c = setWhatProduced(
this, myname);
59 c.setConsumes(magfieldToken_, magname)
60 .setConsumes(pDDToken_)
61 .setConsumes(hTTToken_)
63 if (useLAWidthFromDB_) {
66 if (UseErrorsFromTemplates_) {
67 c.setConsumes(genErrorDBObjectToken_);
77 if (useLAWidthFromDB_) {
78 lorentzAngleWidthProduct = &iRecord.
get(lorentzAngleWidthToken_);
85 if (UseErrorsFromTemplates_) {
86 genErrorDBObjectProduct = &iRecord.
get(genErrorDBObjectToken_);
90 return std::make_unique<PixelCPEGeneric>(pset_,
91 &iRecord.
get(magfieldToken_),
92 iRecord.
get(pDDToken_),
93 iRecord.
get(hTTToken_),
94 &iRecord.
get(lorentzAngleToken_),
95 genErrorDBObjectProduct,
96 lorentzAngleWidthProduct);
111 desc.
add<
bool>(
"useLAAlignmentOffsets",
false);
112 desc.
add<
bool>(
"DoLorentz",
false);
113 descriptions.
add(
"_generic_default", desc);