20 #define NEW_CPEERROR // must be constistent with base.cc, generic cc/h and genericProducer.cc
28 useLAWidthFromDB_ = p.
existsAs<
bool>(
"useLAWidthFromDB")?
31 useLAAlignmentOffsets_ = p.
existsAs<
bool>(
"useLAAlignmentOffsets")?
37 setWhatProduced(
this,myname);
45 boost::shared_ptr<PixelClusterParameterEstimator>
56 if(useLAAlignmentOffsets_)
64 if(useLAWidthFromDB_) {
66 lorentzAngleWidthProduct = lorentzAngleWidth.
product();
67 }
else { lorentzAngleWidthProduct =
NULL;}
76 genErrorDBObjectProduct = genErrorDBObject.
product();
78 cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(
new PixelCPEGeneric(
80 lorentzAngleWidthProduct) );
84 const bool useNewSimplerErrors =
false;
85 if(useNewSimplerErrors) {
88 genErrorDBObjectProduct = genErrorDBObject.
product();
95 cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(
new PixelCPEGeneric(
97 templateDBobject.
product(),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
T const * product() const
boost::shared_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
virtual ~PixelCPEGenericESProducer()
PixelCPEGenericESProducer(const edm::ParameterSet &p)