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_));
edm::ESGetToken< SiPixelTemplateDBObject, SiPixelTemplateDBObjectESProducerRcd > templateDBobjectToken_
~PixelCPEClusterRepairESProducer() override
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_
const edm::EventSetup & c
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
PixelCPEClusterRepairESProducer(const edm::ParameterSet &p)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
ParameterDescriptionBase * add(U const &iLabel, T const &value)
edm::ESGetToken< SiPixel2DTemplateDBObject, SiPixel2DTemplateDBObjectESProducerRcd > templateDBobject2DToken_
std::unique_ptr< PixelClusterParameterEstimator > produce(const TkPixelCPERecord &)
T getParameter(std::string const &) const
#define DEFINE_FWK_EVENTSETUP_MODULE(type)
bool doLorentzFromAlignment_
void add(std::string const &label, ParameterSetDescription const &psetDescription)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)