45 CPEgenericMode_ =
p.getParameter<
std::string>(
"ComponentName");
47 useLAWidthFromDB_ =
p.getParameter<
bool>(
"useLAWidthFromDB");
50 char const* laLabel =
"";
52 laLabel =
"fromAlignment";
56 UseErrorsFromTemplates_ =
p.getParameter<
bool>(
"UseErrorsFromTemplates");
59 auto c = setWhatProduced(
this, CPEgenericMode_);
60 magfieldToken_ =
c.consumes(magname);
61 pDDToken_ =
c.consumes();
62 hTTToken_ =
c.consumes();
64 if (useLAWidthFromDB_) {
67 if (UseErrorsFromTemplates_) {
68 genErrorDBObjectToken_ =
c.consumes();
75 if (useLAWidthFromDB_) {
76 lorentzAngleWidthProduct = &iRecord.
get(lorentzAngleWidthToken_);
83 if (UseErrorsFromTemplates_) {
84 genErrorDBObjectProduct = &iRecord.
get(genErrorDBObjectToken_);
89 return std::make_unique<PixelCPEGeneric>(pset_,
90 &iRecord.
get(magfieldToken_),
91 iRecord.
get(pDDToken_),
92 iRecord.
get(hTTToken_),
93 &iRecord.
get(lorentzAngleToken_),
94 genErrorDBObjectProduct,
95 lorentzAngleWidthProduct);
110 descriptions.
add(
"_generic_default",
desc);
bool UseErrorsFromTemplates_
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleWidthToken_
PixelCPEGenericESProducer
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::string CPEgenericMode_
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
edm::ESGetToken< SiPixelGenErrorDBObject, SiPixelGenErrorDBObjectRcd > genErrorDBObjectToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
static void fillPSetDescription(edm::ParameterSetDescription &desc)
PixelCPEGenericESProducer(const edm::ParameterSet &p)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)