14 void setTrack(
const std::vector<const Trackster*>& tracksters,
15 std::vector<TICLCandidate>& ticl_cands,
23 std::vector<TICLCandidate>& ticl_cands,
25 auto size =
std::min(tracksters.size(), ticl_cands.size());
26 for (
size_t i = 0;
i < size; ++
i) {
27 const auto& trackster = *tracksters[
i];
29 if (trackster.seedIndex() == -1 || !trackster.seedID().isValid()) {
33 TrackPtr ptr(trackster.seedID(), trackster.seedIndex(), &
event.productGetter());
34 auto& ticl_cand = ticl_cands[
i];
35 ticl_cand.setTrackPtr(ptr);
void setTrack(const std::vector< const Trackster *> &tracksters, std::vector< TICLCandidate > &ticl_cands, edm::Event &event) const override
edm::Ptr< reco::Track > TrackPtr
TracksterRecoTrackPlugin(const edm::ParameterSet &, edm::ConsumesCollector &&iC)
#define DEFINE_EDM_PLUGIN(factory, type, name)