31 inputCollections_(cfg.getParameter<std::vector<edm::
InputTag> >(
"seedCollections"))
33 produces<TrajectorySeedCollection>();
35 if (cfg.
exists(
"clusterRemovalInfos")){
52 std::vector<Handle<TrajectorySeedCollection > > seedCollections(ninputs);
53 for (
size_t i = 0;
i < ninputs; ++
i) {
55 nseeds += seedCollections[
i]->size();
60 result->reserve( nseeds );
63 unsigned int iSC=0,iSC_max=seedCollections.size();
64 for (;iSC!=iSC_max;++iSC){
69 for (TrajectorySeedCollection::const_iterator iS=collection->begin();
70 iS!=collection->end();++iS){
72 newRecHitContainer.
reserve(iS->nHits());
76 for (;iH!=iH_end;++iH){
78 refSetter.
reKey(&newRecHitContainer.
back());
81 std::move(newRecHitContainer),
86 result->insert(result->end(), collection->begin(), collection->end());
SeedCombiner(const edm::ParameterSet &cfg)
T getParameter(std::string const &) const
std::vector< edm::InputTag > clusterRemovalInfos_
std::vector< edm::InputTag > inputCollections_
void reKey(TrackingRecHit *hit) const
bool exists(std::string const ¶meterName) const
checks if a parameter exists
std::vector< TrajectorySeed > TrajectorySeedCollection
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
recHitContainer::const_iterator const_iterator
bool getByLabel(InputTag const &tag, Handle< PROD > &result) const
virtual void produce(edm::Event &ev, const edm::EventSetup &es) override