Definition at line 50 of file FastTrackerRecHitCombiner.cc.
References edm::Event::getByToken(), edm::Ref< C, T, F >::isNull(), minNHits, eostools::move(), convertSQLitetoXML_cfg::output, edm::Event::put(), rpcPointValidation_cfi::recHit, rpcPointValidation_cfi::simHit, Reconstruction_BefMix_cff::simHit2RecHitMap, simHit2RecHitMapToken, FastTrackerRecHitCombiner_cfi::simHits, simHitsToken, and PSimHit::trackId().
Referenced by beginStream(), JSONExport.JsonExport::export(), HTMLExport.HTMLExport::export(), and HTMLExport.HTMLExportStatic::export().
62 for (
unsigned int simHitCounter = 0; simHitCounter < simHits->size(); simHitCounter++) {
69 currentCombination.push_back(recHit);
72 if (simHits->size() - simHitCounter == 1 || simHit.
trackId() != (*simHits)[simHitCounter + 1].trackId()) {
74 if (currentCombination.size() >=
minNHits) {
75 currentCombination.shrink_to_fit();
76 output->push_back(currentCombination);
78 currentCombination.clear();
OrphanHandle< PROD > put(std::unique_ptr< PROD > product)
Put a new product.
bool getByToken(EDGetToken token, Handle< PROD > &result) const
edm::EDGetTokenT< FastTrackerRecHitRefCollection > simHit2RecHitMapToken
bool isNull() const
Checks for null.
std::vector< FastTrackerRecHitRef > FastTrackerRecHitCombination
std::vector< FastTrackerRecHitCombination > FastTrackerRecHitCombinationCollection
edm::EDGetTokenT< edm::PSimHitContainer > simHitsToken
unsigned int trackId() const