47 useLAFromDB_ =
p.getParameter<
bool>(
"useLAFromDB");
48 doLorentzFromAlignment_ =
p.getParameter<
bool>(
"doLorentzFromAlignment");
51 auto c = setWhatProduced(
this, myname);
52 magfieldToken_ =
c.consumes();
53 pDDToken_ =
c.consumes();
54 hTTToken_ =
c.consumes();
55 templateStoreToken_ =
c.consumes();
56 templateDBobjectToken_ =
c.consumes();
57 templateDBobject2DToken_ =
c.consumes();
58 if (useLAFromDB_ || doLorentzFromAlignment_) {
59 char const* laLabel = doLorentzFromAlignment_ ?
"fromAlignment" :
"";
78 descriptions.
add(
"_templates2_default",
desc);
87 if (useLAFromDB_ || doLorentzFromAlignment_) {
88 lorentzAngleProduct = &iRecord.
get(lorentzAngleToken_);
91 return std::make_unique<PixelCPEClusterRepair>(pset_,
92 &iRecord.
get(magfieldToken_),
93 iRecord.
get(pDDToken_),
94 iRecord.
get(hTTToken_),
96 &iRecord.
get(templateStoreToken_),
97 &iRecord.
get(templateDBobjectToken_),
98 &iRecord.
get(templateDBobject2DToken_));
edm::ESGetToken< SiPixelTemplateDBObject, SiPixelTemplateDBObjectESProducerRcd > templateDBobjectToken_
~PixelCPEClusterRepairESProducer() override
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
PixelCPEClusterRepairESProducer(const edm::ParameterSet &p)
edm::ESGetToken< std::vector< SiPixelTemplateStore >, SiPixelTemplateDBObjectESProducerRcd > templateStoreToken_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
edm::ESGetToken< SiPixel2DTemplateDBObject, SiPixel2DTemplateDBObjectESProducerRcd > templateDBobject2DToken_
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
bool doLorentzFromAlignment_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const