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