Go to the documentation of this file.
46 useLAWidthFromDB_ =
p.getParameter<
bool>(
"useLAWidthFromDB");
49 char const* laLabel =
"";
51 laLabel =
"fromAlignment";
55 UseErrorsFromTemplates_ =
p.getParameter<
bool>(
"UseErrorsFromTemplates");
58 auto c = setWhatProduced(
this, myname);
59 magfieldToken_ =
c.consumes(magname);
60 pDDToken_ =
c.consumes();
61 hTTToken_ =
c.consumes();
63 if (useLAWidthFromDB_) {
66 if (UseErrorsFromTemplates_) {
67 genErrorDBObjectToken_ =
c.consumes();
74 if (useLAWidthFromDB_) {
75 lorentzAngleWidthProduct = &iRecord.
get(lorentzAngleWidthToken_);
82 if (UseErrorsFromTemplates_) {
83 genErrorDBObjectProduct = &iRecord.
get(genErrorDBObjectToken_);
87 return std::make_unique<PixelCPEGeneric>(pset_,
88 &iRecord.
get(magfieldToken_),
89 iRecord.
get(pDDToken_),
90 iRecord.
get(hTTToken_),
91 &iRecord.
get(lorentzAngleToken_),
92 genErrorDBObjectProduct,
93 lorentzAngleWidthProduct);
108 descriptions.
add(
"_generic_default",
desc);
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_
bool UseErrorsFromTemplates_
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_
PixelCPEGenericESProducer
void add(std::string const &label, ParameterSetDescription const &psetDescription)
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
edm::ESGetToken< SiPixelGenErrorDBObject, SiPixelGenErrorDBObjectRcd > genErrorDBObjectToken_
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleWidthToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
PixelCPEGenericESProducer(const edm::ParameterSet &p)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_