31 inputCollections_(cfg.getParameter<std::vector<edm::
InputTag> >(
"seedCollections"))
33 produces<TrajectorySeedCollection>();
35 if (cfg.
exists(
"clusterRemovalInfos")){
56 std::vector<Handle<TrajectorySeedCollection > > seedCollections(ninputs);
57 for (
size_t i = 0;
i < ninputs; ++
i) {
59 nseeds += seedCollections[
i]->size();
64 result->reserve( nseeds );
67 unsigned int iSC=0,iSC_max=seedCollections.size();
68 for (;iSC!=iSC_max;++iSC){
73 for (TrajectorySeedCollection::const_iterator iS=collection->begin();
74 iS!=collection->end();++iS){
76 newRecHitContainer.
reserve(iS->nHits());
80 for (;iH!=iH_end;++iH){
82 refSetter.
reKey(&newRecHitContainer.
back());
85 std::move(newRecHitContainer),
90 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
virtual void beginRun(edm::Run &run, const edm::EventSetup &es)
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)