21 #define NEW_CPEERROR // must be constistent with base.cc, generic cc/h and genericProducer.cc
29 useLAWidthFromDB_ = p.
existsAs<
bool>(
"useLAWidthFromDB")?
32 useLAAlignmentOffsets_ = p.
existsAs<
bool>(
"useLAAlignmentOffsets")?
38 setWhatProduced(
this,myname);
46 boost::shared_ptr<PixelClusterParameterEstimator>
60 if(useLAAlignmentOffsets_)
68 if(useLAWidthFromDB_) {
70 lorentzAngleWidthProduct = lorentzAngleWidth.
product();
71 }
else { lorentzAngleWidthProduct =
NULL;}
80 genErrorDBObjectProduct = genErrorDBObject.
product();
82 cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(
new PixelCPEGeneric(
84 lorentzAngleWidthProduct) );
88 const bool useNewSimplerErrors =
false;
89 if(useNewSimplerErrors) {
92 genErrorDBObjectProduct = genErrorDBObject.
product();
99 cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(
new PixelCPEGeneric(
101 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
void get(HolderT &iHolder) const
T const * product() const
boost::shared_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
virtual ~PixelCPEGenericESProducer()
PixelCPEGenericESProducer(const edm::ParameterSet &p)