|
|
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();
77 if (useLAWidthFromDB_) {
78 lorentzAngleWidthProduct = &iRecord.
get(lorentzAngleWidthToken_);
85 if (UseErrorsFromTemplates_) {
86 genErrorDBObjectProduct = &iRecord.
get(genErrorDBObjectToken_);
90 return std::make_unique<PixelCPEGeneric>(pset_,
91 &iRecord.
get(magfieldToken_),
92 iRecord.
get(pDDToken_),
93 iRecord.
get(hTTToken_),
94 &iRecord.
get(lorentzAngleToken_),
95 genErrorDBObjectProduct,
96 lorentzAngleWidthProduct);
111 desc.add<
bool>(
"useLAAlignmentOffsets",
false);
112 desc.add<
bool>(
"DoLorentz",
false);
113 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_