1 #include <alpaka/alpaka.hpp> 29 template <
typename TrackerTraits>
53 template <
typename TrackerTraits>
55 : algo_(conf.getParameter<
bool>(
"oneKernel"),
56 conf.getParameter<
bool>(
"useDensity"),
57 conf.getParameter<
bool>(
"useDBSCAN"),
58 conf.getParameter<
bool>(
"useIterative"),
59 conf.getParameter<
bool>(
"doSplitting"),
60 conf.getParameter<
int>(
"minT"),
61 conf.getParameter<double>(
"eps"),
62 conf.getParameter<double>(
"errmax"),
63 conf.getParameter<double>(
"chi2max")),
64 ptMin_(conf.getParameter<double>(
"PtMin")),
65 ptMax_(conf.getParameter<double>(
"PtMax")),
66 tokenDeviceTrack_(consumes(conf.getParameter<
edm::
InputTag>(
"pixelTrackSrc"))),
67 tokenDeviceVertex_(produces()) {}
69 template <
typename TrackerTraits>
75 desc.add<
bool>(
"oneKernel",
true);
76 desc.add<
bool>(
"useDensity",
true);
77 desc.add<
bool>(
"useDBSCAN",
false);
78 desc.add<
bool>(
"useIterative",
false);
79 desc.add<
bool>(
"doSplitting",
true);
81 desc.add<
int>(
"minT", 2);
82 desc.add<
double>(
"eps", 0.07);
83 desc.add<
double>(
"errmax", 0.01);
84 desc.add<
double>(
"chi2max", 9.);
86 desc.add<
double>(
"PtMin", 0.5);
87 desc.add<
double>(
"PtMax", 75.);
93 template <
typename TrackerTraits>
97 auto const& hTracks =
iEvent.get(tokenDeviceTrack_);
99 iEvent.emplace(tokenDeviceVertex_, algo_.makeAsync(
iEvent.queue(), hTracks.view(), ptMin_, ptMax_));
void addWithDefaultLabel(ParameterSetDescription const &psetDescription)
TracksSoACollection< TrackerTraits > TkSoADevice
device::EDPutToken< ZVertexSoACollection > tokenDeviceVertex_
PixelVertexProducerAlpaka< pixelTopology::HIonPhase1 > PixelVertexProducerAlpakaHIonPhase1
PixelVertexProducerAlpaka< pixelTopology::Phase1 > PixelVertexProducerAlpakaPhase1
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
PixelVertexProducerAlpaka(const edm::ParameterSet &iConfig)
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
std::conditional_t< std::is_same_v< Device, alpaka::DevCpu >, TracksHost< TrackerTraits >, TracksDevice< TrackerTraits, Device > > TracksSoACollection
#define DEFINE_FWK_ALPAKA_MODULE(name)
device::EDGetToken< TkSoADevice > tokenDeviceTrack_
void produce(edm::StreamID streamID, device::Event &iEvent, const device::EventSetup &iSetup) const override
PixelVertexProducerAlpaka< pixelTopology::Phase2 > PixelVertexProducerAlpakaPhase2