19 template <
typename TrackerTraits>
40 template <
typename TrackerTraits>
42 auto const& myname =
p.getParameter<
std::string>(
"ComponentName");
43 auto const& magname =
p.getParameter<
edm::ESInputTag>(
"MagneticFieldRecord");
57 template <
typename TrackerTraits>
62 lorentzAngleWidthProduct = &iRecord.
get(lorentzAngleWidthToken_);
67 if (useErrorsFromTemplates_) {
68 genErrorDBObjectProduct = &iRecord.
get(genErrorDBObjectToken_);
72 return std::make_unique<PixelCPEFast<TrackerTraits>>(pset_,
73 &iRecord.
get(magfieldToken_),
74 iRecord.
get(pDDToken_),
75 iRecord.
get(hTTToken_),
76 &iRecord.
get(lorentzAngleToken_),
77 genErrorDBObjectProduct,
78 lorentzAngleWidthProduct);
81 template <
typename TrackerTraits>
92 desc.add<
double>(
"EdgeClusterErrorX", 50.0);
93 desc.add<
double>(
"EdgeClusterErrorY", 85.0);
94 desc.add<
bool>(
"UseErrorsFromTemplates",
true);
95 desc.add<
bool>(
"TruncatePixelCharge",
true);
98 name += TrackerTraits::nameModifier;
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
edm::ESGetToken< SiPixelGenErrorDBObject, SiPixelGenErrorDBObjectRcd > genErrorDBObjectToken_
uint32_t cc[maxCellsPerHit]
static void fillPSetDescription(edm::ParameterSetDescription &desc)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
bool useErrorsFromTemplates_
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleWidthToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
PixelCPEFastESProducerT(const edm::ParameterSet &p)
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_