28 useLAWidthFromDB_ = p.
existsAs<
bool>(
"useLAWidthFromDB")?
31 useLAAlignmentOffsets_ = p.
existsAs<
bool>(
"useLAAlignmentOffsets")?
35 UseErrorsFromTemplates_ = p.
getParameter<
bool>(
"UseErrorsFromTemplates");
39 setWhatProduced(
this,myname);
48 std::shared_ptr<PixelClusterParameterEstimator>
62 if(useLAAlignmentOffsets_)
70 if(useLAWidthFromDB_) {
72 lorentzAngleWidthProduct = lorentzAngleWidth.
product();
73 }
else { lorentzAngleWidthProduct =
nullptr;}
80 if(UseErrorsFromTemplates_) {
82 genErrorDBObjectProduct = genErrorDBObject.
product();
86 cpe_ = std::make_shared<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
std::shared_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
const DepRecordT & getRecord() const
void get(HolderT &iHolder) const
~PixelCPEGenericESProducer() override
T const * product() const
PixelCPEGenericESProducer(const edm::ParameterSet &p)