3 #include <alpaka/alpaka.hpp> 27 template <
typename TrackerTraits>
49 template <
typename TrackerTraits>
52 auto const& myname =
p.getParameter<
std::string>(
"ComponentName");
53 auto const& magname =
p.getParameter<
edm::ESInputTag>(
"MagneticFieldRecord");
67 template <
typename TrackerTraits>
76 if (useErrorsFromTemplates_) {
77 genErrorDBObjectProduct = &iRecord.
get(genErrorDBObjectToken_);
81 return std::make_unique<PixelCPEFastParamsHost<TrackerTraits>>(pset_,
82 &iRecord.
get(magfieldToken_),
83 iRecord.
get(pDDToken_),
84 iRecord.
get(hTTToken_),
85 &iRecord.
get(lorentzAngleToken_),
86 genErrorDBObjectProduct,
87 lorentzAngleWidthProduct);
90 template <
typename TrackerTraits>
102 desc.add<
double>(
"EdgeClusterErrorX", 50.0);
103 desc.add<
double>(
"EdgeClusterErrorY", 85.0);
104 desc.add<
bool>(
"UseErrorsFromTemplates",
true);
105 desc.add<
bool>(
"TruncatePixelCharge",
true);
108 name += TrackerTraits::nameModifier;
auto setWhatProduced(T *iThis, const es::Label &iLabel={})
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
PixelCPEFastParamsESProducerAlpaka< pixelTopology::Phase1 > PixelCPEFastParamsESProducerAlpakaPhase1
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleWidthToken_
uint32_t cc[maxCellsPerHit]
PixelCPEFastParamsESProducerAlpaka< pixelTopology::Phase2 > PixelCPEFastParamsESProducerAlpakaPhase2
static void fillPSetDescription(edm::ParameterSetDescription &desc)
edm::ESGetToken< TrackerGeometry, TrackerDigiGeometryRecord > pDDToken_
PixelCPEFastParamsESProducerAlpaka< pixelTopology::HIonPhase1 > PixelCPEFastParamsESProducerAlpakaHIonPhase1
bool useErrorsFromTemplates_
edm::ESGetToken< SiPixelGenErrorDBObject, SiPixelGenErrorDBObjectRcd > genErrorDBObjectToken_
PixelCPEFastParamsESProducerAlpaka(edm::ParameterSet const &iConfig)
edm::ESGetToken< SiPixelLorentzAngle, SiPixelLorentzAngleRcd > lorentzAngleToken_
edm::ESGetToken< MagneticField, IdealMagneticFieldRecord > magfieldToken_
edm::ESGetToken< TrackerTopology, TrackerTopologyRcd > hTTToken_
#define DEFINE_FWK_EVENTSETUP_ALPAKA_MODULE(type)
static void fillPSetDescription(edm::ParameterSetDescription &desc)
ProductT const & get(ESGetToken< ProductT, DepRecordT > const &iToken) const
std::unique_ptr< PixelCPEFastParamsHost< TrackerTraits > > produce(const PixelCPEFastParamsRecord &iRecord)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)