22 #define NEW_CPEERROR // must be constistent with base.cc, generic cc/h and genericProducer.cc
30 useLAWidthFromDB_ = p.
existsAs<
bool>(
"useLAWidthFromDB")?
33 useLAAlignmentOffsets_ = p.
existsAs<
bool>(
"useLAAlignmentOffsets")?
37 UseErrorsFromTemplates_ = p.
getParameter<
bool>(
"UseErrorsFromTemplates");
41 setWhatProduced(
this,myname);
50 boost::shared_ptr<PixelClusterParameterEstimator>
64 if(useLAAlignmentOffsets_)
72 if(useLAWidthFromDB_) {
74 lorentzAngleWidthProduct = lorentzAngleWidth.
product();
75 }
else { lorentzAngleWidthProduct =
NULL;}
83 if(UseErrorsFromTemplates_) {
85 genErrorDBObjectProduct = genErrorDBObject.
product();
89 cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>
92 genErrorDBObjectProduct,lorentzAngleWidthProduct) );
94 #else // old full templates, not used anymore
96 const bool useNewSimplerErrors =
false;
97 if(useNewSimplerErrors) {
100 genErrorDBObjectProduct = genErrorDBObject.
product();
107 cpe_ = boost::shared_ptr<PixelClusterParameterEstimator>(
new PixelCPEGeneric(
109 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)