28 useLAWidthFromDB_ = p.
existsAs<
bool>(
"useLAWidthFromDB")?
31 useLAAlignmentOffsets_ = p.
existsAs<
bool>(
"useLAAlignmentOffsets")?
35 UseErrorsFromTemplates_ = p.
getParameter<
bool>(
"UseErrorsFromTemplates");
39 setWhatProduced(
this,myname);
48 std::unique_ptr<PixelClusterParameterEstimator>
62 if(useLAAlignmentOffsets_)
70 if(useLAWidthFromDB_) {
72 lorentzAngleWidthProduct = lorentzAngleWidth.
product();
73 }
else { lorentzAngleWidthProduct =
nullptr;}
80 if(UseErrorsFromTemplates_) {
82 genErrorDBObjectProduct = genErrorDBObject.
product();
86 return std::make_unique<PixelCPEGeneric>(
89 genErrorDBObjectProduct,lorentzAngleWidthProduct);
T getParameter(std::string const &) const
bool existsAs(std::string const ¶meterName, bool trackiness=true) const
checks if a parameter exists as a given type
const DepRecordT & getRecord() const
void get(HolderT &iHolder) const
~PixelCPEGenericESProducer() override
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
T const * product() const
PixelCPEGenericESProducer(const edm::ParameterSet &p)