41 , minNHits(iConfig.getParameter<unsigned int>(
"minNHits"))
43 produces<FastTrackerRecHitCombinationCollection>();
62 for(
unsigned int simHitCounter = 0;simHitCounter < simHits->size();simHitCounter++){
65 const PSimHit & simHit = (*simHits)[simHitCounter];
70 currentCombination.push_back(recHit);
73 if(simHits->size()-simHitCounter == 1 || simHit.
trackId() != (*simHits)[simHitCounter+1].trackId() ){
75 if(currentCombination.size() >=
minNHits){
76 currentCombination.shrink_to_fit();
77 output->push_back(currentCombination);
79 currentCombination.clear();
84 iEvent.
put(std::move(output));
static void fillDescriptions(edm::ConfigurationDescriptions &descriptions)
virtual void endStream() override
bool getByToken(EDGetToken token, Handle< PROD > &result) const
#define DEFINE_FWK_MODULE(type)
void addDefault(ParameterSetDescription const &psetDescription)
edm::EDGetTokenT< FastTrackerRecHitRefCollection > simHit2RecHitMapToken
OrphanHandle< PROD > put(std::auto_ptr< PROD > product)
Put a new product.
FastTrackerRecHitCombiner(const edm::ParameterSet &)
bool isNull() const
Checks for null.
std::vector< FastTrackerRecHitRef > FastTrackerRecHitCombination
virtual void produce(edm::Event &, const edm::EventSetup &) override
virtual void beginStream(edm::StreamID) override
std::vector< FastTrackerRecHitRef > FastTrackerRecHitRefCollection
std::vector< FastTrackerRecHitCombination > FastTrackerRecHitCombinationCollection
edm::EDGetTokenT< edm::PSimHitContainer > simHitsToken
unsigned int trackId() const
std::vector< PSimHit > PSimHitContainer
~FastTrackerRecHitCombiner()