32 [
this](
edm::InputTag const&
tag) { return consumes<TrajectorySeedCollection>(tag); });
33 produces<TrajectorySeedCollection>();
35 if (
cfg.exists(
"clusterRemovalInfos")) {
36 clusterRemovalInfos_ =
cfg.getParameter<std::vector<edm::InputTag> >(
"clusterRemovalInfos");
37 clusterRemovalTokens_.resize(clusterRemovalInfos_.size());
38 for (
unsigned int i = 0;
i < clusterRemovalInfos_.size(); ++
i)
40 clusterRemovalTokens_[
i] = consumes<reco::ClusterRemovalInfo>(clusterRemovalInfos_[
i]);
41 if (!clusterRemovalInfos_.empty() && clusterRemovalInfos_.size() == inputCollections_.size())
50 size_t ninputs = inputCollections_.size();
52 std::vector<Handle<TrajectorySeedCollection> >
seedCollections(ninputs);
53 for (
size_t i = 0;
i < ninputs; ++
i) {
59 auto result = std::make_unique<TrajectorySeedCollection>();
64 for (; iSC != iSC_max; ++iSC) {
66 if (reKeing_ && !(clusterRemovalInfos_[iSC] ==
edm::InputTag(
""))) {
69 for (TrajectorySeedCollection::const_iterator iS =
collection->begin(); iS !=
collection->end(); ++iS) {
71 newRecHitContainer.
reserve(iS->nHits());
75 for (; iH != iH_end; ++iH) {
77 refSetter.
reKey(&newRecHitContainer.
back());