Go to the documentation of this file.
46 useLAFromDB_ =
p.getParameter<
bool>(
"useLAFromDB");
47 doLorentzFromAlignment_ =
p.getParameter<
bool>(
"doLorentzFromAlignment");
50 auto c = setWhatProduced(
this, myname);
51 magfieldToken_ =
c.consumes();
52 pDDToken_ =
c.consumes();
53 hTTToken_ =
c.consumes();
54 templateDBobjectToken_ =
c.consumes();
55 templateDBobject2DToken_ =
c.consumes();
56 if (useLAFromDB_ || doLorentzFromAlignment_) {
57 char const* laLabel = doLorentzFromAlignment_ ?
"fromAlignment" :
"";
76 descriptions.
add(
"_templates2_default",
desc);
85 if (useLAFromDB_ || doLorentzFromAlignment_) {
86 lorentzAngleProduct = &iRecord.
get(lorentzAngleToken_);
89 return std::make_unique<PixelCPEClusterRepair>(pset_,
90 &iRecord.
get(magfieldToken_),
91 iRecord.
get(pDDToken_),
92 iRecord.
get(hTTToken_),
94 &iRecord.
get(templateDBobjectToken_),
95 &iRecord.
get(templateDBobject2DToken_));
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
edm::ESGetToken< SiPixelTemplateDBObject, SiPixelTemplateDBObjectESProducerRcd > templateDBobjectToken_
PixelCPEClusterRepairESProducer(const edm::ParameterSet &p)
edm::ESGetToken< SiPixel2DTemplateDBObject, SiPixel2DTemplateDBObjectESProducerRcd > templateDBobject2DToken_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
bool doLorentzFromAlignment_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
~PixelCPEClusterRepairESProducer() override