FastTrackerRecHitCombiner::FastTrackerRecHitCombiner |
( |
const edm::ParameterSet & |
iConfig | ) |
|
|
explicit |
Definition at line 42 of file FastTrackerRecHitCombiner.cc.
47 produces<FastTrackerRecHitCombinationCollection>();
edm::EDGetTokenT< FastTrackerRecHitRefCollection > simHit2RecHitMapToken
T getParameter(std::string const &) const
edm::EDGetTokenT< edm::PSimHitContainer > simHitsToken
FastTrackerRecHitCombiner::~FastTrackerRecHitCombiner |
( |
| ) |
|
|
inlineoverride |
void FastTrackerRecHitCombiner::endStream |
( |
| ) |
|
|
inlineoverrideprivate |
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(), dedxEstimators_cff::simHit2RecHitMap, simHit2RecHitMapToken, trackerHits::simHits, simHitsToken, and PSimHit::trackId().
62 for (
unsigned int simHitCounter = 0; simHitCounter < simHits->size(); simHitCounter++) {
64 const PSimHit& simHit = (*simHits)[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
unsigned int FastTrackerRecHitCombiner::minNHits |
|
private |